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_BlockedUsersDialogEntryUIComponent.c
Go to the documentation of this file.
1
class
SCR_BlockedUsersDialogEntryUIComponent
:
SCR_ScriptedWidgetComponent
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
15
protected
RichTextWidget
m_wPlayerName
;
16
protected
ImageWidget
m_wPlatfromIcon
;
17
protected
ImageWidget
m_wUnblockButtonIcon
;
18
19
protected
string
m_sPlayerName
;
20
protected
PlatformKind
m_ePlayerPlatform
;
21
22
protected
SCR_ModularButtonComponent
m_Button
;
23
24
protected
SCR_ModularButtonComponent
m_ProfileButton
;
25
protected
SCR_ModularButtonComponent
m_UnblockButton
;
26
27
//Debug variable
28
bool
m_bDebugIsPlaystation
;
29
30
//------------------------------------------------------------------------------------------------
31
override
void
HandlerAttached
(
Widget
w)
32
{
33
super.HandlerAttached(w);
34
35
m_wPlayerName
=
RichTextWidget
.Cast(
m_wRoot
.FindAnyWidget(
m_sPlayerNameWidgetName
));
36
m_wPlatfromIcon
=
ImageWidget
.Cast(
m_wRoot
.FindAnyWidget(
m_sPlatformIconWidgetName
));
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
//------------------------------------------------------------------------------------------------
56
string
GetPlayerName
()
57
{
58
return
m_sPlayerName
;
59
}
60
61
//------------------------------------------------------------------------------------------------
63
void
SetPlatfrom
(
PlatformKind
platform)
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
PlatformKind
Definition
PlatformKind.c:8
ImageWidget
Definition
ImageWidget.c:13
RichTextWidget
Definition
RichTextWidget.c:13
SCR_BlockedUsersDialogEntryUIComponent
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:2
SCR_BlockedUsersDialogEntryUIComponent::SetButtonsVisibility
void SetButtonsVisibility(bool newVis)
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:82
SCR_BlockedUsersDialogEntryUIComponent::SetPlayerName
void SetPlayerName(string name)
Show the name of the player.
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:46
SCR_BlockedUsersDialogEntryUIComponent::HandlerAttached
override void HandlerAttached(Widget w)
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:31
SCR_BlockedUsersDialogEntryUIComponent::m_UnblockButton
SCR_ModularButtonComponent m_UnblockButton
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:25
SCR_BlockedUsersDialogEntryUIComponent::m_wPlayerName
RichTextWidget m_wPlayerName
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:15
SCR_BlockedUsersDialogEntryUIComponent::GetUnblockButton
SCR_ModularButtonComponent GetUnblockButton()
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:95
SCR_BlockedUsersDialogEntryUIComponent::m_ePlayerPlatform
PlatformKind m_ePlayerPlatform
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:20
SCR_BlockedUsersDialogEntryUIComponent::GetPlayerName
string GetPlayerName()
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:56
SCR_BlockedUsersDialogEntryUIComponent::m_sProfileButtonName
string m_sProfileButtonName
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:10
SCR_BlockedUsersDialogEntryUIComponent::m_sPlatformIconWidgetName
string m_sPlatformIconWidgetName
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:7
SCR_BlockedUsersDialogEntryUIComponent::m_sPlayerNameWidgetName
string m_sPlayerNameWidgetName
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:4
SCR_BlockedUsersDialogEntryUIComponent::GetProfileButton
SCR_ModularButtonComponent GetProfileButton()
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:89
SCR_BlockedUsersDialogEntryUIComponent::m_Button
SCR_ModularButtonComponent m_Button
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:22
SCR_BlockedUsersDialogEntryUIComponent::m_wUnblockButtonIcon
ImageWidget m_wUnblockButtonIcon
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:17
SCR_BlockedUsersDialogEntryUIComponent::m_bDebugIsPlaystation
bool m_bDebugIsPlaystation
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:28
SCR_BlockedUsersDialogEntryUIComponent::SetPlatfrom
void SetPlatfrom(PlatformKind platform)
Show the players platform.
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:63
SCR_BlockedUsersDialogEntryUIComponent::m_ProfileButton
SCR_ModularButtonComponent m_ProfileButton
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:24
SCR_BlockedUsersDialogEntryUIComponent::m_sPlayerName
string m_sPlayerName
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:19
SCR_BlockedUsersDialogEntryUIComponent::m_wPlatfromIcon
ImageWidget m_wPlatfromIcon
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:16
SCR_BlockedUsersDialogEntryUIComponent::m_sUnblockButtonName
string m_sUnblockButtonName
Definition
SCR_BlockedUsersDialogEntryUIComponent.c:13
SCR_ScriptedWidgetComponent
Definition
SCR_ScriptedWidgetComponent.c:8
SCR_ScriptedWidgetComponent::m_wRoot
Widget m_wRoot
Definition
SCR_ScriptedWidgetComponent.c:9
UIConstants
Definition
Constants.c:151
Widget
Definition
Widget.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
Menu
SCR_BlockedUsersDialogEntryUIComponent.c
Generated by
1.17.0