Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
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 //------------------------------------------------------------------------------------------------
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
23class 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}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
EEditableEntityState
SCR_FieldOfViewSettings Attribute
class SCR_BaseManualCameraComponent _WB_GetCustomTitle(BaseContainer source, out string title)
proto external EParticleEffectState GetState()