Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_BaseEditorAttribute.c
Go to the documentation of this file.
4 {
5  [Attribute()]
6  protected ref SCR_EditorAttributeUIInfo m_UIInfo;
7 
8  [Attribute(defvalue: "1", desc: "True to get the value from server.")]
9  private bool m_bIsServer;
10 
11  [Attribute(params: "conf")]
12  protected ResourceName m_CategoryConfig;
13 
14  [Attribute(params: "layout")]
15  protected ResourceName m_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;
24  protected bool m_bConflictingAttributeWasReset;
25 
26  //Conflicting attributes
27  protected bool m_bIsMultiSelect = false;
28  protected bool m_bHasConflictingValues = false;
29  protected bool m_bOverridingValues = false;
30 
31  //Vars
32  protected ref SCR_BaseEditorAttributeVar m_Var;
33  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
34 
35  protected ref SSnapshot m_Snapshot;
36  protected ref ScriptInvoker Event_OnExternalChange;
37  protected ref ScriptInvoker Event_OnVarChanged = new ScriptInvoker;
38  protected ref ScriptInvoker Event_OnToggleEnable = new ScriptInvoker;
39  protected ref ScriptInvoker Event_OnToggleButtonSelected = new ScriptInvoker;
40  protected ref ScriptInvoker Event_OnSetAsSubAttribute = new ScriptInvoker;
41 
42  //------------------------------------------------------------------------------------------------
45  void ResetAttribute()
46  {
47  SetInitCalled(false);
48  ClearCopyVar();
49  SetIsOverridingValues(false);
50  SetConflictingAttributeWasReset(false);
51  }
52 
53  //------------------------------------------------------------------------------------------------
56  SCR_EditorAttributeUIInfo GetUIInfo()
57  {
58  return m_UIInfo;
59  }
60 
61  //------------------------------------------------------------------------------------------------
65  int GetDynamicDescriptionArray(notnull out array<SCR_BaseAttributeDynamicDescription> dynamicDescriptionArray)
66  {
67  foreach (SCR_BaseAttributeDynamicDescription description : m_aAttributeDynamicDescriptions)
68  {
69  dynamicDescriptionArray.Insert(description);
70  }
71 
72  return dynamicDescriptionArray.Count();
73  }
74 
75  //------------------------------------------------------------------------------------------------
78  bool IsServer()
79  {
80  return m_bIsServer;
81  }
82 
83  //------------------------------------------------------------------------------------------------
86  ResourceName GetCategoryConfig()
87  {
88  return m_CategoryConfig;
89  }
90 
91  //------------------------------------------------------------------------------------------------
94  ResourceName GetLayout()
95  {
96  return m_Layout;
97  }
98 
99  //------------------------------------------------------------------------------------------------
103  bool BoolAllowDuplicate()
104  {
105  return false;
106  }
107 
108  //------------------------------------------------------------------------------------------------
110  bool IsSerializable()
111  {
112  return true;
113  }
114 
115  //------------------------------------------------------------------------------------------------
119  sealed bool SetVariable(SCR_BaseEditorAttributeVar var)
120  {
121  if (!var)
122  return false;
123 
124  if (m_Var)
125  {
126  if (var.Type() == m_Var.Type())
127  {
128  m_Var = var;
129  Event_OnVarChanged.Invoke(var);
130  return true;
131  }
132  else
133  {
134  PrintFormat("Trying to set attribute var to type '%1' but is type '%2'", var.Type().ToString(), m_Var.Type().ToString(), LogLevel.WARNING);
135  return false;
136  }
137  }
138  else
139  {
140  m_Var = var;
141  Event_OnVarChanged.Invoke(var);
142  return true;
143  }
144  }
145 
146  //------------------------------------------------------------------------------------------------
148  sealed void ClearVar()
149  {
150  m_Var = null;
151  }
152 
153  //------------------------------------------------------------------------------------------------
155  sealed void ClearCopyVar()
156  {
157  m_CopyVar = null;
158  }
159 
160  //------------------------------------------------------------------------------------------------
163  sealed ScriptInvoker GetOnVarChanged()
164  {
165  return Event_OnVarChanged;
166  }
167 
168  //------------------------------------------------------------------------------------------------
171  sealed void Enable(bool enabled)
172  {
173  m_bAttributeEnabled = enabled;
174  Event_OnToggleEnable.Invoke(enabled);
175  }
176 
177  //------------------------------------------------------------------------------------------------
180  sealed void ToggleSelected(bool selected, int index)
181  {
182  Event_OnToggleButtonSelected.Invoke(selected, index, true);
183  }
184 
185  //------------------------------------------------------------------------------------------------
188  sealed void SetAsSubAttribute()
189  {
190  m_bIsSubAttribute = true;
191  Event_OnSetAsSubAttribute.Invoke();
192  }
193 
194  //------------------------------------------------------------------------------------------------
197  bool GetInitCalled()
198  {
199  return m_bInitCalled;
200  }
201 
202  //------------------------------------------------------------------------------------------------
205  void SetInitCalled(bool initCalled)
206  {
207  m_bInitCalled = initCalled;
208  }
209 
210  //------------------------------------------------------------------------------------------------
214  bool GetIsMultiSelect()
215  {
216  return m_bIsMultiSelect;
217  }
218 
219  //------------------------------------------------------------------------------------------------
223  void SetIsMultiSelect(bool isMultiSelect)
224  {
225  m_bIsMultiSelect = isMultiSelect;
226  }
227 
228  //------------------------------------------------------------------------------------------------
232  bool GetHasConflictingValues()
233  {
234  return m_bHasConflictingValues;
235  }
236 
237  //------------------------------------------------------------------------------------------------
241  void SetHasConflictingValues(bool hasConflictingValues)
242  {
243  m_bHasConflictingValues = hasConflictingValues;
244  }
245 
246  //------------------------------------------------------------------------------------------------
249  void SetIsOverridingValues(bool isOverridingValues)
250  {
251  m_bOverridingValues = isOverridingValues;
252  }
253 
254  //------------------------------------------------------------------------------------------------
257  bool GetIsOverridingValues()
258  {
259  return m_bOverridingValues;
260  }
261 
262  //------------------------------------------------------------------------------------------------
265  bool IsEnabled()
266  {
267  return m_bAttributeEnabled;
268  }
269 
270  //------------------------------------------------------------------------------------------------
273  bool GetIsSubAttribute()
274  {
275  return m_bIsSubAttribute;
276  }
277 
278  //------------------------------------------------------------------------------------------------
281  sealed ScriptInvoker GetOnToggleEnable()
282  {
283  return Event_OnToggleEnable;
284  }
285 
286  //------------------------------------------------------------------------------------------------
289  sealed ScriptInvoker GetOnToggleButtonSelected()
290  {
291  return Event_OnToggleButtonSelected;
292  }
293 
294  //------------------------------------------------------------------------------------------------
297  sealed ScriptInvoker GetOnSetAsSubAttribute()
298  {
299  return Event_OnSetAsSubAttribute;
300  }
301 
302  //------------------------------------------------------------------------------------------------
306  sealed SCR_BaseEditorAttributeVar GetVariable(bool createWhenNull = false)
307  {
308  if (!m_Var && createWhenNull)
309  m_Var = CreateDefaultVariable();
310 
311  return m_Var;
312  }
313 
314  //------------------------------------------------------------------------------------------------
317  sealed SCR_BaseEditorAttributeVar GetCopyVariable()
318  {
319  return m_CopyVar;
320  }
321 
322  //------------------------------------------------------------------------------------------------
325  sealed SCR_BaseEditorAttributeVar GetVariableOrCopy()
326  {
327  if (!m_Var)
328  return m_CopyVar;
329 
330  return m_Var;
331  }
332 
333  //------------------------------------------------------------------------------------------------
336  sealed void CreateCopyVariable()
337  {
338  if (m_Var)
339  m_CopyVar = SCR_BaseEditorAttributeVar.CreateVector(m_Var.GetVector());
340  else
341  m_CopyVar = null;
342  }
343 
344  //------------------------------------------------------------------------------------------------
347  sealed bool GetConflictingAttributeWasReset()
348  {
349  return m_bConflictingAttributeWasReset;
350  }
351 
352  //------------------------------------------------------------------------------------------------
355  sealed void SetConflictingAttributeWasReset(bool wasReset)
356  {
357  m_bConflictingAttributeWasReset = wasReset;
358  }
359 
360  //------------------------------------------------------------------------------------------------
363  sealed SSnapshot GetSnapshot()
364  {
365  return m_Snapshot;
366  }
367 
368  //------------------------------------------------------------------------------------------------
371  sealed ScriptInvoker GetOnExternalnChange()
372  {
373  return Event_OnExternalChange;
374  }
375 
376  //------------------------------------------------------------------------------------------------
378  sealed void StartEditing(SCR_BaseEditorAttributeVar var, SSnapshot snapshot)
379  {
380  m_Var = var;
381  m_Snapshot = snapshot;
382  Event_OnExternalChange = new ScriptInvoker;
383  }
384 
385  //------------------------------------------------------------------------------------------------
387  sealed void StopEditing()
388  {
389  m_Var = null;
390  m_Snapshot = null;
391  Event_OnExternalChange = null;
392 
393  //Stop preview
394  PreviewVariable(false, null);
395  }
396 
397  //------------------------------------------------------------------------------------------------
399  sealed void TelegraphChange(bool isReset)
400  {
401  //If has conflicting values on reset
402  if (isReset)
403  {
404  if (GetHasConflictingValues())
405  {
406  SetConflictingAttributeWasReset(true);
407  SetIsOverridingValues(false);
408  }
409  }
410 
411  Event_OnExternalChange.Invoke(m_Var, isReset);
412  }
413 
414  //------------------------------------------------------------------------------------------------
416  protected SCR_BaseEditorAttributeVar CreateDefaultVariable()
417  {
418  return SCR_BaseEditorAttributeVar.CreateBool(false);
419  }
420 
421  //------------------------------------------------------------------------------------------------
428  SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager);
429 
430  //------------------------------------------------------------------------------------------------
438  void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID);
439 
440  //------------------------------------------------------------------------------------------------
443  void PreviewVariable(bool setPreview, SCR_AttributesManagerEditorComponent manager);
444 
445  //------------------------------------------------------------------------------------------------
450  void UpdateInterlinkedVariables(SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, bool isInit = false);
451 
452  //------------------------------------------------------------------------------------------------
457  int GetEntries(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
458  {
459  return 0;
460  }
461 
462  //------------------------------------------------------------------------------------------------
465  protected bool IsGameMode(Managed item)
466  {
467  return item == GetGame().GetGameMode();
468  }
469 }
470 
471 class SCR_BaseEditorAttributeEntry
472 {
473 }
474 
475 class SCR_BaseEditorAttributeEntryText: SCR_BaseEditorAttributeEntry
476 {
477  private string m_sText;
478 
479  //------------------------------------------------------------------------------------------------
480  string GetText()
481  {
482  return m_sText;
483  }
484 
485  //------------------------------------------------------------------------------------------------
487  {
488  m_sText = text;
489  }
490 }
491 
492 class SCR_BaseEditorAttributeEntryUIInfo : SCR_BaseEditorAttributeEntry
493 {
494  private ref SCR_UIInfo m_Info;
495  private int m_iValue;
496 
497  //------------------------------------------------------------------------------------------------
498  SCR_UIInfo GetInfo()
499  {
500  return m_Info;
501  }
502 
503  //------------------------------------------------------------------------------------------------
504  int GetValue()
505  {
506  return m_iValue;
507  }
508 
509  //------------------------------------------------------------------------------------------------
510  void SCR_BaseEditorAttributeEntryUIInfo(SCR_UIInfo info, int value = 0)
511  {
512  m_Info = info;
513  m_iValue = value;
514  }
515 }
516 
517 class SCR_BaseEditorAttributeEntrySlider: SCR_BaseEditorAttributeEntry
518 {
519  protected float m_fMin;
520  protected float m_fMax;
521  protected float m_fStep;
522  protected int m_sDecimals;
523  protected string m_sSliderValueFormating;
524  protected string m_sSliderLabel;
525 
526  //------------------------------------------------------------------------------------------------
530  void GetSliderMinMaxStep(out float min, out float max, out float step)
531  {
532  min = m_fMin;
533  max = m_fMax;
534  step = m_fStep;
535  }
536 
537  //------------------------------------------------------------------------------------------------
538  void SetSliderLabel(string label)
539  {
540  m_sSliderLabel = label;
541  }
542 
543  //------------------------------------------------------------------------------------------------
544  string GetSliderlabel()
545  {
546  return m_sSliderLabel;
547  }
548 
549  //------------------------------------------------------------------------------------------------
552  string GetText(float value)
553  {
554  //--- ToDo: Use native fixed length conversion once it's implemented
555  float coef = Math.Pow(10, m_sDecimals);
556  value = Math.Round(value * coef);
557  string valueText = value.ToString();
558  if (m_sDecimals > 0)
559  {
560  for (int i = 0, count = m_sDecimals - valueText.Length() + 1; i < count; i++)
561  {
562  valueText = "0" + valueText;
563  }
564  int length = valueText.Length();
565  valueText = valueText.Substring(0, length - m_sDecimals) + "." + valueText.Substring(length - m_sDecimals, m_sDecimals);
566  }
567 
568  return valueText;
569  }
570 
571  //------------------------------------------------------------------------------------------------
573  // Formatt*ing
575  {
577  }
578 
579  //------------------------------------------------------------------------------------------------
580  // constructor
582  {
583  string sliderValueSymbol;
584  string sliderValueFormating;
585  float min, max, step, decimals;
586 
587  sliderValues.GetSliderValues(sliderValueFormating, min, max, step, decimals);
588 
589  m_fMin = min;
590  m_fMax = max;
591  m_fStep = step;
592  m_sDecimals = decimals;
593  m_sSliderValueFormating = sliderValueFormating;
594  }
595 }
596 
597 class SCR_BaseEditorAttributeEntryTimeSlider: SCR_BaseEditorAttributeEntry
598 {
599  protected ETimeFormatParam m_eHideIfZero;
600  protected bool m_bAlwaysHideSeconds;
601 
602  //------------------------------------------------------------------------------------------------
606  void GetTimeSliderValues(out ETimeFormatParam hideIfZero, out bool alwaysHideSeconds)
607  {
608  hideIfZero = m_eHideIfZero;
609  alwaysHideSeconds = m_bAlwaysHideSeconds;
610  }
611 
612  //------------------------------------------------------------------------------------------------
613  // constructor
614  void SCR_BaseEditorAttributeEntryTimeSlider(ETimeFormatParam hideIfZero, bool alwaysHideSeconds)
615  {
616  m_eHideIfZero = hideIfZero;
617  m_bAlwaysHideSeconds = alwaysHideSeconds;
618  }
619 }
620 
621 class SCR_BaseEditorAttributeFloatStringValues : SCR_BaseEditorAttributeEntry
622 {
623  protected array<ref SCR_EditorAttributeFloatStringValueHolder> m_aValues;
624 
625  //------------------------------------------------------------------------------------------------
626  // constructor
627  void SCR_BaseEditorAttributeFloatStringValues(array<ref SCR_EditorAttributeFloatStringValueHolder> values)
628  {
629  m_aValues = values;
630  }
631 
632  //------------------------------------------------------------------------------------------------
635  {
636  return m_aValues.Count();
637  }
638 
639  //------------------------------------------------------------------------------------------------
643  {
644  if (!m_aValues.IsIndexValid(index))
645  return null;
646 
647  return m_aValues[index];
648  }
649 
650  //------------------------------------------------------------------------------------------------
653  {
654  if (!m_aValues.IsIndexValid(index))
655  return 0;
656 
657  return m_aValues[index].GetFloatValue();
658  }
659 }
660 
661 class SCR_EditorAttributeEntryBool : SCR_BaseEditorAttributeEntry
662 {
663  protected bool m_bBool;
664 
665  //------------------------------------------------------------------------------------------------
666  // constructor
667  void SCR_EditorAttributeEntryBool(bool newBool)
668  {
669  SetBool(newBool);
670  }
671 
672  //------------------------------------------------------------------------------------------------
673  void SetBool(bool newBool)
674  {
675  m_bBool = newBool;
676  }
677 
678  //------------------------------------------------------------------------------------------------
679  bool GetBool()
680  {
681  return m_bBool;
682  }
683 }
684 
685 class SCR_EditorAttributeEntryStringArray : SCR_BaseEditorAttributeEntry
686 {
687  protected array<ref LocalizedString> m_aValues;
688 
689  //------------------------------------------------------------------------------------------------
690  // constructor
691  void SCR_EditorAttributeEntryStringArray(array<ref LocalizedString> values)
692  {
693  m_aValues = values;
694  }
695 
696  //------------------------------------------------------------------------------------------------
697  int GetCount()
698  {
699  return m_aValues.Count();
700  }
701 
702  //------------------------------------------------------------------------------------------------
705  string GetEntry(int index)
706  {
707  return m_aValues[index];
708  }
709 }
710 
711 class SCR_EditorAttributeEntryIntArray : SCR_BaseEditorAttributeEntry
712 {
713  protected array<ref int> m_aValues;
714 
715  //------------------------------------------------------------------------------------------------
716  // constructor
717  void SCR_EditorAttributeEntryIntArray(array<ref int> values)
718  {
719  m_aValues = values;
720  }
721 
722  //------------------------------------------------------------------------------------------------
723  int GetCount()
724  {
725  return m_aValues.Count();
726  }
727 
728  //------------------------------------------------------------------------------------------------
729  int GetEntry(int index)
730  {
731  if (index < 0 || index >= m_aValues.Count())
732  return 0;
733 
734  return m_aValues[index];
735  }
736 }
737 
738 class SCR_EditorAttributeEntryInt : SCR_BaseEditorAttributeEntry
739 {
740  protected int m_iValue;
741 
742  //------------------------------------------------------------------------------------------------
743  // constructor
745  {
746  m_iValue = value;
747  }
748 
749  //------------------------------------------------------------------------------------------------
750  int GetInt()
751  {
752  return m_iValue;
753  }
754 }
755 
756 
757 class SCR_EditorAttributePresetEntry : SCR_BaseEditorAttributeEntry
758 {
759  protected int m_iButtonsOnRow;
760  protected bool m_bHasRandomizeButton;
761  protected ResourceName m_sIconOfRandomizeButton;
762  protected bool m_bHasIcon;
763  protected bool m_bHasButtonDescription;
764  protected string m_sButtonDescription;
765  protected float m_iButtonHeight;
766 
767  //------------------------------------------------------------------------------------------------
768  // constructor
776  void SCR_EditorAttributePresetEntry(int buttonsOnRow, bool hasRandomizeButton, ResourceName iconOfRandomizeButton = string.Empty, bool hasIcon = false, bool hasButtonDescription = false, string buttonDescription = string.Empty, int buttonHeight = -1)
777  {
778  m_iButtonsOnRow = buttonsOnRow;
779  m_bHasRandomizeButton = hasRandomizeButton;
780  m_sIconOfRandomizeButton = iconOfRandomizeButton;
781  m_bHasIcon = hasIcon;
782  m_bHasButtonDescription = hasButtonDescription;
783  m_sButtonDescription = buttonDescription;
784  m_iButtonHeight = buttonHeight;
785 
786  }
787 
788  //------------------------------------------------------------------------------------------------
789  void GetPresetValues(out int buttonsOnRow, out bool hasRandomizeButton, out ResourceName iconOfRandomizeButton, out bool hasIcon, out bool hasButtonDescription, out string buttonDescription, out int buttonHeight)
790  {
791  buttonsOnRow = m_iButtonsOnRow;
792  hasRandomizeButton = m_bHasRandomizeButton;
793  iconOfRandomizeButton = m_sIconOfRandomizeButton;
794  hasIcon = m_bHasIcon;
795  buttonHeight = m_iButtonHeight;
796  buttonDescription = m_sButtonDescription;
797  hasButtonDescription = m_bHasButtonDescription;
798  }
799 }
800 
802 {
803  protected bool m_bCustomFlags;
804 
805  //------------------------------------------------------------------------------------------------
806  // constructor
815  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)
816  {
817  SCR_EditorAttributePresetEntry(buttonsOnRow, hasRandomizeButton, iconOfRandomizeButton, hasIcon, hasButtonDescription, buttonDescription, buttonHeight);
818  m_bCustomFlags = customFlags;
819  }
820 
821  //------------------------------------------------------------------------------------------------
823  {
824  return m_bCustomFlags;
825  }
826 }
827 
828 // A bool that makes sure that has override visuals are
829 class SCR_EditorAttributeEntryOverride : SCR_BaseEditorAttributeEntry
830 {
831  protected bool m_bOverrideToggled;
832  protected typename m_LinkedOverrideAttributeType;
833 
834  //------------------------------------------------------------------------------------------------
835  // constructor
836  void SCR_EditorAttributeEntryOverride(bool overrideToggled, typename linkedOverrideAttributeType)
837  {
838  m_bOverrideToggled = overrideToggled;
839  m_LinkedOverrideAttributeType = linkedOverrideAttributeType;
840  }
841 
842  //------------------------------------------------------------------------------------------------
843  void GetToggleStateAndTypename(out bool overrideToggleState, out typename linkedOverrideAttributeType)
844  {
845  overrideToggleState = m_bOverrideToggled;
846  linkedOverrideAttributeType = m_LinkedOverrideAttributeType;
847  }
848 }
849 
850 class SCR_BaseEditorAttributeDefaultFloatValue : SCR_BaseEditorAttributeEntry
851 {
852  protected int m_fDefaultFloatValue;
853 
854  //------------------------------------------------------------------------------------------------
855  // constructor
857  {
858  m_fDefaultFloatValue = floatValue;
859  }
860 
861  //------------------------------------------------------------------------------------------------
863  {
864  return m_fDefaultFloatValue;
865  }
866 }
867 
868 class SCR_BaseEditorAttributeCustomTitle : BaseContainerCustomTitle
869 {
870  //------------------------------------------------------------------------------------------------
871  override bool _WB_GetCustomTitle(BaseContainer source, out string title)
872  {
873  title = source.GetClassName();
874  title.Replace("SCR_", "");
875  title.Replace("EditorAttribute", "");
876 
877  bool isServer;
878  source.Get("m_bIsServer", isServer);
879  if (!isServer)
880  title += " (Local)";
881 
882  return true;
883  }
884 }
m_fDefaultFloatValue
SCR_EditorAttributeEntryOverride m_fDefaultFloatValue
SCR_BaseAttributeDynamicDescription
Definition: SCR_BaseAttributeDynamicDescription.c:5
SCR_BaseEditorAttributeEntryUIInfo
Definition: SCR_BaseEditorAttribute.c:492
m_aValues
SCR_BaseEditorAttributeEntryTimeSlider m_aValues
SetSliderLabel
void SetSliderLabel(string label)
Definition: SCR_BaseEditorAttribute.c:538
m_sSliderValueFormating
protected string m_sSliderValueFormating
Definition: SCR_BaseEditorAttribute.c:523
m_UIInfo
protected SCR_UIInfo m_UIInfo
Definition: SCR_EditableEntityCampaignBuildingModeLabelSetting.c:17
GetCount
int GetCount()
Definition: SCR_BaseEditorAttribute.c:697
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
m_iValue
protected int m_iValue
Definition: SCR_VotingBase.c:3
GetInt
int GetInt()
Definition: SCR_BaseEditorAttribute.c:750
m_Layout
ResourceName m_Layout
Definition: SCR_ActionsToolbarEditorUIComponent.c:6
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_EditorAttributeBaseValues
Definition: SCR_BaseValueListEditorAttribute.c:19
SCR_EditorAttributeUIInfo
UIInfo used by editor attribute system.
Definition: SCR_EditorAttributeUIInfo.c:3
m_fMax
protected float m_fMax
Definition: SCR_BaseEditorAttribute.c:520
SCR_BaseEditorAttributeCustomTitle
Definition: SCR_BaseEditorAttribute.c:868
m_sSliderLabel
protected string m_sSliderLabel
Definition: SCR_BaseEditorAttribute.c:524
SCR_EditorAttributeEntryInt
void SCR_EditorAttributeEntryInt(int value)
Definition: SCR_BaseEditorAttribute.c:744
GetValueCount
int GetValueCount()
Definition: SCR_BaseEditorAttribute.c:634
SCR_BaseEditorAttributeVar
Definition: SCR_BaseEditorAttributeVar.c:1
GetEntry
string GetEntry(int index)
Definition: SCR_BaseEditorAttribute.c:705
Attribute
typedef Attribute
Post-process effect of scripted camera.
m_Info
protected ref SCR_HintUIInfo m_Info
Definition: SCR_BaseHintCondition.c:3
ETimeFormatParam
ETimeFormatParam
Definition: ETimeFormatParam.c:4
SCR_BaseEditorAttributeFloatStringValues
void SCR_BaseEditorAttributeFloatStringValues(array< ref SCR_EditorAttributeFloatStringValueHolder > values)
Definition: SCR_BaseEditorAttribute.c:627
SCR_BaseEditorAttributeEntryTimeSlider
Definition: SCR_BaseEditorAttribute.c:597
m_sDecimals
protected int m_sDecimals
Definition: SCR_BaseEditorAttribute.c:522
GetDefaultFloatValue
float GetDefaultFloatValue()
Definition: SCR_BaseEditorAttribute.c:862
GetEntryFloatValue
float GetEntryFloatValue(int index)
Definition: SCR_BaseEditorAttribute.c:652
SCR_EditorAttributeEntryOverride
Definition: SCR_BaseEditorAttribute.c:829
SCR_EditorAttributePresetMultiSelectEntry
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)
Definition: SCR_BaseEditorAttribute.c:815
SCR_BaseEditorAttribute
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
Definition: SCR_BaseEditorAttribute.c:3
GetUsesCustomFlags
bool GetUsesCustomFlags()
Definition: SCR_BaseEditorAttribute.c:822
GetValuesEntry
SCR_EditorAttributeFloatStringValueHolder GetValuesEntry(int index)
Definition: SCR_BaseEditorAttribute.c:642
SCR_BaseEditorAttributeDefaultFloatValue
void SCR_BaseEditorAttributeDefaultFloatValue(float floatValue)
Definition: SCR_BaseEditorAttribute.c:856
SCR_BaseEditorAttributeEntryText
void SCR_BaseEditorAttributeEntryText(string text)
Definition: SCR_BaseEditorAttribute.c:486
SCR_UIInfo
Definition: SCR_UIInfo.c:7
GetSliderlabel
string GetSliderlabel()
Definition: SCR_BaseEditorAttribute.c:544
SCR_EditorAttributeFloatStringValueHolder
Definition: SCR_BaseFloatValueHolderEditorAttribute.c:17
index
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Definition: SCR_DestructionSynchronizationComponent.c:17
SCR_EditorAttributePresetEntry
Definition: SCR_BaseEditorAttribute.c:757
SCR_BaseEditorAttributeEntrySlider
void SCR_BaseEditorAttributeEntrySlider(SCR_EditorAttributeBaseValues sliderValues)
Definition: SCR_BaseEditorAttribute.c:581
m_fStep
protected float m_fStep
Definition: SCR_BaseEditorAttribute.c:521
SCR_EditorAttributeEntryIntArray
Definition: SCR_BaseEditorAttribute.c:711
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
SCR_EditorAttributeEntryStringArray
void SCR_EditorAttributeEntryStringArray(array< ref LocalizedString > values)
Definition: SCR_BaseEditorAttribute.c:691
GetSliderValueFormating
string GetSliderValueFormating()
Get the secondary Label value.
Definition: SCR_BaseEditorAttribute.c:574
GetSliderMinMaxStep
void GetSliderMinMaxStep(out float min, out float max, out float step)
Definition: SCR_BaseEditorAttribute.c:530
SCR_EditorAttributeEntryBool
Definition: SCR_BaseEditorAttribute.c:661
GetText
string GetText()
Definition: SCR_BaseEditorAttribute.c:480
m_iValue
SCR_EditorAttributeEntryIntArray m_iValue
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
m_sText
class SCR_BaseEditorAttribute m_sText
m_fMin
SCR_BaseEditorAttributeEntryUIInfo m_fMin
m_bCustomFlags
SCR_EditorAttributePresetEntry m_bCustomFlags