DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
UIPopupScriptSceneNew.c
См. документацию.
1
class
UIPopupScriptSceneNew
extends
UIPopupScript
2
{
3
private
ButtonWidget m_BtnOk;
4
private
ButtonWidget m_BtnCancel;
5
6
//================================================
7
// UIPopupScriptSceneNew
8
//================================================
9
void
UIPopupScriptSceneNew
(
Widget
wgt)
10
{
11
m_BtnOk
= ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_sn_ok"
) );
12
m_BtnCancel
= ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_sn_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_sn_new_name"
) );
25
26
PluginSceneManager editor = PluginSceneManager.Cast(
GetPlugin
(PluginSceneManager) );
27
28
Log
(
"OnClick -> SceneLoad"
);
29
30
editor.SceneLoad(wgt_text.GetText());
31
editor.SceneSave();
32
33
PopupBack
();
34
35
return
true
;
36
}
37
else
if
( w ==
m_BtnCancel
)
38
{
39
PopupBack
();
40
41
return
true
;
42
}
43
44
return
false
;
45
}
46
}
x
Icon x
y
Icon y
Log
class LogTemplates Log(string message, LogTemplateID template_id=0)
Creates debug log (optional) from LogTemplate which are registred.
Определения
LogTemplates.c:75
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Определения
PluginManager.c:316
EditBoxWidget
Определения
EnWidgets.c:354
UIPopupScript::OnClick
override bool OnClick(Widget w, int x, int y, int button)
Определения
UIPopupScriptSceneNew.c:18
UIPopupScript::m_BtnOk
ButtonWidget m_BtnOk
Определения
UIPopupScriptConfigs.c:3
UIPopupScript::m_WgtRoot
Widget m_WgtRoot
Определения
UIPopupScript.c:61
UIPopupScript::PopupBack
UIPopupScript PopupBack()
Определения
UIPopupScript.c:37
UIPopupScript::m_BtnCancel
ButtonWidget m_BtnCancel
Определения
UIPopupScriptConfigs.c:4
UIPopupScript::UIPopupScriptSceneNew
void UIPopupScriptSceneNew(Widget wgt)
Определения
UIPopupScriptSceneNew.c:9
UIPopupScript
Определения
UIPopupScript.c:2
Widget
Определения
EnWidgets.c:190
Ishodniki
scripts
5_Mission
GUI
SceneEditorMenu
UIPopupScript
UIPopupScriptSceneNew.c
Создано системой
1.13.2