DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
HitDirectionImagesBase.c
Go to the documentation of this file.
1
3{
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 {
34 }
35
38
40 void GetCurrentImageData(out Widget layout, out Widget image)
41 {
43 image = layout.FindAnyWidget(GetTypeImagePathArray()[m_ImageIndex]);
44 }
45}
proto native WorkspaceWidget GetWorkspace()
void GetCurrentImageData(out Widget layout, out Widget image)
Layout should be sufficient for generic manipulation of the hit image.
protected void PerformRegisterImages()
protected array< string > GetTypeLayoutPathArray()
protected array< string > GetTypeImagePathArray()
protected void RegisterImage(string layout_path, string image_name)
Definition EnMath.c:7
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].
Definition EnMath.c:53
proto native external Widget CreateWidgets(string layout, Widget parentWidget=NULL, bool immedUpdate=true)
Create widgets from *.layout file.