Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/chat/ChatWindow.js
Show All 22 Lines | constructor() | ||||
this.initPage(); | this.initPage(); | ||||
} | } | ||||
initPage() | initPage() | ||||
{ | { | ||||
this.closeChat.onPress = this.closePage.bind(this); | this.closeChat.onPress = this.closePage.bind(this); | ||||
this.extendedChat.onPress = () => { | this.extendedChat.onPress = () => { | ||||
Engine.ConfigDB_CreateAndWriteValueToFile("user", "chat.session.extended", String(this.isExtended()), "config/user.cfg"); | Engine.ConfigDB_CreateAndSaveValue("user", "chat.session.extended", String(this.isExtended())); | ||||
this.resizeChatWindow(); | this.resizeChatWindow(); | ||||
this.chatInput.focus(); | this.chatInput.focus(); | ||||
}; | }; | ||||
this.extendedChat.checked = Engine.ConfigDB_GetValue("user", "chat.session.extended") == "true"; | this.extendedChat.checked = Engine.ConfigDB_GetValue("user", "chat.session.extended") == "true"; | ||||
this.chatDialogPanel.onWindowResized = this.resizeChatWindow.bind(this); | this.chatDialogPanel.onWindowResized = this.resizeChatWindow.bind(this); | ||||
this.resizeChatWindow(); | this.resizeChatWindow(); | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator