mirror of
https://github.com/TimeCrafters/timecrafters_configuration_tool_desktop.git
synced 2025-12-16 05:42:35 +00:00
Fixed mouse cursor always visible, even on game clock where it is preferred to be invisible while idle
This commit is contained in:
@@ -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
|
||||||
|
|||||||
4
Rakefile
4
Rakefile
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user