Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/MenuButtons.js
Show First 20 Lines • Show All 168 Lines • ▼ Show 20 Lines | Engine.PushGuiPage( | ||||
{}, | {}, | ||||
changes => { | changes => { | ||||
fireConfigChangeHandlers(changes); | fireConfigChangeHandlers(changes); | ||||
resumeGame(); | resumeGame(); | ||||
}); | }); | ||||
} | } | ||||
}; | }; | ||||
MenuButtons.prototype.Hotkeys = class | |||||
{ | |||||
constructor(button, pauseControl) | |||||
{ | |||||
this.button = button; | |||||
this.button.caption = translate("Hotkeys"); | |||||
this.pauseControl = pauseControl; | |||||
} | |||||
onPress() | |||||
{ | |||||
closeOpenDialogs(); | |||||
this.pauseControl.implicitPause(); | |||||
Engine.PushGuiPage( | |||||
"hotkeys/page_hotkeys.xml", | |||||
{}, | |||||
() => { resumeGame(); }); | |||||
} | |||||
}; | |||||
MenuButtons.prototype.Pause = class | MenuButtons.prototype.Pause = class | ||||
{ | { | ||||
constructor(button, pauseControl, playerViewControl) | constructor(button, pauseControl, playerViewControl) | ||||
{ | { | ||||
this.button = button; | this.button = button; | ||||
this.button.hotkey = "pause"; | this.button.hotkey = "pause"; | ||||
this.pauseControl = pauseControl; | this.pauseControl = pauseControl; | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator