Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
HoverButtonComponent.c
Go to the documentation of this file.
1// Base buttton that changes visuals on being hovered over, but no further functionality
2
3//------------------------------------------------------------------------------------------------
4
6{
7 [Attribute("false", UIWidgets.CheckBox, "")]
8 protected bool m_bColorizeChildren;
9
10 [Attribute("1 1 1 0", UIWidgets.ColorPicker, "")]
12
13 [Attribute("1 1 1 1", UIWidgets.ColorPicker, "")]
15
16 [Attribute("1 1 1 0", UIWidgets.ColorPicker, "")]
18
19 [Attribute("1 1 1 1", UIWidgets.ColorPicker, "")]
21
22 [Attribute("0 0 0 1", UIWidgets.ColorPicker, "")]
24
25 [Attribute("0.5 0.5 0.5 1", UIWidgets.ColorPicker, "")]
27
28 [Attribute("0.2", UIWidgets.EditBox, "")]
29 protected float m_fAnimationLength;
30
31 [Attribute(SCR_SoundEvent.CLICK, UIWidgets.EditBox, "")]
32 protected string m_sSoundClicked;
33
34 [Attribute(SCR_SoundEvent.SOUND_FE_BUTTON_HOVER, UIWidgets.EditBox, "")]
35 protected string m_sSoundHovered;
36
37 protected Widget m_wChild;
38
39
40 //------------------------------------------------------------------------------------------------
41 override void HandlerAttached(Widget w)
42 {
43
45
46 if (!w.IsEnabled())
47 {
48 w.SetColor(m_ColorButtonDisabled);
49 if (m_wChild)
50 w.SetColor(m_ColorChildDisabled);
51 }
52 else
53 {
54 w.SetColor(m_ColorButtonDefault);
55 if (m_wChild)
56 {
58 }
59 }
60 }
61
62 //------------------------------------------------------------------------------------------------
63 override bool OnClick(Widget w, int x, int y, int button)
64 {
66 return false;
67 }
68
69 //------------------------------------------------------------------------------------------------
79
80 //------------------------------------------------------------------------------------------------
89};
static WidgetAnimationColor Color(Widget widget, Color color, float speed)
Definition Color.c:13
override bool OnClick(Widget w, int x, int y, int button)
override bool OnMouseEnter(Widget w, int x, int y)
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
override void HandlerAttached(Widget w)
SCR_FieldOfViewSettings Attribute