Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_SimulateAndShowToggle.c
Go to the documentation of this file.
1
// Script File
2
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
3
class
SCR_SimulateAndShowToggle
:
SCR_BaseEditorAttribute
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
};
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseEditorAttributeEntryText
void SCR_BaseEditorAttributeEntryText(string text)
Definition
SCR_BaseEditorAttribute.c:494
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
LocalizedString
Definition
LocalizedString.c:22
SCR_BaseEditorAttributeCustomTitle
Definition
SCR_BaseEditorAttribute.c:876
SCR_BaseEditorAttribute
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
Definition
SCR_BaseEditorAttribute.c:4
SCR_BaseEditorAttributeVar
Definition
SCR_BaseEditorAttributeVar.c:2
SCR_BaseEditorAttributeVar::CreateVector
static SCR_BaseEditorAttributeVar CreateVector(vector value)
Definition
SCR_BaseEditorAttributeVar.c:125
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_EditorAttributeEntryBool
Definition
SCR_BaseEditorAttribute.c:669
SCR_SimulateAndShowToggle
Definition
SCR_SimulateAndShowToggle.c:4
SCR_SimulateAndShowToggle::WriteVariable
override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
Definition
SCR_SimulateAndShowToggle.c:26
SCR_SimulateAndShowToggle::m_bSetFalseIfDisabled
bool m_bSetFalseIfDisabled
Definition
SCR_SimulateAndShowToggle.c:11
SCR_SimulateAndShowToggle::m_sSubDisplayName
LocalizedString m_sSubDisplayName
Definition
SCR_SimulateAndShowToggle.c:6
SCR_SimulateAndShowToggle::GetEntries
override int GetEntries(notnull array< ref SCR_BaseEditorAttributeEntry > outEntries)
Definition
SCR_SimulateAndShowToggle.c:35
SCR_SimulateAndShowToggle::ReadVariable
override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
Definition
SCR_SimulateAndShowToggle.c:13
SCR_SimulateAndShowToggle::m_bDisableSubWhenMainIsFalse
bool m_bDisableSubWhenMainIsFalse
Definition
SCR_SimulateAndShowToggle.c:9
UIWidgets
Definition
attributes.c:40
vector
Definition
vector.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
Vector
proto native vector Vector(float x, float y, float z)
scripts
Game
Editor
Containers
Attributes
SCR_SimulateAndShowToggle.c
Generated by
1.17.0