DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
UIPopupScript.c
См. документацию.
2{
3 //================================================
4 // UIPopupScript
5 //================================================
7 {
8 m_WgtRoot = wgt;
9 }
10
11 void OnOpen(Param param)
12 {
13 }
14
15 void OnClose()
16 {
17 }
18
19 void Show(bool show)
20 {
21 m_WgtRoot.Show(show);
22 }
23
24 bool OnClick(Widget w, int x, int y, int button)
25 {
26 return false;
27 }
28
29 bool OnChange(Widget w, int x, int y, bool finished)
30 {
31 return false;
32 }
33
34 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 // PopupBack
36 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38 {
39 SceneEditorMenu menu = SceneEditorMenu.Cast( GetGame().GetUIManager().GetMenu() );
40 return menu.PopupBack();
41 }
42
43 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44 // PopupOpen
45 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46 protected UIPopupScript PopupOpen(int popup_id, Param param)
47 {
48 SceneEditorMenu menu = SceneEditorMenu.Cast( GetGame().GetUIManager().GetMenu() );
49 return menu.PopupOpen(popup_id, param);
50 }
51
52 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
53 // GetSceneEditor
54 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 protected PluginSceneManager GetSceneEditor()
56 {
57 PluginSceneManager m = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) );
58 return m;
59 }
60
61 protected Widget m_WgtRoot;
62}
Icon x
Icon y
PluginBase GetPlugin(typename plugin_type)
Определения PluginManager.c:316
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Определения param.c:12
bool OnClick(Widget w, int x, int y, int button)
Определения UIPopupScript.c:24
void OnClose()
Определения UIPopupScript.c:15
void Show(bool show)
Определения UIPopupScript.c:19
Widget m_WgtRoot
Определения UIPopupScript.c:61
UIPopupScript PopupBack()
Определения UIPopupScript.c:37
UIPopupScript PopupOpen(int popup_id, Param param)
Определения UIPopupScript.c:46
void OnOpen(Param param)
Определения UIPopupScript.c:11
PluginSceneManager GetSceneEditor()
Определения UIPopupScript.c:55
void UIPopupScript(Widget wgt)
Определения UIPopupScript.c:6
bool OnChange(Widget w, int x, int y, bool finished)
Определения UIPopupScript.c:29
Определения EnWidgets.c:190
proto native CGame GetGame()