Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
gewidgetsmetadata.c
Go to the documentation of this file.
1/*
2TODO - doxygen formating
3*/
4
7{
9 int m_Type;
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
39 {
40 return m_WidgetArray;
41 }
42
44 {
45 return m_Type;
46 }
47
49 {
50 return m_WidgetSetIdentifier;
51 }
52
55 {
56 return false;
57 }
58
60 {
61 return true;
62 }
63
64 void UpdateVisibility(bool state){}
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 {
97 }
98
100 {
102 }
103}
104
eBleedingSourceType m_Type
Super root of all classes in Enforce script.
Definition enscript.c:11
Manages all bleeding indicators and their updates.
TODO doc.
Definition enscript.c:118
void GameplayEffectsData(array< ref Widget > input, int type, int user_override=-1)
int m_WidgetSetIdentifier
void UpdateVisibility(bool state)
int GetWidgetSetID()
array< ref Widget > GetWidgetSet()
Widget m_LayoutRoot
void Update(float timeSlice=0, Param p=null, int handle=-1)
int GetWidgetSetType()
void ForceStop()
bool DataInitialized()
bool HasDefinedHandle()
Returns 'true' if this class contains update info.
void RegisterData(Param p)
void Init(array< ref Widget > input, int type, Widget layout_root, int user_override=-1)
ref array< ref Widget > m_WidgetArray
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
float m_SaturationMultiplier
void GameplayEffectsDataImage(array< ref Widget > input, int type, int user_override=-1)
ref array< int > m_CurrentColors
class GameplayEffectsData extends Managed m_OriginalColors
map< int, ref GameplayEffectsData > GameplayEffectDataMap
float GetSaturationMultiplier()
void SetSaturationMultiplier(float value)