Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/session/menu.js
Show First 20 Lines • Show All 425 Lines • ▼ Show 20 Lines | function diplomacySetupTexts(i, rowsize) | ||||
size.bottom = rowsize * i; | size.bottom = rowsize * i; | ||||
row.size = size; | row.size = size; | ||||
row.hidden = false; | row.hidden = false; | ||||
row.sprite = "color: " + rgbToGuiColor(g_Players[i].color) + " 32"; | row.sprite = "color: " + rgbToGuiColor(g_Players[i].color) + " 32"; | ||||
setOutcomeIcon(g_Players[i].state, "diplomacyPlayerOutcome[" + (i - 1) + "]"); | setOutcomeIcon(g_Players[i].state, "diplomacyPlayerOutcome[" + (i - 1) + "]"); | ||||
Engine.GetGUIObjectByName("diplomacyPlayerName[" + (i - 1) + "]").caption = colorizePlayernameByID(i); | let diplomacyPlayerName = Engine.GetGUIObjectByName("diplomacyPlayerName[" + (i - 1) + "]"); | ||||
diplomacyPlayerName.caption = colorizePlayernameByID(i); | |||||
diplomacyPlayerName.tooltip = translateAISettings(g_GameAttributes.settings.PlayerData[i]); | |||||
Engine.GetGUIObjectByName("diplomacyPlayerCiv[" + (i - 1) + "]").caption = g_CivData[g_Players[i].civ].Name; | Engine.GetGUIObjectByName("diplomacyPlayerCiv[" + (i - 1) + "]").caption = g_CivData[g_Players[i].civ].Name; | ||||
Engine.GetGUIObjectByName("diplomacyPlayerTeam[" + (i - 1) + "]").caption = | Engine.GetGUIObjectByName("diplomacyPlayerTeam[" + (i - 1) + "]").caption = | ||||
g_Players[i].team < 0 ? translateWithContext("team", "None") : g_Players[i].team + 1; | g_Players[i].team < 0 ? translateWithContext("team", "None") : g_Players[i].team + 1; | ||||
Engine.GetGUIObjectByName("diplomacyPlayerTheirs[" + (i - 1) + "]").caption = | Engine.GetGUIObjectByName("diplomacyPlayerTheirs[" + (i - 1) + "]").caption = | ||||
i == g_ViewedPlayer ? "" : | i == g_ViewedPlayer ? "" : | ||||
g_Players[i].isAlly[g_ViewedPlayer] ? | g_Players[i].isAlly[g_ViewedPlayer] ? | ||||
▲ Show 20 Lines • Show All 797 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator