mirror of
https://github.com/cyberarm/i-mic-rts.git
synced 2025-12-15 15:52:34 +00:00
Prevent Closing animation for closing immediately by switching to use button_down instead of button_up, added skip_intro setting
This commit is contained in:
@@ -21,7 +21,7 @@ class IMICRTS
|
|||||||
window.close! if Gosu.milliseconds - @started_at >= @close_time
|
window.close! if Gosu.milliseconds - @started_at >= @close_time
|
||||||
end
|
end
|
||||||
|
|
||||||
def button_up(id)
|
def button_down(id)
|
||||||
window.close!
|
window.close!
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ class IMICRTS
|
|||||||
|
|
||||||
label "Settings", text_size: 78, margin: 20
|
label "Settings", text_size: 78, margin: 20
|
||||||
|
|
||||||
|
@skip_intro = check_box "Skip Intro", checked: Setting.enabled?(:skip_intro)
|
||||||
|
|
||||||
stack(width: 1.0) do
|
stack(width: 1.0) do
|
||||||
background 0xff030303
|
background 0xff030303
|
||||||
|
|
||||||
@@ -37,6 +39,7 @@ class IMICRTS
|
|||||||
end
|
end
|
||||||
|
|
||||||
def save_settings
|
def save_settings
|
||||||
|
Setting.set(:skip_intro, @skip_intro.value)
|
||||||
Setting.set(:debug_mode, @debug_mode.value)
|
Setting.set(:debug_mode, @debug_mode.value)
|
||||||
Setting.set(:debug_info_bar, @debug_info_bar.value)
|
Setting.set(:debug_info_bar, @debug_info_bar.value)
|
||||||
Setting.set(:debug_pathfinding, @debug_pathfinding.value)
|
Setting.set(:debug_pathfinding, @debug_pathfinding.value)
|
||||||
|
|||||||
Reference in New Issue
Block a user