forked from mirrors/0ad
b2842e8021
Commenters: elexis, Stan, Angen Refs.: #5387 Differential Revision: https://code.wildfiregames.com/D2734 This was SVN commit r23808.
17 lines
412 B
JavaScript
17 lines
412 B
JavaScript
class CloseButton
|
|
{
|
|
constructor(parentPage)
|
|
{
|
|
this.closeButton = Engine.GetGUIObjectByName("closeButton");
|
|
this.closeButton.onPress = parentPage.closePage.bind(parentPage);
|
|
this.closeButton.caption = this.Caption;
|
|
this.closeButton.tooltip = colorizeHotkey(parentPage.CloseButtonTooltip, this.Hotkey);
|
|
}
|
|
}
|
|
|
|
CloseButton.prototype.Caption =
|
|
translate("Close");
|
|
|
|
CloseButton.prototype.Hotkey =
|
|
"close";
|