Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/pregame/mainmenu.js
Show All 12 Lines | function init(data, hotloadData) | ||||
g_MainMenuPage = | g_MainMenuPage = | ||||
new MainMenuPage( | new MainMenuPage( | ||||
data, | data, | ||||
hotloadData, | hotloadData, | ||||
g_MainMenuItems, | g_MainMenuItems, | ||||
g_BackgroundLayerData, | g_BackgroundLayerData, | ||||
g_ProjectInformation, | g_ProjectInformation, | ||||
g_CommunityButtons); | g_CommunityButtons); | ||||
let tstCt = [ "blue", "red", "purple", "cyan", "rainbow", "tartan", "plaid", "brown", "black", "grey", "gray", "pink", "green", "magenta", "taupe", "mauve", "pecan", "orange" ]; | |||||
Lint: prefer-const: 'tstCt' is never reassigned. Use 'const' instead. | |||||
let tstDd = Engine.GetGUIObjectByName("testDrop"); | |||||
Lint: prefer-const 'tstDd' is never reassigned. Use 'const' instead. Lint: prefer-const: 'tstDd' is never reassigned. Use 'const' instead. | |||||
tstDd.list = tstCt; | |||||
tstDd.selected = 2; | |||||
let tstLt = Engine.GetGUIObjectByName("testList"); | |||||
Lint: prefer-const 'tstLt' is never reassigned. Use 'const' instead. Lint: prefer-const: 'tstLt' is never reassigned. Use 'const' instead. | |||||
tstLt.list = tstCt; | |||||
tstLt.selected = 4; | |||||
let tstOLt = Engine.GetGUIObjectByName("testOList"); | |||||
Lint: prefer-const 'tstOLt' is never reassigned. Use 'const' instead. Lint: prefer-const: 'tstOLt' is never reassigned. Use 'const' instead. | |||||
tstOLt.list_name = tstCt; | |||||
tstOLt.list_a = tstCt; | |||||
tstOLt.list_b = tstCt.reverse(); | |||||
tstOLt.list = tstCt; | |||||
tstOLt.selected = 1; | |||||
let tstTxt = Engine.GetGUIObjectByName("testTextbox").caption; | |||||
Lint: prefer-const 'tstTxt' is never reassigned. Use 'const' instead. Lint: prefer-const: 'tstTxt' is never reassigned. Use 'const' instead. | |||||
let tstTB = Engine.GetGUIObjectByName("testTextboxScrollable"); | |||||
Lint: prefer-const 'tstTB' is never reassigned. Use 'const' instead. Lint: prefer-const: 'tstTB' is never reassigned. Use 'const' instead. | |||||
for (let i=0; i<3; ++i) | |||||
tstTB.caption += '[font="sans-bold-12"]Scrollable [/font]' + tstTxt + "\n\n"; | |||||
let tstML = Engine.GetGUIObjectByName("testInputMultiline"); | |||||
Lint: prefer-const 'tstML' is never reassigned. Use 'const' instead. Lint: prefer-const: 'tstML' is never reassigned. Use 'const' instead. | |||||
for (let i=0; i<24; ++i) | |||||
tstML.caption += "\n."; | |||||
tstML.caption += "\nGroovy, baby!"; | |||||
} | } | ||||
function getHotloadData() | function getHotloadData() | ||||
{ | { | ||||
return g_MainMenuPage.getHotloadData(); | return g_MainMenuPage.getHotloadData(); | ||||
} | } |
Wildfire Games · Phabricator
'tstCt' is never reassigned. Use 'const' instead.