Download scripts/5_Mission/DayZ/GUI/SceneEditorMenu/UIPopupScript.c from FelonieZ/DayZ_Scripts: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/5_Mission/DayZ/GUI/SceneEditorMenu/UIPopupScript.c
- Command line
-
hf download hf://datasets/FelonieZ/DayZ_Scripts/scripts/5_Mission/DayZ/GUI/SceneEditorMenu/UIPopupScript.c
-
curl -L -o UIPopupScript.c https://huggingface.co/datasets/FelonieZ/DayZ_Scripts/resolve/main/scripts/5_Mission/DayZ/GUI/SceneEditorMenu/UIPopupScript.c
1.36 kB
| class UIPopupScript | |
| { | |
| //================================================ | |
| // UIPopupScript | |
| //================================================ | |
| void UIPopupScript(Widget wgt) | |
| { | |
| m_WgtRoot = wgt; | |
| } | |
| void OnOpen(Param param) | |
| { | |
| } | |
| void OnClose() | |
| { | |
| } | |
| void Show(bool show) | |
| { | |
| m_WgtRoot.Show(show); | |
| } | |
| bool OnClick(Widget w, int x, int y, int button) | |
| { | |
| return false; | |
| } | |
| bool OnChange(Widget w, int x, int y, bool finished) | |
| { | |
| return false; | |
| } | |
| //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| // PopupBack | |
| //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| protected UIPopupScript PopupBack() | |
| { | |
| SceneEditorMenu menu = SceneEditorMenu.Cast( GetGame().GetUIManager().GetMenu() ); | |
| return menu.PopupBack(); | |
| } | |
| //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| // PopupOpen | |
| //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| protected UIPopupScript PopupOpen(int popup_id, Param param) | |
| { | |
| SceneEditorMenu menu = SceneEditorMenu.Cast( GetGame().GetUIManager().GetMenu() ); | |
| return menu.PopupOpen(popup_id, param); | |
| } | |
| //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| // GetSceneEditor | |
| //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| protected PluginSceneManager GetSceneEditor() | |
| { | |
| PluginSceneManager m = PluginSceneManager.Cast( GetPlugin(PluginSceneManager) ); | |
| return m; | |
| } | |
| protected Widget m_WgtRoot; | |
| } | |