mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
controls reset on F1
This commit is contained in:
parent
4260f23b65
commit
ededc0ca71
1 changed files with 7 additions and 0 deletions
|
|
@ -103,6 +103,13 @@ class Window_Settings
|
|||
end
|
||||
|
||||
def update
|
||||
if Input.key_press?(Input.key_from_name("F1"))
|
||||
if Oneshot.msgbox(Oneshot::Msg::YESNO, tr("Are you sure you want to reset the control settings?"))
|
||||
Settings.reset_controls!
|
||||
@content.redraw_all
|
||||
end
|
||||
end
|
||||
|
||||
if self.visible
|
||||
@content.update
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue