Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
gewidgetsmetadata.c
Go to the documentation of this file.
1 /*
2 TODO - doxygen formating
3 */
4 
6 class GameplayEffectsData extends Managed
7 {
8  protected ref array<ref Widget> m_WidgetArray;
9  int m_Type;
10  int m_WidgetSetIdentifier;
11  Widget m_LayoutRoot;
12 
13  void GameplayEffectsData(array<ref Widget> input, int type, int user_override = -1)
14  {
15  m_WidgetArray = input;
16  m_Type = type;
17  m_WidgetSetIdentifier = type;
18 
19  if (user_override != -1)
20  {
21  m_WidgetSetIdentifier = user_override;
22  }
23  }
24 
25  void Init(array<ref Widget> input, int type, Widget layout_root, int user_override = -1)
26  {
27  m_WidgetArray = input;
28  m_Type = type;
29  m_WidgetSetIdentifier = type;
30  m_LayoutRoot = layout_root;
31 
32  if (user_override != -1)
33  {
34  m_WidgetSetIdentifier = user_override;
35  }
36  }
37 
38  array<ref Widget> GetWidgetSet()
39  {
40  return m_WidgetArray;
41  }
42 
43  int GetWidgetSetType()
44  {
45  return m_Type;
46  }
47 
48  int GetWidgetSetID()
49  {
50  return m_WidgetSetIdentifier;
51  }
52 
54  bool HasDefinedHandle()
55  {
56  return false;
57  }
58 
59  bool DataInitialized()
60  {
61  return true;
62  }
63 
64  void UpdateVisibility(bool state){}
65  void RegisterData(Param p){}
66  void Update(float timeSlice = 0, Param p = null, int handle = -1){}
67  void ForceStop();
68 }
69 
71 {
74 
75  protected float m_SaturationMultiplier;//TODO ?
76 
77  void GameplayEffectsDataImage(array<ref Widget> input, int type, int user_override = -1)
78  {
79  ImageWidget w;
82 
83  for (int i = 0; i < input.Count(); i++)
84  {
85  if ( Class.CastTo(w,input.Get(i)) )
86  {
87  m_OriginalColors.Insert(w.GetColor());
88  }
89  }
90 
92  }
93 
94  void SetSaturationMultiplier(float value)
95  {
96  m_SaturationMultiplier = value;
97  }
98 
100  {
101  return m_SaturationMultiplier;
102  }
103 }
104 
Param
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition: param.c:11
m_Type
eBleedingSourceType m_Type
Definition: bleedingsource.c:25
GameplayEffectsDataImage
void GameplayEffectsDataImage(array< ref Widget > input, int type, int user_override=-1)
Definition: gewidgetsmetadata.c:77
Managed
TODO doc.
Definition: enscript.c:117
GameplayEffectDataMap
map< int, ref GameplayEffectsData > GameplayEffectDataMap
Definition: gewidgetsmetadata.c:105
m_CurrentColors
ref array< int > m_CurrentColors
Definition: gewidgetsmetadata.c:73
map
map
Definition: controlsxboxnew.c:3
GetSaturationMultiplier
float GetSaturationMultiplier()
Definition: gewidgetsmetadata.c:99
array< ref Widget >
m_SaturationMultiplier
protected float m_SaturationMultiplier
Definition: gewidgetsmetadata.c:75
Widget
Definition: enwidgets.c:189
SetSaturationMultiplier
void SetSaturationMultiplier(float value)
Definition: gewidgetsmetadata.c:94
Class
Super root of all classes in Enforce script.
Definition: enscript.c:10
m_OriginalColors
class GameplayEffectsData extends Managed m_OriginalColors
GameplayEffectsData
Manages all bleeding indicators and their updates.
Definition: gewidgetsmetadatableeding.c:3