Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
EditablePrefabsLabel_EntityType.c
Go to the documentation of this file.
3{
4 [Attribute("0", UIWidgets.ComboBox, enumType: EEditableEntityType)]
6
7 //------------------------------------------------------------------------------------------------
8 override bool GetLabelValid(WorldEditorAPI api, IEntitySource entitySource, IEntityComponentSource componentSource, string targetPath, EEditableEntityType entityType, notnull array<EEditableEntityLabel> authoredLabels, out EEditableEntityLabel label)
9 {
10 // Skip objects/generic label on Composition and System entity types
11 if (m_EntityType == EEditableEntityType.GENERIC &&
12 (authoredLabels.Contains(EEditableEntityLabel.ENTITYTYPE_COMPOSITION)
13 || authoredLabels.Contains(EEditableEntityLabel.ENTITYTYPE_SYSTEM)
14 || entityType == EEditableEntityType.SYSTEM))
15 {
16 return false;
17 }
18
19 if (entityType == m_EntityType)
20 {
21 label = m_Label;
22 return true;
23 }
24
25 return false;
26 }
27}
EEditableEntityLabel
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
override bool GetLabelValid(WorldEditorAPI api, IEntitySource entitySource, IEntityComponentSource componentSource, string targetPath, EEditableEntityType entityType, notnull array< EEditableEntityLabel > authoredLabels, out EEditableEntityLabel label)
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
SCR_FieldOfViewSettings Attribute