Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_OverrideModesEditorAttributeUIComponent.c
Go to the documentation of this file.
1 
4 {
5  protected override void ToggleEnableAttribute(bool enabled)
6  {
7  super.ToggleEnableAttribute(enabled);
8 
9  if(!enabled)
10  {
11  SCR_BaseEditorAttribute attribute = GetAttribute();
12  if (!attribute)
13  return;
14 
15  SCR_BaseEditorAttributeVar var = attribute.GetVariableOrCopy();
16  if (!var)
17  return;
18 
20  if (!core)
21  return;
22 
23  var.SetInt(core.GetBaseModes(EEditorModeFlag.DEFAULT));
24  SetFromVar(var);
25  }
26  }
27 };
SCR_ButtonBoxMultiSelectAttributeUIComponent
Definition: SCR_ButtonBoxMultiSelectAttributeUIComponent.c:3
SCR_BaseEditorAttributeVar
Definition: SCR_BaseEditorAttributeVar.c:1
SCR_EditorManagerCore
Core component to manage SCR_EditorManagerEntity.
Definition: SCR_EditorManagerCore.c:5
SCR_BaseEditorAttribute
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
Definition: SCR_BaseEditorAttribute.c:3
EEditorModeFlag
EEditorModeFlag
Definition: EEditorModeFlag.c:1
SCR_OverrideModesEditorAttributeUIComponent
Definition: SCR_OverrideModesEditorAttributeUIComponent.c:3