Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ViewProfileButtonComponent.c
Go to the documentation of this file.
1// Simple class to change the view profile button label automatically
3{
4 protected static const string PROFILE_BUTTON_TEXT = "#AR-PlayerLists_ShowProfile";
5 protected static const string PROFILE_BUTTON_TEXT_CONSOLE = "#AR-PlayerLists_ShowGamercard";
6
8
9 //------------------------------------------------------------------------------------------------
10 override void HandlerAttached(Widget w)
11 {
12 super.HandlerAttached(w);
13
14 Init();
15 }
16
17 //------------------------------------------------------------------------------------------------
19 void Init()
20 {
22 if (!m_ViewProfile)
23 return;
24
25 string label = PROFILE_BUTTON_TEXT;
26
27 if (GetGame().IsPlatformGameConsole() && GetGame().GetPlatformService().GetLocalPlatformKind() != PlatformKind.PSN)
29
30 m_ViewProfile.SetLabel(label);
31 }
32}
bool IsPlatformGameConsole()
Definition game.c:1357
ArmaReforgerScripted GetGame()
Definition game.c:1398
PlatformKind
Definition PlatformKind.c:8
static SCR_InputButtonComponent FindComponent(notnull Widget w)