Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection_details.js
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | function displaySingle(entState) | ||||
} | } | ||||
if (entState.statusEffects) | if (entState.statusEffects) | ||||
{ | { | ||||
let statusEffectsSection = Engine.GetGUIObjectByName("statusEffectsIcons"); | let statusEffectsSection = Engine.GetGUIObjectByName("statusEffectsIcons"); | ||||
statusEffectsSection.hidden = false; | statusEffectsSection.hidden = false; | ||||
let statusIcons = statusEffectsSection.children; | let statusIcons = statusEffectsSection.children; | ||||
let i = 0; | let i = 0; | ||||
for (let effectName in entState.statusEffects) | for (let effectCode in entState.statusEffects) | ||||
{ | { | ||||
let effect = entState.statusEffects[effectName]; | let effect = entState.statusEffects[effectCode]; | ||||
statusIcons[i].hidden = false; | statusIcons[i].hidden = false; | ||||
statusIcons[i].sprite = "stretched:session/icons/status_effects/" + (effect.Icon || "default") + ".png"; | statusIcons[i].sprite = "stretched:session/icons/status_effects/" + (effect.Icon || "default") + ".png"; | ||||
statusIcons[i].tooltip = getStatusEffectsTooltip(effect, false); | statusIcons[i].tooltip = getStatusEffectsTooltip(effect.baseCode, effect, false); | ||||
Stan: I always wonder if it loads the dds, when in archive mode | |||||
let size = statusIcons[i].size; | let size = statusIcons[i].size; | ||||
size.top = i * 18; | size.top = i * 18; | ||||
size.bottom = i * 18 + 16; | size.bottom = i * 18 + 16; | ||||
statusIcons[i].size = size; | statusIcons[i].size = size; | ||||
if (++i >= statusIcons.length) | if (++i >= statusIcons.length) | ||||
break; | break; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 429 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
I always wonder if it loads the dds, when in archive mode