Differential D1703 Diff 11331 binaries/data/mods/public/gui/gamesetup/Pages/MapBrowserPage/Controls/CloseButton.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/MapBrowserPage/Controls/CloseButton.js
- This file was added.
MapBrowserPageControls.CloseButton = class | |||||
{ | |||||
constructor(mapBrowserPage) | |||||
{ | |||||
this.mapBrowserPageClose = Engine.GetGUIObjectByName("mapBrowserPageClose"); | |||||
this.mapBrowserPageClose.tooltip = colorizeHotkey(this.Tooltip, this.HotkeyConfig); | |||||
this.mapBrowserPageClose.onPress = mapBrowserPage.closePage.bind(mapBrowserPage, false); | |||||
elexis: `this.mapBrowserPage` unused (same object reference as mapBrowserPage) | |||||
Not Done Inline ActionsIf we want to make this class modable we must leave a reference of the parent page no? nani: If we want to make this class modable we must leave a reference of the parent page no? | |||||
if (!g_IsController) | |||||
this.mapBrowserPageClose.size = Engine.GetGUIObjectByName("mapBrowserPageSelect").size; | |||||
} | |||||
Not Done Inline Actions; elexis: ; | |||||
}; | |||||
MapBrowserPageControls.CloseButton.prototype.HotkeyConfig = "cancel"; | |||||
MapBrowserPageControls.CloseButton.prototype.Tooltip = | |||||
translate("%(hotkey)s: Close map browser and discard the selection."); |
Wildfire Games · Phabricator
this.mapBrowserPage unused (same object reference as mapBrowserPage)