Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SimulateAndShowToggle.c
Go to the documentation of this file.
1 // Script File
4 {
5  [Attribute(uiwidget: UIWidgets.LocaleEditBox)]
6  protected LocalizedString m_sSubDisplayName;
7 
8  [Attribute(desc: "If true the Sub checkbox will be disabled if Main is false. If false the Sub checkbox will be disabled if Main is true")]
9  protected bool m_bDisableSubWhenMainIsFalse;
10  [Attribute(defvalue: "1", desc: "If disabled will either set itself true or false")]
11  protected bool m_bSetFalseIfDisabled;
12 
13  override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
14  {
15  SCR_EditableEntityComponent editableEntity = SCR_EditableEntityComponent.Cast(item);
16  if (!editableEntity) return null;
17 
18  #ifndef WORKBENCH
19  return null;
20  #endif
21 
22  //TODO GET VALUES
23  vector saveValues = Vector(1, 0, 0);
24  return SCR_BaseEditorAttributeVar.CreateVector(saveValues);
25  }
26  override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
27  {
28  if (!var) return;
29  SCR_EditableEntityComponent editableEntity = SCR_EditableEntityComponent.Cast(item);
30  if (!editableEntity) return;
31 
32  //TODO: Set Values
33  }
34 
35  override int GetEntries(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
36  {
37  outEntries.Insert(new SCR_BaseEditorAttributeEntryText(m_sSubDisplayName));
38  outEntries.Insert(new SCR_EditorAttributeEntryBool(m_bDisableSubWhenMainIsFalse));
39  outEntries.Insert(new SCR_EditorAttributeEntryBool(m_bSetFalseIfDisabled));
40  return outEntries.Count();
41  }
42 };
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_BaseEditorAttributeCustomTitle
Definition: SCR_BaseEditorAttribute.c:868
SCR_BaseEditorAttributeVar
Definition: SCR_BaseEditorAttributeVar.c:1
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_BaseEditorAttribute
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
Definition: SCR_BaseEditorAttribute.c:3
SCR_BaseEditorAttributeEntryText
void SCR_BaseEditorAttributeEntryText(string text)
Definition: SCR_BaseEditorAttribute.c:486
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
SCR_EditorAttributeEntryBool
Definition: SCR_BaseEditorAttribute.c:661
LocalizedString
Definition: LocalizedString.c:21
SCR_SimulateAndShowToggle
Definition: SCR_SimulateAndShowToggle.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