11 private ref array<EEditableEntityLabel> m_aAuthoredLabels;
14 private ref array<EEditableEntityLabel> m_aAutoLabels;
17 private ref array<ref SCR_EntityBudgetValue> m_EntityBudgetCost;
19 [
Attribute(
"",
category:
"Editable Entity",
desc:
"Autoconfigured budget costs of child entities (group/composition entities)")]
20 private ref array<ref SCR_EntityBudgetValue> m_EntityChildrenBudgetCost;
43 if (
Name.IsEmpty() ||
Name[0] ==
"(")
90 FactionManager factionManager =
GetGame().GetFactionManager();
103 entityLabels.InsertAll(m_aAutoLabels);
104 entityLabels.InsertAll(m_aAuthoredLabels);
105 return entityLabels.Count();
114 if (m_aAutoLabels.Contains(label))
117 if (m_aAuthoredLabels.Contains(label))
129 return !outBudgets.IsEmpty();
180 if (!imageWidget || m_Image.IsEmpty())
183 imageWidget.LoadImageTexture(0, m_Image);
207 if (editableEntitySource)
209 m_Image = editableEntitySource.m_Image;
210 m_sFaction = editableEntitySource.m_sFaction;
211 m_aAuthoredLabels = editableEntitySource.m_aAuthoredLabels;
212 m_aAutoLabels = editableEntitySource.m_aAutoLabels;
213 m_EntityBudgetCost = editableEntitySource.m_EntityBudgetCost;
214 m_EntityChildrenBudgetCost = editableEntitySource.m_EntityChildrenBudgetCost;
228 if (prefab.IsEmpty())
232 if (!entityResource.IsValid())
234 Print(
string.Format(
"Provided prefab '%1' is invalid!", prefab),
LogLevel.ERROR);
239 if (!editableEntitySource)
241 Print(
string.Format(
"Prefab '%1' is missing SCR_EditableEntityComponent!", prefab),
LogLevel.ERROR);
247 Print(
string.Format(
"Prefab '%1' is missing UI info in SCR_EditableEntityComponent!", prefab),
LogLevel.ERROR);
ArmaReforgerScripted GetGame()
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Object holding reference to resource. In destructor release the resource.
EEditableEntityType GetEntityType()
static IEntityComponentSource GetEditableEntitySource(Resource entityResource)
static EEditableEntityFlag GetEntityFlags(IEntityComponentSource componentSource)
bool HasEntityLabel(EEditableEntityLabel label)
static const LocalizedString EDITABLE_ENTITY_FALLBACK_NAME
void InitFromSource(IEntityComponentSource componentSource)
bool HasEntityFlag(EEditableEntityFlag flag)
override void CopyFrom(SCR_UIName source)
FactionKey GetDefaultFactionKey()
bool m_bFullBackgroundAssetCard
void GetEntityAndChildrenBudgetCost(out notnull array< ref SCR_EntityBudgetValue > outBudgets)
Get Entity and its children budgets.
FactionKey m_sFactionKeyOverride
FactionKey GetFactionKey()
ResourceName GetSlotPrefab()
int GetEntityLabels(out notnull array< EEditableEntityLabel > entityLabels)
ResourceName m_SlotPrefab
EEditableEntityType GetEntityType()
void OverrideFactionKey(FactionKey newKey)
bool IsFullBackgroundAssetCard()
EEditableEntityFlag m_EntityFlags
bool SetAssetImageTo(ImageWidget imageWidget)
bool GetEntityBudgetCost(out notnull array< ref SCR_EntityBudgetValue > outBudgets)
EEditableEntityType m_EntityType
static SCR_EditableEntityUIInfo ExtractEditableUIInfoFromPrefab(ResourceName prefab)
EEditableEntityType GetEntityTypex()
override LocalizedString GetName()
void GetEntityChildrenBudgetCost(out notnull array< ref SCR_EntityBudgetValue > outBudgets)
Get only Entity's children budget costs, i.e. cost of entities inside a composition entitiy.
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
EEditableEntityFlag
Unique flags of the entity.
SCR_FieldOfViewSettings Attribute