Example #1
0
        public void StartUp()
        {
            if (this._startup)
            {
                return;
            }
            this._startup = true;
            this.bd       = GameObject.Find("board1_top/board").GetComponent <board>();
            this.bd3      = GameObject.Find("board3_top/board3").GetComponent <board3>();
            this.rep      = base.get_gameObject().get_transform().get_parent().get_parent().GetComponent <repair>();
            this.rep_p    = this.rep.get_transform().FindChild("board2_top/board2/UIScrollListRepair").GetComponent <UIScrollListRepair>();
            Camera component = this.rep.get_transform().FindChild("Camera").GetComponent <Camera>();

            this._clsScroll      = new KeyScrollControl(6, 6, this.scb);
            this._clsRepair      = this.rep.now_clsRepair();
            this.damage_flag     = 0;
            this._debug_shipping = false;
            TweenPosition.Begin(base.get_gameObject(), 0.01f, new Vector3(840f, 123f, -1f));
            this.ships = this._clsRepair.GetShipList();
            this.dockSelectController = new KeyControl(0, 0, 0.4f, 0.1f);
            this.dockSelectController.setChangeValue(0f, 0f, 0f, 0f);
            this.rep_p.SetCamera(component);
            this.rep_p.SetKeyController(this.dockSelectController);
            this.rep_p.ResumeControl();
            this.rep_p.SetOnSelectedListener(delegate(UIScrollListRepairChild child)
            {
                this.rep_p.keyController.ClearKeyAll();
                this.rep_p.LockControl();
                this.rep.set_mode(-2);
                if (child.GetModel() == null)
                {
                    return;
                }
                this.bd3.UpdateInfo(child.GetModel());
                this.bd3.board3_appear(true);
                this.rep.setmask(2, true);
                this.rep.set_mode(3);
            });
            this.redraw();
        }
Example #2
0
 public void StartUp()
 {
     if (!_startup)
     {
         _startup = true;
         bd       = GameObject.Find("board1_top/board").GetComponent <board>();
         bd3      = GameObject.Find("board3_top/board3").GetComponent <board3>();
         rep      = ((Component)base.gameObject.transform.parent.parent).GetComponent <repair>();
         rep_p    = ((Component)rep.transform.FindChild("board2_top/board2/UIScrollListRepair")).GetComponent <UIScrollListRepair>();
         Camera component = ((Component)rep.transform.FindChild("Camera")).GetComponent <Camera>();
         _clsScroll      = new KeyScrollControl(6, 6, scb);
         _clsRepair      = rep.now_clsRepair();
         damage_flag     = 0;
         _debug_shipping = false;
         TweenPosition.Begin(base.gameObject, 0.01f, new Vector3(840f, 123f, -1f));
         ships = _clsRepair.GetShipList();
         dockSelectController = new KeyControl();
         dockSelectController.setChangeValue(0f, 0f, 0f, 0f);
         rep_p.SetCamera(component);
         rep_p.SetKeyController(dockSelectController);
         rep_p.ResumeControl();
         rep_p.SetOnSelectedListener(delegate(UIScrollListRepairChild child)
         {
             rep_p.keyController.ClearKeyAll();
             rep_p.LockControl();
             rep.set_mode(-2);
             if (child.GetModel() != null)
             {
                 bd3.UpdateInfo(child.GetModel());
                 bd3.board3_appear(bstat: true);
                 rep.setmask(2, value: true);
                 rep.set_mode(3);
             }
         });
         redraw();
     }
 }