Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
hitdirectionimagesbase.c
Go to the documentation of this file.
1
3{
5
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
35
38
40 void GetCurrentImageData(out Widget layout, out Widget image)
41 {
42 layout = g_Game.GetWorkspace().CreateWidgets(GetTypeLayoutPathArray()[m_ImageIndex]);
43 image = layout.FindAnyWidget(GetTypeImagePathArray()[m_ImageIndex]);
44 }
45}
void GetCurrentImageData(out Widget layout, out Widget image)
Layout should be sufficient for generic manipulation of the hit image.
array< string > GetTypeImagePathArray()
void RegisterImage(string layout_path, string image_name)
array< string > GetTypeLayoutPathArray()
Definition enmath.c:7
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZGame g_Game
Definition dayzgame.c:3942
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition enmath.c:54