Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/selection_panels.js
Show First 20 Lines • Show All 342 Lines • ▼ Show 20 Lines | g_SelectionPanels.Garrison = { | ||||
{ | { | ||||
if (unitEntStates.every(state => !state.garrisonHolder)) | if (unitEntStates.every(state => !state.garrisonHolder)) | ||||
return []; | return []; | ||||
let groups = new EntityGroups(); | let groups = new EntityGroups(); | ||||
for (let state of unitEntStates) | for (let state of unitEntStates) | ||||
if (state.garrisonHolder) | if (state.garrisonHolder) | ||||
groups.add(state.garrisonHolder.entities); | groups.add(state.garrisonHolder.hiddenEntities); | ||||
return groups.getEntsGrouped(); | return groups.getEntsGrouped(); | ||||
}, | }, | ||||
"setupButton": function(data) | "setupButton": function(data) | ||||
{ | { | ||||
let entState = GetEntityState(data.item.ents[0]); | let entState = GetEntityState(data.item.ents[0]); | ||||
let template = GetTemplateData(entState.template); | let template = GetTemplateData(entState.template); | ||||
▲ Show 20 Lines • Show All 828 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator