File size: 1,360 Bytes
24b81cb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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;
}