mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-20 22:09:55 +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
|
end
|
||||||
|
|
||||||
def update
|
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
|
if self.visible
|
||||||
@content.update
|
@content.update
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue