Differential D2577 Diff 11115 binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/Panels/GameDescription.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/gamesetup/Pages/GameSetupPage/Panels/GameDescription.js
class GameDescription | class GameDescription | ||||
{ | { | ||||
constructor(mapCache, gameSettingTabs, gameSettingsControl) | constructor(setupWindow, gameSettingTabs) | ||||
{ | { | ||||
this.mapCache = mapCache; | this.mapCache = setupWindow.controls.mapCache; | ||||
this.gameDescriptionFrame = Engine.GetGUIObjectByName("gameDescriptionFrame"); | this.gameDescriptionFrame = Engine.GetGUIObjectByName("gameDescriptionFrame"); | ||||
this.gameDescription = Engine.GetGUIObjectByName("gameDescription"); | this.gameDescription = Engine.GetGUIObjectByName("gameDescription"); | ||||
gameSettingsControl.registerGameAttributesBatchChangeHandler(this.onGameAttributesBatchChange.bind(this)); | setupWindow.controls.gameSettingsControl.registerGameAttributesBatchChangeHandler(this.onGameAttributesBatchChange.bind(this)); | ||||
gameSettingTabs.registerTabsResizeHandler(this.onTabsResize.bind(this)); | gameSettingTabs.registerTabsResizeHandler(this.onTabsResize.bind(this)); | ||||
} | } | ||||
onTabsResize(settingsTabButtonsFrame) | onTabsResize(settingsTabButtonsFrame) | ||||
{ | { | ||||
let size = this.gameDescriptionFrame.size; | let size = this.gameDescriptionFrame.size; | ||||
size.top = settingsTabButtonsFrame.size.bottom + this.Margin; | size.top = settingsTabButtonsFrame.size.bottom + this.Margin; | ||||
this.gameDescriptionFrame.size = size; | this.gameDescriptionFrame.size = size; | ||||
Show All 9 Lines |
Wildfire Games · Phabricator