Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/session.js
Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Lines | function init(initData, hotloadData) | ||||
updatePlayerData(); | updatePlayerData(); | ||||
g_BarterSell = g_ResourceData.GetCodes()[0]; | g_BarterSell = g_ResourceData.GetCodes()[0]; | ||||
initializeMusic(); // before changing the perspective | initializeMusic(); // before changing the perspective | ||||
initSessionMenuButtons(); | initSessionMenuButtons(); | ||||
Engine.GetGUIObjectByName("alphaLabel").caption = translate(getCurrentModInfo().label_version); | |||||
for (let slot in Engine.GetGUIObjectByName("panelEntityPanel").children) | for (let slot in Engine.GetGUIObjectByName("panelEntityPanel").children) | ||||
initPanelEntities(slot); | initPanelEntities(slot); | ||||
// Populate player selection dropdown | // Populate player selection dropdown | ||||
let playerNames = [translate("Observer")]; | let playerNames = [translate("Observer")]; | ||||
let playerIDs = [-1]; | let playerIDs = [-1]; | ||||
for (let player in g_Players) | for (let player in g_Players) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 1,367 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator