Fixed mouse cursor always visible, even on game clock where it is preferred to be invisible while idle

This commit is contained in:
2021-09-30 08:46:44 -05:00
parent 870a3e4e8b
commit 7bfc404413
5 changed files with 9 additions and 7 deletions

View File

@@ -2,6 +2,8 @@ module TAC
class States
class Boot < CyberarmEngine::GuiState
def setup
window.show_cursor = true
stack width: 1.0, height: 1.0 do
background [TAC::Palette::TIMECRAFTERS_PRIMARY, TAC::Palette::TIMECRAFTERS_SECONDARY, TAC::Palette::TIMECRAFTERS_TERTIARY, TAC::Palette::TIMECRAFTERS_PRIMARY]
end

View File

@@ -3,6 +3,8 @@ class Editor < CyberarmEngine::GuiState
attr_reader :header_bar, :header_bar_label, :navigation, :content, :menu_bar, :status_bar, :body
def setup
window.show_cursor = true
@window_width = 0
@window_height = 0