|
- var scrollVec : Vector2;
- var cls:boolean=false;var xx = Rect (120, 120, 320, 250);function OnGUI(){
- GUI.Window(0, Rect(Screen.width-100, 35, 100, 220 ), windowF, "Management");
- if(cls)
- xx = GUI.Window(1, xx, windowjj, "Warehouse");
- }
- function windowF(){
- GUILayout.BeginArea(Rect(4, 20, 90, 170));
- scrollVec = GUILayout.BeginScrollView(scrollVec);
- if(GUILayout.Button ("Warehouse"))
- cls=true;
- GUILayout.Button("Start");
- GUILayout.Button("Fighting");
- GUILayout.Button("Back");
- GUILayout.Button("1");
- GUILayout.Button("2");
- GUILayout.Button("3");
- GUILayout.Button("4");
- GUILayout.Button("5");
- GUILayout.Button("6");
- GUILayout.Button("7");
- GUILayout.Button("8");
- GUILayout.EndScrollView();
- GUILayout.EndArea();
- GUI.DragWindow ();
- }
- function windowjj(windowID : int){
- GUILayout.BeginArea(Rect(130, 160, 50, 130));
- if(GUILayout.Button("Close")) cls=false;
- GUILayout.EndArea(); GUI.DragWindow ();}
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|