DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
UIPopupScriptPresetNew.c
См. документацию.
1class UIPopupScriptPresetNew extends UIPopupScript
2{
3 private ButtonWidget m_BtnOk;
4 private ButtonWidget m_BtnCancel;
5
6 //================================================
7 // UIPopupScriptSceneNew
8 //================================================
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") );
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}
Icon x
Icon y
PluginConfigDebugProfile m_ConfigDebugProfile
Определения PluginItemDiagnostic.c:58
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
Определения EnWidgets.c:354
override bool OnClick(Widget w, int x, int y, int button)
Определения UIPopupScriptPresetNew.c:18
void UIPopupScriptPresetNew(Widget wgt)
Определения UIPopupScriptPresetNew.c:9
ButtonWidget m_BtnOk
Определения UIPopupScriptConfigs.c:3
Widget m_WgtRoot
Определения UIPopupScript.c:61
UIPopupScript PopupBack()
Определения UIPopupScript.c:37
ButtonWidget m_BtnCancel
Определения UIPopupScriptConfigs.c:4
Определения UIPopupScript.c:2
Определения EnWidgets.c:190
proto native CGame GetGame()