Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_BaseEditorAttribute.c
Go to the documentation of this file.
1
4{
5 [Attribute()]
7
8 [Attribute(defvalue: "1", desc: "True to get the value from server.")]
9 private bool m_bIsServer;
10
11 [Attribute(params: "conf")]
13
14 [Attribute(params: "layout")]
16
17 [Attribute(desc: "Holds a list of dynamic descriptions from attributes. When hovered and when changing the attribute the system will loop through all entries and display the dynamic description for the first valid. If none are valid than the default description is shown")]
18 protected ref array<ref SCR_BaseAttributeDynamicDescription> m_aAttributeDynamicDescriptions;
19
20 //State
21 protected bool m_bAttributeEnabled = true;
22 protected bool m_bIsSubAttribute;
23 protected bool m_bInitCalled;
25 protected BaseGameMode m_GameMode;
26
27 //Conflicting attributes
28 protected bool m_bIsMultiSelect = false;
29 protected bool m_bHasConflictingValues = false;
30 protected bool m_bOverridingValues = false;
31
32 //Vars
34 protected ref SCR_BaseEditorAttributeVar m_CopyVar; //Used when has conflicting values. m_Var is deleted and a copy is saved if the var is disabled
35
36 protected ref SSnapshot m_Snapshot;
42
43 //------------------------------------------------------------------------------------------------
53
54 //------------------------------------------------------------------------------------------------
61
62 //------------------------------------------------------------------------------------------------
66 int GetDynamicDescriptionArray(notnull out array<SCR_BaseAttributeDynamicDescription> dynamicDescriptionArray)
67 {
69 {
70 dynamicDescriptionArray.Insert(description);
71 }
72
73 return dynamicDescriptionArray.Count();
74 }
75
76 //------------------------------------------------------------------------------------------------
79 bool IsServer()
80 {
81 return m_bIsServer;
82 }
83
84 //------------------------------------------------------------------------------------------------
91
92 //------------------------------------------------------------------------------------------------
96 {
97 return m_Layout;
98 }
99
100 //------------------------------------------------------------------------------------------------
105 {
106 return false;
107 }
108
109 //------------------------------------------------------------------------------------------------
112 {
113 return true;
114 }
115
116 //------------------------------------------------------------------------------------------------
121 {
122 if (!var)
123 return false;
124
125 if (m_Var)
126 {
127 if (var.Type() == m_Var.Type())
128 {
129 m_Var = var;
130 Event_OnVarChanged.Invoke(var);
131 return true;
132 }
133 else
134 {
135 PrintFormat("Trying to set attribute var to type '%1' but is type '%2'", var.Type().ToString(), m_Var.Type().ToString(), LogLevel.WARNING);
136 return false;
137 }
138 }
139 else
140 {
141 m_Var = var;
142 Event_OnVarChanged.Invoke(var);
143 return true;
144 }
145 }
146
147 //------------------------------------------------------------------------------------------------
149 sealed void ClearVar()
150 {
151 m_Var = null;
152 }
153
154 //------------------------------------------------------------------------------------------------
156 sealed void ClearCopyVar()
157 {
158 m_CopyVar = null;
159 }
160
161 //------------------------------------------------------------------------------------------------
165 {
166 return Event_OnVarChanged;
167 }
168
169 //------------------------------------------------------------------------------------------------
172 sealed void Enable(bool enabled)
173 {
174 m_bAttributeEnabled = enabled;
175 Event_OnToggleEnable.Invoke(enabled);
176 }
177
178 //------------------------------------------------------------------------------------------------
181 sealed void ToggleSelected(bool selected, int index)
182 {
183 Event_OnToggleButtonSelected.Invoke(selected, index, true);
184 }
185
186 //------------------------------------------------------------------------------------------------
189 sealed void SetAsSubAttribute()
190 {
191 m_bIsSubAttribute = true;
193 }
194
195 //------------------------------------------------------------------------------------------------
199 {
200 return m_bInitCalled;
201 }
202
203 //------------------------------------------------------------------------------------------------
206 void SetInitCalled(bool initCalled)
207 {
208 m_bInitCalled = initCalled;
209 }
210
211 //------------------------------------------------------------------------------------------------
216 {
217 return m_bIsMultiSelect;
218 }
219
220 //------------------------------------------------------------------------------------------------
224 void SetIsMultiSelect(bool isMultiSelect)
225 {
226 m_bIsMultiSelect = isMultiSelect;
227 }
228
229 //------------------------------------------------------------------------------------------------
234 {
236 }
237
238 //------------------------------------------------------------------------------------------------
242 void SetHasConflictingValues(bool hasConflictingValues)
243 {
244 m_bHasConflictingValues = hasConflictingValues;
245 }
246
247 //------------------------------------------------------------------------------------------------
250 void SetIsOverridingValues(bool isOverridingValues)
251 {
252 m_bOverridingValues = isOverridingValues;
253 }
254
255 //------------------------------------------------------------------------------------------------
259 {
260 return m_bOverridingValues;
261 }
262
263 //------------------------------------------------------------------------------------------------
267 {
268 return m_bAttributeEnabled;
269 }
270
271 //------------------------------------------------------------------------------------------------
275 {
276 return m_bIsSubAttribute;
277 }
278
279 //------------------------------------------------------------------------------------------------
283 {
285 }
286
287 //------------------------------------------------------------------------------------------------
294
295 //------------------------------------------------------------------------------------------------
302
303 //------------------------------------------------------------------------------------------------
307 sealed SCR_BaseEditorAttributeVar GetVariable(bool createWhenNull = false)
308 {
309 if (!m_Var && createWhenNull)
311
312 return m_Var;
313 }
314
315 //------------------------------------------------------------------------------------------------
319 {
320 return m_CopyVar;
321 }
322
323 //------------------------------------------------------------------------------------------------
327 {
328 if (!m_Var)
329 return m_CopyVar;
330
331 return m_Var;
332 }
333
334 //------------------------------------------------------------------------------------------------
337 sealed void CreateCopyVariable()
338 {
339 if (m_Var)
341 else
342 m_CopyVar = null;
343 }
344
345 //------------------------------------------------------------------------------------------------
352
353 //------------------------------------------------------------------------------------------------
356 sealed void SetConflictingAttributeWasReset(bool wasReset)
357 {
359 }
360
361 //------------------------------------------------------------------------------------------------
365 {
366 return m_Snapshot;
367 }
368
369 //------------------------------------------------------------------------------------------------
376
377 //------------------------------------------------------------------------------------------------
380 {
381 m_Var = var;
382 m_Snapshot = snapshot;
384 }
385
386 //------------------------------------------------------------------------------------------------
388 sealed void StopEditing()
389 {
390 m_Var = null;
391 m_Snapshot = null;
393
394 //Stop preview
395 PreviewVariable(false, null);
396 }
397
398 //------------------------------------------------------------------------------------------------
400 sealed void TelegraphChange(bool isReset)
401 {
402 //If has conflicting values on reset
403 if (isReset)
404 {
406 {
409 }
410 }
411
412 Event_OnExternalChange.Invoke(m_Var, isReset);
413 }
414
415 //------------------------------------------------------------------------------------------------
421
422 //------------------------------------------------------------------------------------------------
429 SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager);
430
431 //------------------------------------------------------------------------------------------------
439 void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID);
440
441 //------------------------------------------------------------------------------------------------
444 void PreviewVariable(bool setPreview, SCR_AttributesManagerEditorComponent manager);
445
446 //------------------------------------------------------------------------------------------------
451 void UpdateInterlinkedVariables(SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, bool isInit = false);
452
453 //------------------------------------------------------------------------------------------------
458 int GetEntries(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
459 {
460 return 0;
461 }
462
463 //------------------------------------------------------------------------------------------------
466 protected bool IsGameMode(Managed item)
467 {
468 return item == m_GameMode;
469 }
470
471 //------------------------------------------------------------------------------------------------
474 {
475 m_GameMode = GetGame().GetGameMode();
476 }
477}
478
479class SCR_BaseEditorAttributeEntry
480{
481}
482
483class SCR_BaseEditorAttributeEntryText: SCR_BaseEditorAttributeEntry
484{
485 private string m_sText;
486
487 //------------------------------------------------------------------------------------------------
488 string GetText()
489 {
490 return m_sText;
491 }
492
493 //------------------------------------------------------------------------------------------------
495 {
496 m_sText = text;
497 }
498}
499
500class SCR_BaseEditorAttributeEntryUIInfo : SCR_BaseEditorAttributeEntry
501{
502 private ref SCR_UIInfo m_Info;
503 private int m_iValue;
504
505 //------------------------------------------------------------------------------------------------
507 {
508 return m_Info;
509 }
510
511 //------------------------------------------------------------------------------------------------
512 int GetValue()
513 {
514 return m_iValue;
515 }
516
517 //------------------------------------------------------------------------------------------------
518 void SCR_BaseEditorAttributeEntryUIInfo(SCR_UIInfo info, int value = 0)
519 {
520 m_Info = info;
521 m_iValue = value;
522 }
523}
524
525class SCR_BaseEditorAttributeEntrySlider: SCR_BaseEditorAttributeEntry
526{
527 protected float m_fMin;
528 protected float m_fMax;
529 protected float m_fStep;
530 protected int m_sDecimals;
531 protected string m_sSliderValueFormating;
532 protected string m_sSliderLabel;
533
534 //------------------------------------------------------------------------------------------------
538 void GetSliderMinMaxStep(out float min, out float max, out float step)
539 {
540 min = m_fMin;
541 max = m_fMax;
542 step = m_fStep;
543 }
544
545 //------------------------------------------------------------------------------------------------
546 void SetSliderLabel(string label)
547 {
548 m_sSliderLabel = label;
549 }
550
551 //------------------------------------------------------------------------------------------------
553 {
554 return m_sSliderLabel;
555 }
556
557 //------------------------------------------------------------------------------------------------
560 string GetText(float value)
561 {
562 //--- ToDo: Use native fixed length conversion once it's implemented
563 float coef = Math.Pow(10, m_sDecimals);
564 value = Math.Round(value * coef);
565 string valueText = value.ToString();
566 if (m_sDecimals > 0)
567 {
568 for (int i = 0, count = m_sDecimals - valueText.Length() + 1; i < count; i++)
569 {
570 valueText = "0" + valueText;
571 }
572 int length = valueText.Length();
573 valueText = valueText.Substring(0, length - m_sDecimals) + "." + valueText.Substring(length - m_sDecimals, m_sDecimals);
574 }
575
576 return valueText;
577 }
578
579 //------------------------------------------------------------------------------------------------
581 // Formatt*ing
583 {
585 }
586
587 //------------------------------------------------------------------------------------------------
588 // constructor
590 {
591 string sliderValueFormating;
592 float min, max, step, decimals;
593
594 sliderValues.GetSliderValues(sliderValueFormating, min, max, step, decimals);
595
596 m_fMin = min;
597 m_fMax = max;
598 m_fStep = step;
599 m_sDecimals = decimals;
600 m_sSliderValueFormating = sliderValueFormating;
601 }
602}
603
604class SCR_BaseEditorAttributeEntryTimeSlider: SCR_BaseEditorAttributeEntry
605{
607 protected bool m_bAlwaysHideSeconds;
608
609 //------------------------------------------------------------------------------------------------
613 void GetTimeSliderValues(out ETimeFormatParam hideIfZero, out bool alwaysHideSeconds)
614 {
615 hideIfZero = m_eHideIfZero;
616 alwaysHideSeconds = m_bAlwaysHideSeconds;
617 }
618
619 //------------------------------------------------------------------------------------------------
620 // constructor
621 void SCR_BaseEditorAttributeEntryTimeSlider(ETimeFormatParam hideIfZero, bool alwaysHideSeconds)
622 {
623 m_eHideIfZero = hideIfZero;
624 m_bAlwaysHideSeconds = alwaysHideSeconds;
625 }
626}
627
628class SCR_BaseEditorAttributeFloatStringValues : SCR_BaseEditorAttributeEntry
629{
630 protected array<ref SCR_EditorAttributeFloatStringValueHolder> m_aValues;
631
632 //------------------------------------------------------------------------------------------------
633 // constructor
634 void SCR_BaseEditorAttributeFloatStringValues(array<ref SCR_EditorAttributeFloatStringValueHolder> values)
635 {
636 m_aValues = values;
637 }
638
639 //------------------------------------------------------------------------------------------------
642 {
643 return m_aValues.Count();
644 }
645
646 //------------------------------------------------------------------------------------------------
650 {
651 if (!m_aValues.IsIndexValid(index))
652 return null;
653
654 return m_aValues[index];
655 }
656
657 //------------------------------------------------------------------------------------------------
660 {
661 if (!m_aValues.IsIndexValid(index))
662 return 0;
663
664 return m_aValues[index].GetFloatValue();
665 }
666}
667
668class SCR_EditorAttributeEntryBool : SCR_BaseEditorAttributeEntry
669{
670 protected bool m_bBool;
671
672 //------------------------------------------------------------------------------------------------
673 // constructor
675 {
676 SetBool(newBool);
677 }
678
679 //------------------------------------------------------------------------------------------------
680 void SetBool(bool newBool)
681 {
682 m_bBool = newBool;
683 }
684
685 //------------------------------------------------------------------------------------------------
686 bool GetBool()
687 {
688 return m_bBool;
689 }
690}
691
692class SCR_EditorAttributeEntryStringArray : SCR_BaseEditorAttributeEntry
693{
694 protected array<ref LocalizedString> m_aValues;
695
696 //------------------------------------------------------------------------------------------------
697 // constructor
698 void SCR_EditorAttributeEntryStringArray(array<ref LocalizedString> values)
699 {
700 m_aValues = values;
701 }
702
703 //------------------------------------------------------------------------------------------------
705 {
706 return m_aValues.Count();
707 }
708
709 //------------------------------------------------------------------------------------------------
712 string GetEntry(int index)
713 {
714 return m_aValues[index];
715 }
716}
717
718class SCR_EditorAttributeEntryIntArray : SCR_BaseEditorAttributeEntry
719{
720 protected array<int> m_aValues;
721
722 //------------------------------------------------------------------------------------------------
723 // constructor
724 void SCR_EditorAttributeEntryIntArray(array<int> values)
725 {
726 m_aValues = values;
727 }
728
729 //------------------------------------------------------------------------------------------------
731 {
732 return m_aValues.Count();
733 }
734
735 //------------------------------------------------------------------------------------------------
737 {
738 if (index < 0 || index >= m_aValues.Count())
739 return 0;
740
741 return m_aValues[index];
742 }
743}
744
745class SCR_EditorAttributeEntryInt : SCR_BaseEditorAttributeEntry
746{
747 protected int m_iValue;
748
749 //------------------------------------------------------------------------------------------------
750 // constructor
752 {
753 m_iValue = value;
754 }
755
756 //------------------------------------------------------------------------------------------------
757 int GetInt()
758 {
759 return m_iValue;
760 }
761}
762
763
764class SCR_EditorAttributePresetEntry : SCR_BaseEditorAttributeEntry
765{
766 protected int m_iButtonsOnRow;
767 protected bool m_bHasRandomizeButton;
769 protected bool m_bHasIcon;
771 protected string m_sButtonDescription;
772 protected float m_iButtonHeight;
773
774 //------------------------------------------------------------------------------------------------
775 // constructor
783 void SCR_EditorAttributePresetEntry(int buttonsOnRow, bool hasRandomizeButton, ResourceName iconOfRandomizeButton = string.Empty, bool hasIcon = false, bool hasButtonDescription = false, string buttonDescription = string.Empty, int buttonHeight = -1)
784 {
785 m_iButtonsOnRow = buttonsOnRow;
786 m_bHasRandomizeButton = hasRandomizeButton;
787 m_sIconOfRandomizeButton = iconOfRandomizeButton;
788 m_bHasIcon = hasIcon;
789 m_bHasButtonDescription = hasButtonDescription;
790 m_sButtonDescription = buttonDescription;
791 m_iButtonHeight = buttonHeight;
792
793 }
794
795 //------------------------------------------------------------------------------------------------
796 void GetPresetValues(out int buttonsOnRow, out bool hasRandomizeButton, out ResourceName iconOfRandomizeButton, out bool hasIcon, out bool hasButtonDescription, out string buttonDescription, out int buttonHeight)
797 {
798 buttonsOnRow = m_iButtonsOnRow;
799 hasRandomizeButton = m_bHasRandomizeButton;
800 iconOfRandomizeButton = m_sIconOfRandomizeButton;
801 hasIcon = m_bHasIcon;
802 buttonHeight = m_iButtonHeight;
803 buttonDescription = m_sButtonDescription;
804 hasButtonDescription = m_bHasButtonDescription;
805 }
806}
807
809{
810 protected bool m_bCustomFlags;
811
812 //------------------------------------------------------------------------------------------------
813 // constructor
822 void SCR_EditorAttributePresetMultiSelectEntry(int buttonsOnRow, bool hasRandomizeButton, ResourceName iconOfRandomizeButton = string.Empty, bool hasIcon = false, bool hasButtonDescription = false, string buttonDescription = string.Empty, int buttonHeight = -1, int customFlags = false)
823 {
824 SCR_EditorAttributePresetEntry(buttonsOnRow, hasRandomizeButton, iconOfRandomizeButton, hasIcon, hasButtonDescription, buttonDescription, buttonHeight);
825 m_bCustomFlags = customFlags;
826 }
827
828 //------------------------------------------------------------------------------------------------
830 {
831 return m_bCustomFlags;
832 }
833}
834
835// A bool that makes sure that has override visuals are
836class SCR_EditorAttributeEntryOverride : SCR_BaseEditorAttributeEntry
837{
838 protected bool m_bOverrideToggled;
840
841 //------------------------------------------------------------------------------------------------
842 // constructor
843 void SCR_EditorAttributeEntryOverride(bool overrideToggled, typename linkedOverrideAttributeType)
844 {
845 m_bOverrideToggled = overrideToggled;
846 m_LinkedOverrideAttributeType = linkedOverrideAttributeType;
847 }
848
849 //------------------------------------------------------------------------------------------------
850 void GetToggleStateAndTypename(out bool overrideToggleState, out typename linkedOverrideAttributeType)
851 {
852 overrideToggleState = m_bOverrideToggled;
853 linkedOverrideAttributeType = m_LinkedOverrideAttributeType;
854 }
855}
856
857class SCR_BaseEditorAttributeDefaultFloatValue : SCR_BaseEditorAttributeEntry
858{
859 protected int m_fDefaultFloatValue;
860
861 //------------------------------------------------------------------------------------------------
862 // constructor
864 {
865 m_fDefaultFloatValue = floatValue;
866 }
867
868 //------------------------------------------------------------------------------------------------
870 {
872 }
873}
874
876{
877 //------------------------------------------------------------------------------------------------
878 override bool _WB_GetCustomTitle(BaseContainer source, out string title)
879 {
880 title = source.GetClassName();
881 title.Replace("SCR_", "");
882 title.Replace("EditorAttribute", "");
883
884 bool isServer;
885 source.Get("m_bIsServer", isServer);
886 if (!isServer)
887 title += " (Local)";
888
889 return true;
890 }
891}
ETimeFormatParam
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
string GetEntry(int index)
SCR_BaseEditorAttributeEntryUIInfo m_fMin
void SCR_EditorAttributeEntryStringArray(array< ref LocalizedString > values)
void SCR_BaseEditorAttributeDefaultFloatValue(float floatValue)
void SCR_BaseEditorAttributeEntryText(string text)
string GetSliderlabel()
void SCR_EditorAttributeEntryInt(int value)
void SCR_EditorAttributePresetMultiSelectEntry(int buttonsOnRow, bool hasRandomizeButton, ResourceName iconOfRandomizeButton=string.Empty, bool hasIcon=false, bool hasButtonDescription=false, string buttonDescription=string.Empty, int buttonHeight=-1, int customFlags=false)
SCR_EditorAttributePresetEntry m_bCustomFlags
void GetSliderMinMaxStep(out float min, out float max, out float step)
void SCR_BaseEditorAttributeFloatStringValues(array< ref SCR_EditorAttributeFloatStringValueHolder > values)
float GetEntryFloatValue(int index)
float m_fStep
void SetSliderLabel(string label)
SCR_EditorAttributeEntryOverride m_fDefaultFloatValue
string GetSliderValueFormating()
Get the secondary Label value.
bool GetUsesCustomFlags()
float GetDefaultFloatValue()
string m_sSliderLabel
int GetCount()
SCR_EditorAttributeFloatStringValueHolder GetValuesEntry(int index)
int GetValueCount()
string GetText()
void SCR_BaseEditorAttributeEntrySlider(SCR_EditorAttributeBaseValues sliderValues)
string m_sSliderValueFormating
SCR_BaseEditorAttributeEntryTimeSlider m_aValues
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
override SCR_UIInfo GetInfo()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
override int GetValue()
int m_iValue
Definition Math.c:13
void GetTimeSliderValues(out ETimeFormatParam hideIfZero, out bool alwaysHideSeconds)
ETimeFormatParam m_eHideIfZero
void SCR_BaseEditorAttributeEntryTimeSlider(ETimeFormatParam hideIfZero, bool alwaysHideSeconds)
bool m_bAlwaysHideSeconds
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
void PreviewVariable(bool setPreview, SCR_AttributesManagerEditorComponent manager)
void SetInitCalled(bool initCalled)
sealed void StartEditing(SCR_BaseEditorAttributeVar var, SSnapshot snapshot)
Initialise editing variables.
ref ScriptInvoker Event_OnExternalChange
SCR_BaseEditorAttributeVar CreateDefaultVariable()
Create a default bool (false) variable.
ref ScriptInvoker Event_OnToggleButtonSelected
sealed void StopEditing()
Reset editing variables.
void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
void SetHasConflictingValues(bool hasConflictingValues)
sealed void TelegraphChange(bool isReset)
ref SCR_BaseEditorAttributeVar m_CopyVar
ref SCR_BaseEditorAttributeVar m_Var
sealed bool SetVariable(SCR_BaseEditorAttributeVar var)
sealed ScriptInvoker GetOnVarChanged()
sealed SCR_BaseEditorAttributeVar GetVariable(bool createWhenNull=false)
int GetDynamicDescriptionArray(notnull out array< SCR_BaseAttributeDynamicDescription > dynamicDescriptionArray)
SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
void Initialize()
Method for initialization of base editor attribute.
void UpdateInterlinkedVariables(SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, bool isInit=false)
ref array< ref SCR_BaseAttributeDynamicDescription > m_aAttributeDynamicDescriptions
sealed ScriptInvoker GetOnToggleEnable()
sealed SCR_BaseEditorAttributeVar GetVariableOrCopy()
sealed void ToggleSelected(bool selected, int index)
sealed void ClearCopyVar()
Set copy var null.
sealed ScriptInvoker GetOnExternalnChange()
sealed void ClearVar()
Set var null.
ref ScriptInvoker Event_OnToggleEnable
ref SCR_EditorAttributeUIInfo m_UIInfo
ref ScriptInvoker Event_OnSetAsSubAttribute
sealed void SetConflictingAttributeWasReset(bool wasReset)
sealed ScriptInvoker GetOnToggleButtonSelected()
int GetEntries(notnull array< ref SCR_BaseEditorAttributeEntry > outEntries)
sealed void Enable(bool enabled)
void SetIsOverridingValues(bool isOverridingValues)
void SetIsMultiSelect(bool isMultiSelect)
SCR_EditorAttributeUIInfo GetUIInfo()
sealed SCR_BaseEditorAttributeVar GetCopyVariable()
sealed ScriptInvoker GetOnSetAsSubAttribute()
static SCR_BaseEditorAttributeVar CreateBool(bool value)
static SCR_BaseEditorAttributeVar CreateVector(vector value)
void GetSliderValues(out string sliderValueFormating, out float min, out float max, out float step, out int decimals)
bool GetBool()
void SCR_EditorAttributeEntryBool(bool newBool)
bool m_bBool
void SetBool(bool newBool)
array< int > m_aValues
int GetEntry(int index)
void SCR_EditorAttributeEntryIntArray(array< int > values)
int GetCount()
void GetToggleStateAndTypename(out bool overrideToggleState, out typename linkedOverrideAttributeType)
m_LinkedOverrideAttributeType
bool m_bOverrideToggled
void SCR_EditorAttributeEntryOverride(bool overrideToggled, typename linkedOverrideAttributeType)
int m_iButtonsOnRow
bool m_bHasButtonDescription
bool m_bHasRandomizeButton
void GetPresetValues(out int buttonsOnRow, out bool hasRandomizeButton, out ResourceName iconOfRandomizeButton, out bool hasIcon, out bool hasButtonDescription, out string buttonDescription, out int buttonHeight)
float m_iButtonHeight
ResourceName m_sIconOfRandomizeButton
string m_sButtonDescription
bool m_bHasIcon
void SCR_EditorAttributePresetEntry(int buttonsOnRow, bool hasRandomizeButton, ResourceName iconOfRandomizeButton=string.Empty, bool hasIcon=false, bool hasButtonDescription=false, string buttonDescription=string.Empty, int buttonHeight=-1)
UIInfo used by editor attribute system.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL, LogLevel level=LogLevel.NORMAL)
SCR_FieldOfViewSettings Attribute
SSnapSerializerBase Managed SSnapshot(int sizeInBytes)
Binary data container used in conjuction with a serializer.
string m_sText
Definition EnWidgets.c:82
ScriptInvokerBase< func > ScriptInvoker
Definition tools.c:134