Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
hitdirectionimagesbase.c
Go to the documentation of this file.
1
3{
4 int m_ImageIndex;
5
7 {
9 {
11 }
12
14 }
15
16 protected void PerformRegisterImages()
17 {
18 /*
19 RegisterImage("gui/layouts/gameplay/HitDirectionIndication.layout","Single_indicator_Splash_1");
20 RegisterImage("gui/layouts/gameplay/HitDirectionIndication.layout","Single_indicator_Splash_2");
21 ...
22 */
23 }
24
25 protected void RegisterImage(string layout_path, string image_name)
26 {
27 GetTypeLayoutPathArray().Insert(layout_path);
28 GetTypeImagePathArray().Insert(image_name);
29 }
30
31 protected void RandomizeImageIdx()
32 {
33 m_ImageIndex = Math.RandomIntInclusive(0,GetTypeImagePathArray().Count() - 1);
34 }
35
38
40 void GetCurrentImageData(out Widget layout, out Widget image)
41 {
42 layout = GetGame().GetWorkspace().CreateWidgets(GetTypeLayoutPathArray()[m_ImageIndex]);
43 image = layout.FindAnyWidget(GetTypeImagePathArray()[m_ImageIndex]);
44 }
45}
array< string > GetTypeLayoutPathArray()
array< string > GetTypeImagePathArray()
void GetCurrentImageData(out Widget layout, out Widget image)
Layout should be sufficient for generic manipulation of the hit image.
void RegisterImage(string layout_path, string image_name)
Definition enmath.c:7
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()