DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
UIPopupScriptPresetRename.c
См. документацию.
1
class
UIPopupScriptPresetRename
extends
UIPopupScript
2
{
3
private
ButtonWidget m_BtnOk;
4
private
ButtonWidget m_BtnCancel;
5
private
EditBoxWidget
m_Editbox
;
6
7
//================================================
8
// UIPopupScriptSceneNew
9
//================================================
10
void
UIPopupScriptPresetRename
(
Widget
wgt )
11
{
12
m_BtnOk
= ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_pr_ok"
) );
13
m_BtnCancel
= ButtonWidget.Cast( wgt.FindAnyWidget(
"btn_ppp_pr_cancel"
) );
14
m_Editbox
=
EditBoxWidget
.Cast( wgt.FindAnyWidget(
"fld_ppp_pr_new_name"
) );
15
}
16
17
override
void
OnOpen
(
Param
param )
18
{
19
SceneEditorMenu menu = SceneEditorMenu.Cast(
GetGame
().GetUIManager().GetMenu() );
20
m_Editbox
.SetText( menu.GetCurrentPresetName() );
21
}
22
23
//================================================
24
// OnClick
25
//================================================
26
override
bool
OnClick
(
Widget
w,
int
x
,
int
y
,
int
button )
27
{
28
super.OnClick( w,
x
,
y
, button );
29
30
if
( w ==
m_BtnOk
)
31
{
32
EditBoxWidget
wgt_text =
EditBoxWidget
.Cast(
m_WgtRoot
.FindAnyWidget(
"fld_ppp_pr_new_name"
) );
33
SceneEditorMenu menu = SceneEditorMenu.Cast(
GetGame
().GetUIManager().GetMenu() );
34
menu.RenamePreset( wgt_text.GetText() );
35
menu.RefreshLists();
36
37
PopupBack
();
38
39
return
true
;
40
}
41
else
if
( w ==
m_BtnCancel
)
42
{
43
PopupBack
();
44
return
true
;
45
}
46
47
return
false
;
48
}
49
}
x
Icon x
y
Icon y
EditBoxWidget
Определения
EnWidgets.c:354
Param
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Определения
param.c:12
UIPopupScript::OnClick
override bool OnClick(Widget w, int x, int y, int button)
Определения
UIPopupScriptPresetRename.c:26
UIPopupScript::m_Editbox
EditBoxWidget m_Editbox
Определения
UIPopupScriptPresetRename.c:5
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::OnOpen
override void OnOpen(Param param)
Определения
UIPopupScriptPresetRename.c:17
UIPopupScript::UIPopupScriptPresetRename
void UIPopupScriptPresetRename(Widget wgt)
Определения
UIPopupScriptPresetRename.c:10
UIPopupScript
Определения
UIPopupScript.c:2
Widget
Определения
EnWidgets.c:190
GetGame
proto native CGame GetGame()
Ishodniki
scripts
5_Mission
GUI
SceneEditorMenu
UIPopupScript
UIPopupScriptPresetRename.c
Создано системой
1.13.2