DayZ
1.24
Loading...
Searching...
No Matches
UIPopupScriptPresetNew.c
Go to the documentation of this file.
1
class
UIPopupScriptPresetNew
extends
UIPopupScript
2
{
3
private
ButtonWidget
m_BtnOk
;
4
private
ButtonWidget
m_BtnCancel
;
5
6
//================================================
7
// UIPopupScriptSceneNew
8
//================================================
9
void
UIPopupScriptPresetNew
(
Widget
wgt
)
10
{
11
m_BtnOk =
ButtonWidget
.Cast(
wgt
.FindAnyWidget(
"btn_ppp_pn_ok"
));
12
m_BtnCancel =
ButtonWidget
.Cast(
wgt
.FindAnyWidget(
"btn_ppp_pn_cancel"
));
13
}
14
15
//================================================
16
// OnClick
17
//================================================
18
override
bool
OnClick
(
Widget
w
,
int
x
,
int
y
,
int
button
)
19
{
20
super
.OnClick(
w
,
x
,
y
,
button
);
21
22
if
(
w
== m_BtnOk)
23
{
24
EditBoxWidget
wgt_text
=
EditBoxWidget
.Cast(
m_WgtRoot
.FindAnyWidget(
"fld_ppp_pn_new_name"
));
25
PluginConfigDebugProfile
m_ConfigDebugProfile
=
PluginConfigDebugProfile
.Cast(
GetPlugin
(
PluginConfigDebugProfile
));
26
m_ConfigDebugProfile
.PresetAdd(
wgt_text
.GetText());
27
28
SceneEditorMenu
menu
= SceneEditorMenu.Cast(
GetGame
().GetUIManager().GetMenu());
29
menu
.RefreshLists();
30
PopupBack
();
31
32
return
true
;
33
}
34
else
if
(
w
== m_BtnCancel)
35
{
36
PopupBack
();
37
38
return
true
;
39
}
40
41
return
false
;
42
}
43
}
m_WgtRoot
Widget m_WgtRoot
Definition
HudDebug.c:92
x
Icon x
y
Icon y
m_ConfigDebugProfile
PluginConfigDebugProfile m_ConfigDebugProfile
Definition
PluginItemDiagnostic.c:57
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Definition
PluginManager.c:300
EditBoxWidget
Definition
EnWidgets.c:354
Param3
Definition
EntityAI.c:95
PluginConfigDebugProfile
Definition
PluginConfigDebugProfileFixed.c:2
UIPopupScript
Definition
UIPopupScript.c:2
UIPopupScript::OnClick
override bool OnClick(Widget w, int x, int y, int button)
Definition
UIPopupScriptPresetNew.c:18
UIPopupScript::UIPopupScriptPresetNew
void UIPopupScriptPresetNew(Widget wgt)
Definition
UIPopupScriptPresetNew.c:9
UIPopupScript::m_BtnOk
ButtonWidget m_BtnOk
Definition
UIPopupScriptConfigs.c:3
UIPopupScript::PopupBack
UIPopupScript PopupBack()
Definition
UIPopupScript.c:37
UIPopupScript::m_BtnCancel
ButtonWidget m_BtnCancel
Definition
UIPopupScriptConfigs.c:4
Widget
Definition
EnWidgets.c:190
GetGame
proto native CGame GetGame()
scripts
5_Mission
GUI
SceneEditorMenu
UIPopupScript
UIPopupScriptPresetNew.c
Generated by
1.10.0