DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
UIPopupScriptSceneDelete.c
См. документацию.
1
class
UIPopupScriptSceneDelete
extends
UIPopupScript
2
{
3
private
ButtonWidget
m_BtnYes
;
4
private
ButtonWidget
m_BtnNo
;
5
private
string
m_DeleteScene
;
6
7
//================================================
8
// UIPopupScriptSceneDelete
9
//================================================
10
void
UIPopupScriptSceneDelete
(
Widget
wgt)
11
{
12
m_BtnYes
= ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_sn_dlt_yes"
) );
13
m_BtnNo
= ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_sn_dlt_no"
) );
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_BtnYes
)
24
{
25
PluginSceneManager editor = PluginSceneManager.Cast(
GetPlugin
(PluginSceneManager) );
26
27
editor.SceneDelete(
m_DeleteScene
);
28
29
PopupBack
();
30
31
return
true
;
32
}
33
else
if
( w ==
m_BtnNo
)
34
{
35
m_DeleteScene
=
STRING_EMPTY
;
36
PopupBack
();
37
return
true
;
38
}
39
40
return
false
;
41
}
42
43
void
SetDeleteName
(
string
scene_name)
44
{
45
m_DeleteScene
= scene_name;
46
}
47
}
x
Icon x
y
Icon y
GetPlugin
PluginBase GetPlugin(typename plugin_type)
Определения
PluginManager.c:316
UIPopupScript::m_DeleteScene
string m_DeleteScene
Определения
UIPopupScriptSceneDelete.c:5
UIPopupScript::OnClick
override bool OnClick(Widget w, int x, int y, int button)
Определения
UIPopupScriptSceneDelete.c:19
UIPopupScript::m_BtnNo
ButtonWidget m_BtnNo
Определения
UIPopupScriptSceneDelete.c:4
UIPopupScript::PopupBack
UIPopupScript PopupBack()
Определения
UIPopupScript.c:37
UIPopupScript::UIPopupScriptSceneDelete
void UIPopupScriptSceneDelete(Widget wgt)
Определения
UIPopupScriptSceneDelete.c:10
UIPopupScript::m_BtnYes
ButtonWidget m_BtnYes
Определения
UIPopupScriptSceneDelete.c:3
UIPopupScript::SetDeleteName
void SetDeleteName(string scene_name)
Определения
UIPopupScriptSceneDelete.c:43
UIPopupScript
Определения
UIPopupScript.c:2
Widget
Определения
EnWidgets.c:190
STRING_EMPTY
const string STRING_EMPTY
Определения
constants.c:54
Ishodniki
scripts
5_Mission
GUI
SceneEditorMenu
UIPopupScript
UIPopupScriptSceneDelete.c
Создано системой
1.13.2