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

@@ -9,12 +9,14 @@ GEM
gosu_more_drawables (~> 0.3) gosu_more_drawables (~> 0.3)
excon (0.78.1) excon (0.78.1)
ffi (1.15.4) ffi (1.15.4)
ffi (1.15.4-x64-mingw32)
gosu (1.2.0) gosu (1.2.0)
gosu_more_drawables (0.3.1) gosu_more_drawables (0.3.1)
gosu_notifications (0.1.0) gosu_notifications (0.1.0)
ocra (1.3.11) ocra (1.3.11)
PLATFORMS PLATFORMS
x64-mingw32
x86_64-linux x86_64-linux
DEPENDENCIES DEPENDENCIES
@@ -25,4 +27,4 @@ DEPENDENCIES
ocra ocra
BUNDLED WITH BUNDLED WITH
2.2.19 2.2.28

View File

@@ -7,13 +7,13 @@ Releasy::Project.new do
version TAC::VERSION version TAC::VERSION
executable "timecrafters_configuration_tool.rb" executable "timecrafters_configuration_tool.rb"
files ["lib/**/*.*", "media/**/*.*", "data"] files ["lib/**/*.*", "media/**/*.*", "data/.gitkeep", "data/configs/.gitkeep"]
exclude_encoding # Applications that don't use advanced encoding (e.g. Japanese characters) can save build size with this. exclude_encoding # Applications that don't use advanced encoding (e.g. Japanese characters) can save build size with this.
verbose verbose
add_build :windows_folder do add_build :windows_folder do
icon "media/icon.ico" icon "media/icon.ico"
executable_type :console # Assuming you don't want it to run with a console window. executable_type :windows # Assuming you don't want it to run with a console window.
add_package :exe # Windows self-extracting archive. add_package :exe # Windows self-extracting archive.
end end
end end

View File

@@ -2,6 +2,8 @@ module TAC
class States class States
class Boot < CyberarmEngine::GuiState class Boot < CyberarmEngine::GuiState
def setup def setup
window.show_cursor = true
stack width: 1.0, height: 1.0 do 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] background [TAC::Palette::TIMECRAFTERS_PRIMARY, TAC::Palette::TIMECRAFTERS_SECONDARY, TAC::Palette::TIMECRAFTERS_TERTIARY, TAC::Palette::TIMECRAFTERS_PRIMARY]
end 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 attr_reader :header_bar, :header_bar_label, :navigation, :content, :menu_bar, :status_bar, :body
def setup def setup
window.show_cursor = true
@window_width = 0 @window_width = 0
@window_height = 0 @window_height = 0

View File

@@ -29,10 +29,6 @@ module TAC
@notification_manager.update @notification_manager.update
end end
def needs_cursor?
true
end
def toast(title, message = nil) def toast(title, message = nil)
@notification_manager.create_notification( @notification_manager.create_notification(
priority: GosuNotifications::Notification::PRIORITY_HIGH, priority: GosuNotifications::Notification::PRIORITY_HIGH,