DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
UIPopupScriptSceneRename.c
См. документацию.
1
class
UIPopupScriptSceneRename
extends
UIPopupScript
2
{
3
private
ButtonWidget m_BtnOk;
4
private
ButtonWidget m_BtnCancel;
5
private
string
m_RenameName
;
6
7
//================================================
8
// UIPopupScriptSceneRename
9
//================================================
10
void
UIPopupScriptSceneRename
(
Widget
wgt)
11
{
12
m_BtnOk
= ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_sn_rnm_ok"
) );
13
m_BtnCancel
= ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_sn_rnm_cancel"
) );
14
}
15
16
//================================================
17
// OnClick
18
//================================================
19
override
bool
OnClick
(
Widget
w,
int
x
,
int
y
,
int
button)
20
{
21
super.OnClick(w,
x
,
y
, button);
22
23
if
( w ==
m_BtnOk
)
24
{
25
EditBoxWidget
wgt_text =
EditBoxWidget
.Cast(
m_WgtRoot
.FindAnyWidget(
"fld_ppp_sn_rnm_new_name"
) );
26
27
PluginSceneManager editor = PluginSceneManager.Cast(
GetPlugin
(PluginSceneManager) );
28
29
editor.SceneRename(
m_RenameName
, wgt_text.GetText());
30
m_RenameName
=
STRING_EMPTY
;
31
32
PopupBack
();
33
34
return
true
;
35
}
36
else
if
( w ==
m_BtnCancel
)
37
{
38
PopupBack
();
39
40
return
true
;
41
}
42
43
return
false
;
44
}
45
46
//================================================
47
// SetRenameName
48
//================================================
49
void
SetRenameName
(
string
rename_name)
50
{
51
m_RenameName
= rename_name;
52
}
53
}
x
Icon x
y
Icon y
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)
Определения
UIPopupScriptSceneRename.c:19
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::m_RenameName
string m_RenameName
Определения
UIPopupScriptSceneRename.c:5
UIPopupScript::UIPopupScriptSceneRename
void UIPopupScriptSceneRename(Widget wgt)
Определения
UIPopupScriptSceneRename.c:10
UIPopupScript::SetRenameName
void SetRenameName(string rename_name)
Определения
UIPopupScriptSceneRename.c:49
UIPopupScript
Определения
UIPopupScript.c:2
Widget
Определения
EnWidgets.c:190
STRING_EMPTY
const string STRING_EMPTY
Определения
constants.c:54
Ishodniki
scripts
5_Mission
GUI
SceneEditorMenu
UIPopupScript
UIPopupScriptSceneRename.c
Создано системой
1.13.2