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_ProfileSuperMenu.c
Go to the documentation of this file.
1
enum
SCR_EProfileSuperMenuTabId
2
{
3
NEWS
= 0,
4
COMMUNITY
5
}
6
7
class
SCR_ProfileSuperMenu :
SCR_SuperMenuBase
8
{
9
SCR_ModularButtonComponent
m_Logo
;
10
11
//------------------------------------------------------------------------------------------------
12
override
void
OnMenuOpen
()
13
{
14
super.OnMenuOpen();
15
16
SCR_InputButtonComponent
comp = m_DynamicFooter.FindButton(
UIConstants
.BUTTON_BACK);
17
if
(comp)
18
comp.
m_OnActivated
.Insert(
Close
);
19
20
Widget
logoWidget =
GetRootWidget
().FindAnyWidget(
"LogoButton"
);
21
if
(logoWidget)
22
{
23
m_Logo
= SCR_ModularButtonComponent.FindComponent(logoWidget);
24
if
(
m_Logo
)
25
m_Logo
.m_OnClicked.Insert(
OnLogoClicked
);
26
}
27
28
// Setup automatic focusing on tab show
29
if
(!m_SuperMenuComponent)
30
return
;
31
32
SCR_TabViewComponent
tabView = m_SuperMenuComponent.GetTabView();
33
if
(tabView)
34
tabView.
GetOnContentShow
().Insert(
OnTabContentShow
);
35
36
if
(
GetGame
().GetPlatformService().GetLocalPlatformKind() ==
PlatformKind
.PSN)
37
tabView.
RemoveTabByIdentifier
(
"Community"
);
38
}
39
40
//------------------------------------------------------------------------------------------------
41
override
void
OnMenuShow
()
42
{
43
super.OnMenuShow();
44
45
ResetFocus
();
46
}
47
48
//------------------------------------------------------------------------------------------------
49
protected
void
OnLogoClicked
()
50
{
51
GetGame
().GetMenuManager().OpenDialog(
ChimeraMenuPreset
.WelcomeDialog);
52
}
53
54
//------------------------------------------------------------------------------------------------
55
protected
void
OnTabContentShow
(
SCR_TabViewComponent
tabView,
Widget
widget)
56
{
57
ResetFocus
();
58
}
59
60
//------------------------------------------------------------------------------------------------
61
protected
void
ResetFocus
()
62
{
63
if
(
m_Logo
)
64
GetGame
().GetWorkspace().SetFocusedWidget(
m_Logo
.GetRootWidget());
65
}
66
}
ChimeraMenuPreset
ChimeraMenuPreset
Menu presets.
Definition
ChimeraMenuBase.c:4
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
PlatformKind
PlatformKind
Definition
PlatformKind.c:8
GetRootWidget
Widget GetRootWidget()
Definition
SCR_ModularButtonComponent.c:189
OnLogoClicked
void OnLogoClicked()
Definition
SCR_ProfileSuperMenu.c:49
m_Logo
enum SCR_EProfileSuperMenuTabId m_Logo
ResetFocus
void ResetFocus()
Definition
SCR_ProfileSuperMenu.c:61
SCR_EProfileSuperMenuTabId
SCR_EProfileSuperMenuTabId
Definition
SCR_ProfileSuperMenu.c:2
COMMUNITY
@ COMMUNITY
Definition
SCR_ProfileSuperMenu.c:4
NEWS
@ NEWS
Definition
SCR_ProfileSuperMenu.c:3
OnTabContentShow
void OnTabContentShow(SCR_TabViewComponent tabView, Widget widget)
Definition
SCR_ProfileSuperMenu.c:55
Close
proto native void Close()
Definition
SCR_WorkshopDialogs.c:77
SCR_InputButtonComponent
Definition
SCR_InputButtonComponent.c:2
SCR_InputButtonComponent::m_OnActivated
ref ScriptInvoker m_OnActivated
Definition
SCR_InputButtonComponent.c:153
SCR_SuperMenuBase
Definition
SCR_SuperMenuBase.c:7
SCR_SuperMenuBase::OnMenuOpen
override void OnMenuOpen()
Definition
SCR_SuperMenuBase.c:11
SCR_SuperMenuBase::OnMenuShow
override void OnMenuShow()
Definition
SCR_SuperMenuBase.c:26
SCR_TabViewComponent
Definition
SCR_TabViewComponent.c:14
SCR_TabViewComponent::GetOnContentShow
ScriptInvokerTabView GetOnContentShow()
Definition
SCR_TabViewComponent.c:943
SCR_TabViewComponent::RemoveTabByIdentifier
void RemoveTabByIdentifier(string identifier)
Definition
SCR_TabViewComponent.c:548
UIConstants
Definition
Constants.c:151
Widget
Definition
Widget.c:13
scripts
Game
UI
Components
MainMenu
SCR_ProfileSuperMenu.c
Generated by
1.17.0