Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_MapMarkerDynamicWComponent.c
Go to the documentation of this file.
1
3{
4 protected int m_iLayerID; // map layer ID
8
9 //------------------------------------------------------------------------------------------------
12 {
13 m_MarkerEnt = marker;
14 }
15
16 //------------------------------------------------------------------------------------------------
17 void SetLayerID(int id)
18 {
19 m_iLayerID = id;
20 }
21
22 //------------------------------------------------------------------------------------------------
27 void SetImage(ResourceName icon, string quad, float aspectRatio = 1, int sizeFlag = 64)
28 {
29 m_wMarkerIcon.LoadImageFromSet(0, icon, quad);
30 }
31
32 //------------------------------------------------------------------------------------------------
34 void SetText(string text)
35 {
36 m_wMarkerText.SetText(text);
37 }
38
39 //------------------------------------------------------------------------------------------------
41 void SetTextVisible(bool state)
42 {
43 m_wMarkerText.SetVisible(state);
44 }
45
46 //------------------------------------------------------------------------------------------------
48 void SetColor(Color color)
49 {
50 m_wMarkerIcon.SetColor(color);
51 }
52
53 //------------------------------------------------------------------------------------------------
54 override void HandlerAttached(Widget w)
55 {
56 super.HandlerAttached(w);
57
58 m_wMarkerIcon = ImageWidget.Cast(m_wRoot.FindAnyWidget("MarkerIcon"));
59 m_wMarkerText = TextWidget.Cast(m_wRoot.FindAnyWidget("MarkerText"));
60 }
61}
AddonBuildInfoTool id
Definition Color.c:13
Attached to root of marker dynamic base layout.
void SetMarkerEntity(notnull SCR_MapMarkerEntity marker)
void SetImage(ResourceName icon, string quad, float aspectRatio=1, int sizeFlag=64)