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_BreadCrumbElementComponent.c
Go to the documentation of this file.
1
5
6
//------------------------------------------------------------------------------------------------
7
class
SCR_BreadCrumbsElementComponent
:
SCR_ScriptedWidgetComponent
8
{
9
[
Attribute
(
"Icon"
)]
10
protected
string
m_sIcon
;
11
12
[
Attribute
(
"Label"
)]
13
protected
string
m_sLabel
;
14
15
protected
ImageWidget
m_wIcon
;
16
protected
TextWidget
m_wLabel
;
17
18
//------------------------------------------------------------------------------------------------
19
override
void
HandlerAttached
(
Widget
w)
20
{
21
super.HandlerAttached(w);
22
23
m_wIcon
=
ImageWidget
.Cast(w.FindAnyWidget(
m_sIcon
));
24
m_wLabel
=
TextWidget
.Cast(w.FindAnyWidget(
m_sLabel
));
25
}
26
27
//------------------------------------------------------------------------------------------------
29
void
SetBreadCrumb
(
SCR_UIInfo
info)
30
{
31
if
(
m_wLabel
)
32
m_wLabel
.SetText(
""
);
33
34
if
(
m_wIcon
)
35
info.
SetIconTo
(
m_wIcon
);
36
}
37
}
ImageWidget
Definition
ImageWidget.c:13
SCR_BreadCrumbsElementComponent
Definition
SCR_BreadCrumbElementComponent.c:8
SCR_BreadCrumbsElementComponent::m_sLabel
string m_sLabel
Definition
SCR_BreadCrumbElementComponent.c:13
SCR_BreadCrumbsElementComponent::m_wLabel
TextWidget m_wLabel
Definition
SCR_BreadCrumbElementComponent.c:16
SCR_BreadCrumbsElementComponent::SetBreadCrumb
void SetBreadCrumb(SCR_UIInfo info)
Set used icon and label.
Definition
SCR_BreadCrumbElementComponent.c:29
SCR_BreadCrumbsElementComponent::HandlerAttached
override void HandlerAttached(Widget w)
Definition
SCR_BreadCrumbElementComponent.c:19
SCR_BreadCrumbsElementComponent::m_sIcon
string m_sIcon
Definition
SCR_BreadCrumbElementComponent.c:10
SCR_BreadCrumbsElementComponent::m_wIcon
ImageWidget m_wIcon
Definition
SCR_BreadCrumbElementComponent.c:15
SCR_ScriptedWidgetComponent
Definition
SCR_ScriptedWidgetComponent.c:8
SCR_UIInfo
Definition
SCR_UIInfo.c:8
SCR_UIInfo::SetIconTo
bool SetIconTo(ImageWidget imageWidget)
Definition
SCR_UIInfo.c:102
TextWidget
Definition
TextWidget.c:16
Widget
Definition
Widget.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
Components
SCR_BreadCrumbElementComponent.c
Generated by
1.17.0