Exemplo n.º 1
0
        // Use this for initialization
        void Start()
        {
            this.getDebugCamera     = ToolbeltManager.FirstInstance.sceneCamera.GetComponent <GetDebugCamera>();
            this.optionalGlobalsGUI = ToolbeltManager.FirstInstance.sceneCamera.gameObject;
            this.SceneRoot          = ToolbeltManager.FirstInstance.transform;


            this.itemMenu = new ItemMenu(new Rect(LEFT_OFFSET, TAB_HEIGHT + TOP_OFFSET, this.width, this.height - TAB_HEIGHT), this.SceneRoot, this.dropSkin);
            //this.dropDownList = new DebugDropDownList(new Rect (0, TAB_HEIGHT,this.width/2,this.height-TAB_HEIGHT), this.SceneRoot);
            //this.dropDownList.dropSkin = this.dropSkin;
            //this.itemViewer = new DebugItemViewer(new Rect(this.width/2, TAB_HEIGHT,this.width/2,this.height-TAB_HEIGHT));

            this.globalsViewer = new DebugGlobalsMenu(new Rect(LEFT_OFFSET, TAB_HEIGHT + TOP_OFFSET, this.width / 2, this.height - TAB_HEIGHT), this.getDebugCamera, this.optionalGlobalsGUI);
            this.saveMenu      = new SaveMenu(new Rect(LEFT_OFFSET, TAB_HEIGHT + TOP_OFFSET, this.width / 2, this.height - TAB_HEIGHT), this.SceneRoot.gameObject, this.RefreshRootObject);

            this.debugTabs[0] = this.itemMenu;
            this.debugTabs[1] = this.globalsViewer;
            this.debugTabs[2] = new DebugTabMenu();     // STUB
            this.debugTabs[3] = this.saveMenu;
        }
Exemplo n.º 2
0
        // Use this for initialization
        void Start()
        {
            this.getDebugCamera = ToolbeltManager.FirstInstance.sceneCamera.GetComponent<GetDebugCamera>();
            this.optionalGlobalsGUI = ToolbeltManager.FirstInstance.sceneCamera.gameObject;
            this.SceneRoot = ToolbeltManager.FirstInstance.transform;

            this.itemMenu = new ItemMenu(new Rect(LEFT_OFFSET, TAB_HEIGHT+TOP_OFFSET, this.width,this.height - TAB_HEIGHT), this.SceneRoot, this.dropSkin);
            //this.dropDownList = new DebugDropDownList(new Rect (0, TAB_HEIGHT,this.width/2,this.height-TAB_HEIGHT), this.SceneRoot);
            //this.dropDownList.dropSkin = this.dropSkin;
            //this.itemViewer = new DebugItemViewer(new Rect(this.width/2, TAB_HEIGHT,this.width/2,this.height-TAB_HEIGHT));

            this.globalsViewer = new DebugGlobalsMenu(new Rect(LEFT_OFFSET, TAB_HEIGHT+TOP_OFFSET,this.width/2,this.height-TAB_HEIGHT), this.getDebugCamera, this.optionalGlobalsGUI);
            this.saveMenu = new SaveMenu(new Rect(LEFT_OFFSET,TAB_HEIGHT+TOP_OFFSET,this.width/2,this.height-TAB_HEIGHT),this.SceneRoot.gameObject,this.RefreshRootObject);

            this.debugTabs[0] = this.itemMenu;
            this.debugTabs[1] = this.globalsViewer;
            this.debugTabs[2] = new DebugTabMenu(); // STUB
            this.debugTabs[3] = this.saveMenu;
        }