Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_WorkshopAddonLineComponent.c
Go to the documentation of this file.
1
/*
2
Component to be attached to addon lines.
3
*/
4
5
class
SCR_WorkshopAddonLineComponent
:
SCR_AddonLineBaseComponent
6
{
7
//------------------------------------------------------------------------------------------------
8
override
bool
OnClick
(
Widget
w,
int
x,
int
y,
int
button)
9
{
10
bool
result = super.OnClick(w, x, y, button);
11
OnOpenDetailsButton
();
12
13
return
result;
14
}
15
16
//------------------------------------------------------------------------------------------------
17
override
void
UpdateAllWidgets
()
18
{
19
if
(
m_Item
)
20
HandleEnableButtons
(
IsEnabled
());
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
}
OnClick
void OnClick()
On click callback.
Definition
SCR_MapToolMenuUI.c:143
SCR_AddonLineBaseComponent
Definition
SCR_AddonLineBaseComponent.c:8
SCR_AddonLineBaseComponent::IsEnabled
bool IsEnabled()
SCR_AddonLineBaseComponent::UpdateAllWidgets
void UpdateAllWidgets()
Update vizual state of line.
Definition
SCR_AddonLineBaseComponent.c:135
SCR_AddonLineBaseComponent::HandleEnableButtons
void HandleEnableButtons(bool addonEnabled, bool forceHidden=false)
Definition
SCR_AddonLineBaseComponent.c:218
SCR_AddonLineBaseComponent::m_Item
ref SCR_WorkshopItem m_Item
Definition
SCR_AddonLineBaseComponent.c:12
SCR_AddonLineBaseComponent::OnOpenDetailsButton
void OnOpenDetailsButton()
Definition
SCR_AddonLineBaseComponent.c:405
SCR_WorkshopAddonLineComponent
Definition
SCR_WorkshopAddonLineComponent.c:6
Widget
Definition
Widget.c:13
scripts
Game
UI
Menu
ContentBrowser
AddonManager
SCR_WorkshopAddonLineComponent.c
Generated by
1.17.0