Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_BlockedUsersDialogEntryUIComponent.c
Go to the documentation of this file.
2{
3 [Attribute("m_PlayerName")]
4 protected string m_sPlayerNameWidgetName;
5
6 [Attribute("m_PlatformIcon")]
7 protected string m_sPlatformIconWidgetName;
8
9 [Attribute("ProfileButton")]
10 protected string m_sProfileButtonName;
11
12 [Attribute("UnblockButton")]
13 protected string m_sUnblockButtonName;
14
18
19 protected string m_sPlayerName;
21
22 protected SCR_ModularButtonComponent m_Button;
23
24 protected SCR_ModularButtonComponent m_ProfileButton;
25 protected SCR_ModularButtonComponent m_UnblockButton;
26
27 //Debug variable
29
30 //------------------------------------------------------------------------------------------------
31 override void HandlerAttached(Widget w)
32 {
33 super.HandlerAttached(w);
34
37
38 m_ProfileButton = SCR_ModularButtonComponent.Cast(m_wRoot.FindAnyWidget(m_sProfileButtonName).FindHandler(SCR_ModularButtonComponent));
39 m_UnblockButton = SCR_ModularButtonComponent.Cast(m_wRoot.FindAnyWidget(m_sUnblockButtonName).FindHandler(SCR_ModularButtonComponent));
40
41 m_wUnblockButtonIcon = ImageWidget.Cast(m_ProfileButton.GetRootWidget().FindAnyWidget("Icon"));
42 }
43
44 //------------------------------------------------------------------------------------------------
46 void SetPlayerName(string name)
47 {
48 if (!m_wPlayerName)
49 return;
50
51 m_sPlayerName = name;
52 m_wPlayerName.SetText(name);
53 }
54
55 //------------------------------------------------------------------------------------------------
57 {
58 return m_sPlayerName;
59 }
60
61 //------------------------------------------------------------------------------------------------
64 {
65 if (!m_wPlatfromIcon)
66 return;
67
68 if (platform == PlatformKind.PSN)
69 {
70 m_wPlatfromIcon.LoadImageFromSet(0, UIConstants.ICONS_IMAGE_SET, UIConstants.PLATFROM_PLAYSTATION_ICON_NAME);
71 m_wUnblockButtonIcon.LoadImageFromSet(0, UIConstants.ICONS_IMAGE_SET, UIConstants.PLATFROM_PLAYSTATION_ICON_NAME);
72 }
73 else
74 {
75 m_wPlatfromIcon.LoadImageFromSet(0, UIConstants.ICONS_IMAGE_SET, UIConstants.PLATFROM_GENERIC_ICON_NAME);
76 m_wUnblockButtonIcon.LoadImageFromSet(0, UIConstants.ICONS_IMAGE_SET, UIConstants.PLATFROM_GENERIC_ICON_NAME);
77 }
78
79 }
80
81 //------------------------------------------------------------------------------------------------
82 void SetButtonsVisibility(bool newVis)
83 {
84 //m_ProfileButton.SetVisible(newVis);
85 m_UnblockButton.SetVisible(newVis);
86 }
87
88 //------------------------------------------------------------------------------------------------
89 SCR_ModularButtonComponent GetProfileButton()
90 {
91 return m_ProfileButton;
92 }
93
94 //------------------------------------------------------------------------------------------------
95 SCR_ModularButtonComponent GetUnblockButton()
96 {
97 return m_UnblockButton;
98 }
99
100
101
102
103}
PlatformKind
Definition PlatformKind.c:8
void SetButtonsVisibility(bool newVis)
void SetPlayerName(string name)
Show the name of the player.
override void HandlerAttached(Widget w)
SCR_ModularButtonComponent m_UnblockButton
RichTextWidget m_wPlayerName
SCR_ModularButtonComponent GetUnblockButton()
PlatformKind m_ePlayerPlatform
string GetPlayerName()
string m_sProfileButtonName
string m_sPlatformIconWidgetName
string m_sPlayerNameWidgetName
SCR_ModularButtonComponent GetProfileButton()
SCR_ModularButtonComponent m_Button
ImageWidget m_wUnblockButtonIcon
bool m_bDebugIsPlaystation
void SetPlatfrom(PlatformKind platform)
Show the players platform.
SCR_ModularButtonComponent m_ProfileButton
string m_sPlayerName
ImageWidget m_wPlatfromIcon
string m_sUnblockButtonName
SCR_FieldOfViewSettings Attribute