Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BaseEntitiesEditorUIEffect.c
Go to the documentation of this file.
1 [BaseContainerProps(), SCR_BaseEntitiesEditorUIEffectTitle()]
3 {
4  [Attribute(defvalue: "1", uiwidget: UIWidgets.ComboBox, desc: "State on which this effect is applied to.", enums: ParamEnumArray.FromEnum(EEditableEntityState))]
5  private EEditableEntityState m_State;
6 
7  //------------------------------------------------------------------------------------------------
9  EEditableEntityState GetState()
10  {
11  return m_State;
12  }
13 
14  //------------------------------------------------------------------------------------------------
17  void ApplyOn(Widget w)
18  {
19  Print("ApplyOn() called on base class SCR_BaseEntitiesEditorUIEffect. Please use one of specialized variants.", LogLevel.WARNING);
20  }
21 }
22 
23 class SCR_BaseEntitiesEditorUIEffectTitle : BaseContainerCustomTitle
24 {
25  //------------------------------------------------------------------------------------------------
26  override bool _WB_GetCustomTitle(BaseContainer source, out string title)
27  {
28  int enumValue;
29  if (!source.Get("m_State", enumValue))
30  return false;
31 
32  title = source.GetClassName();
33  title.Replace("SCR_", "");
34  title.Replace("EntitiesEditorUIEffect", "");
35 
36  title += ": " + typename.EnumToString(EEditableEntityState, enumValue);
37  return true;
38  }
39 }
EEditableEntityState
EEditableEntityState
Definition: EEditableEntityState.c:37
SCR_BaseEntitiesEditorUIEffect
Definition: SCR_BaseEntitiesEditorUIEffect.c:2
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
Attribute
typedef Attribute
Post-process effect of scripted camera.
_WB_GetCustomTitle
class SCR_BaseEntitiesEditorUIEffect _WB_GetCustomTitle(BaseContainer source, out string title)
Definition: SCR_BaseEntitiesEditorUIEffect.c:26
m_State
private EEditableEntityState m_State
Definition: SCR_BaseEntitiesEditorUIEffect.c:3
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468