Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_WorkshopAddonLineComponent.c
Go to the documentation of this file.
1/*
2Component to be attached to addon lines.
3*/
4
6{
7 //------------------------------------------------------------------------------------------------
8 override bool OnClick(Widget w, int x, int y, int button)
9 {
10 bool result = super.OnClick(w, x, y, button);
12
13 return result;
14 }
15
16 //------------------------------------------------------------------------------------------------
17 override void UpdateAllWidgets()
18 {
19 if (m_Item)
21
22 super.UpdateAllWidgets();
23 }
24
25 //------------------------------------------------------------------------------------------------
26 override bool IsEnabled()
27 {
28 if (!m_Item)
29 return false;
30
31 return m_Item.GetEnabled();
32 }
33}
void OnClick()
On click callback.
void UpdateAllWidgets()
Update vizual state of line.
void HandleEnableButtons(bool addonEnabled, bool forceHidden=false)