public void _init_repair()
        {
            this.rep              = GameObject.Find("Repair Root").GetComponent <repair>();
            this.csb              = GameObject.Find("dialog_top/dialog/Banner/CommonShipBanner2").GetComponent <CommonShipBanner>();
            this.bd3              = GameObject.Find("board3_top/board3").GetComponent <board3>();
            this._Button_Yes      = GameObject.Find("dialog_top/dialog/btn_yes").GetComponent <UIButton>();
            this._Button_No       = GameObject.Find("dialog_top/dialog/btn_no").GetComponent <UIButton>();
            this.btn_obj[0]       = this._Button_No.get_gameObject();
            this.btn_obj[1]       = this._Button_Yes.get_gameObject();
            this._uiOverlayButton = GameObject.Find("dialog_top/dialog/OverlayBtn").GetComponent <UIButton>();
            EventDelegate.Add(this._uiOverlayButton.onClick, new EventDelegate.Callback(this._onClickOverlayButton));
            UIButtonMessage component = this._Button_Yes.GetComponent <UIButtonMessage>();

            component.target       = base.get_gameObject();
            component.functionName = "Pressed_Button_Yes";
            component.trigger      = UIButtonMessage.Trigger.OnClick;
            UIButtonMessage component2 = this._Button_No.GetComponent <UIButtonMessage>();

            component2.target                     = base.get_gameObject();
            component2.functionName               = "Pressed_Button_No";
            component2.trigger                    = UIButtonMessage.Trigger.OnClick;
            this._clsRepair                       = this.rep.now_clsRepair();
            this.dockSelectController             = new KeyControl(0, 1, 0.4f, 0.1f);
            this.dockSelectController.isLoopIndex = false;
            this.dockSelectController.setChangeValue(0f, 1f, 0f, -1f);
            this.sw = GameObject.Find("sw01").GetComponent <sw>();
            this.sw.setSW(false);
            this._bVector = Vector3.get_one();
        }
Esempio n. 2
0
        public void _init_repair()
        {
            rep              = GameObject.Find("Repair Root").GetComponent <repair>();
            csb              = GameObject.Find("dialog_top/dialog/Banner/CommonShipBanner2").GetComponent <CommonShipBanner>();
            bd3              = GameObject.Find("board3_top/board3").GetComponent <board3>();
            _Button_Yes      = GameObject.Find("dialog_top/dialog/btn_yes").GetComponent <UIButton>();
            _Button_No       = GameObject.Find("dialog_top/dialog/btn_no").GetComponent <UIButton>();
            btn_obj[0]       = _Button_No.gameObject;
            btn_obj[1]       = _Button_Yes.gameObject;
            _uiOverlayButton = GameObject.Find("dialog_top/dialog/OverlayBtn").GetComponent <UIButton>();
            EventDelegate.Add(_uiOverlayButton.onClick, _onClickOverlayButton);
            UIButtonMessage component = _Button_Yes.GetComponent <UIButtonMessage>();

            component.target       = base.gameObject;
            component.functionName = "Pressed_Button_Yes";
            component.trigger      = UIButtonMessage.Trigger.OnClick;
            UIButtonMessage component2 = _Button_No.GetComponent <UIButtonMessage>();

            component2.target       = base.gameObject;
            component2.functionName = "Pressed_Button_No";
            component2.trigger      = UIButtonMessage.Trigger.OnClick;
            _clsRepair                       = rep.now_clsRepair();
            dockSelectController             = new KeyControl(0, 1);
            dockSelectController.isLoopIndex = false;
            dockSelectController.setChangeValue(0f, 1f, 0f, -1f);
            sw = GameObject.Find("sw01").GetComponent <sw>();
            sw.setSW(stat: false);
            _bVector = Vector3.one;
        }
Esempio n. 3
0
        private void _all_init()
        {
            board           component   = base.get_transform().FindChild("board1_top/board").GetComponent <board>();
            board2          component2  = base.get_transform().FindChild("board2_top/board2").GetComponent <board2>();
            board3          component3  = base.get_transform().FindChild("board3_top/board3").GetComponent <board3>();
            board3_btn      component4  = base.get_transform().FindChild("board3_top/board3/Button").GetComponent <board3_btn>();
            board1_top_mask component5  = base.get_transform().FindChild("board1_top_mask").GetComponent <board1_top_mask>();
            board2_top_mask component6  = base.get_transform().FindChild("board2_top_mask").GetComponent <board2_top_mask>();
            board3_top_mask component7  = base.get_transform().FindChild("board3_top_mask").GetComponent <board3_top_mask>();
            crane_anime     component8  = base.get_transform().FindChild("board1_top/board/Grid/01/Anime").GetComponent <crane_anime>();
            dialog          component9  = base.get_transform().FindChild("dialog_top/dialog").GetComponent <dialog>();
            dialog2         component10 = base.get_transform().FindChild("dialog2_top/dialog2").GetComponent <dialog2>();
            high_repair     component11 = base.get_transform().FindChild("board1_top/board/Grid/00/repair_now/btn_high_repair").GetComponent <high_repair>();
            sentaku         component12 = base.get_transform().FindChild("board1_top/board/Grid/00/btn_Sentaku").GetComponent <sentaku>();
            sw component13 = base.get_transform().FindChild("board3_top/board3/sw01").GetComponent <sw>();

            component._init_repair();
            component2._init_repair();
            component3._init_repair();
            component5._init_repair();
            component6._init_repair();
            component7._init_repair();
            component4._init_repair();
            component8._init_repair();
            component9._init_repair();
            component10._init_repair();
            component11._init_repair();
            component12._init_repair();
            component.ResetMaruKey();
            GameObject.Find("Repair Root/debug").get_transform().localPositionY(-120f);
        }
Esempio n. 4
0
 public void _init_repair()
 {
     rep         = GameObject.Find("Repair Root").GetComponent <repair>();
     board_mask2 = GameObject.Find("Repair Root/board2_top_mask");
     bd3         = GameObject.Find("board3").GetComponent <board3>();
     board_mask2.GetComponent <UIPanel>().depth = 132;
     dia = GameObject.Find("dialog_top/dialog").GetComponent <dialog>();
 }
 public void _init_repair()
 {
     this.sw_enable    = true;
     this.sw_stat      = false;
     this._fairy_onoff = false;
     this.sw_ball      = GameObject.Find("sw_mini/switch_ball").GetComponent <UISprite>();
     this.sw_base      = GameObject.Find("sw_mini/switch_use").GetComponent <UISprite>();
     this._Ani         = GameObject.Find("sw_mini").GetComponent <Animation>();
     this._zzz         = GameObject.Find("SleepPar");
     this.rep          = GameObject.Find("Repair Root").GetComponent <repair>();
     this.bd3          = GameObject.Find("board3_top/board3").GetComponent <board3>();
 }
 public void StartUp()
 {
     this.rep                  = base.get_gameObject().get_transform().get_parent().get_parent().GetComponent <repair>();
     this.bd3b                 = this.rep.get_gameObject().get_transform().FindChild("board3_top/board3/Button").GetComponent <board3_btn>();
     this.bd3                  = this.rep.get_gameObject().get_transform().FindChild("board3_top/board3").GetComponent <board3>();
     this.dia                  = GameObject.Find("dialog_top/dialog").GetComponent <dialog>();
     this.btn_obj[0]           = GameObject.Find("switch_ball");
     this.btn_obj[1]           = this.bd3b.get_gameObject();
     this.dockSelectController = new KeyControl(0, 1, 0.4f, 0.1f);
     this.dockSelectController.setChangeValue(-1f, 0f, 1f, 0f);
     this.nyukyo     = false;
     this._clsRepair = this.rep.now_clsRepair();
 }
 public void _init_repair()
 {
     this.rep                  = base.get_gameObject().get_transform().get_parent().get_parent().GetComponent <repair>();
     this.bd3b                 = this.rep.get_gameObject().get_transform().FindChild("board3_top/board3/Button").GetComponent <board3_btn>();
     this.bd3                  = this.rep.get_gameObject().get_transform().FindChild("board3_top/board3").GetComponent <board3>();
     this.bd2                  = GameObject.Find("board2").GetComponent <board2>();
     this.btn_obj[0]           = GameObject.Find("switch_ball");
     this.btn_obj[1]           = this.bd3b.get_gameObject();
     this.sw                   = GameObject.Find("sw01").GetComponent <sw>();
     this.dockSelectController = new KeyControl(0, 1, 0.4f, 0.1f);
     this.dockSelectController.setChangeValue(-1f, 0f, 1f, 0f);
     this.nyukyo         = false;
     this.bd3firstUpdate = true;
     this.cy             = 1;
     this._clsRepair     = this.rep.now_clsRepair();
 }
Esempio n. 8
0
        public void StartUP()
        {
            this.rep = GameObject.Find("Repair Root").GetComponent <repair>();
            this.rep.set_mode(-1);
            if (this._isStartUpDone)
            {
                return;
            }
            this._isStartUpDone = true;
            this.bd2            = this.rep.get_transform().FindChild("board2_top/board2").GetComponent <board2>();
            this.bd3            = this.rep.get_transform().FindChild("board3_top/board3").GetComponent <board3>();
            this.dia            = GameObject.Find("dialog").GetComponent <dialog>();
            this.dia2           = GameObject.Find("dialog2").GetComponent <dialog2>();
            this.dia3           = GameObject.Find("dialog3").GetComponent <dialog3>();
            for (int i = 0; i < 4; i++)
            {
                GameObject[] arg_DE_0 = this.shutter;
                int          arg_DE_1 = i;
                string       arg_D4_0 = "board1_top/board/Grid/0";
                int          num      = i;
                arg_DE_0[arg_DE_1] = GameObject.Find(arg_D4_0 + num.ToString() + "/Shutter");
            }
            this._clsRepair = this.rep.now_clsRepair();
            this.now_kit    = this._clsRepair.Material.RepairKit;
            this._ANI       = this.rep.get_transform().FindChild("info").GetComponent <Animation>();
            int num2 = this._clsRepair.MapArea.NDockCount;

            if (num2 == this._clsRepair.MapArea.NDockMax)
            {
                num2--;
            }
            this.dockSelectController = new KeyControl(0, num2, 0.4f, 0.1f);
            this.dock_flag_init();
            this.dockSelectController.setChangeValue(-1f, 0f, 1f, 0f);
            this.dockSelectController.isLoopIndex = false;
            this._first_key     = false;
            this._go_kosoku     = 0;
            this._go_kosoku_m   = -1;
            this._select_dock   = 0;
            this._select_dock_m = -1;
            this._dock_exist    = false;
            this.redraw();
            this.bd2.StartUp();
            this.bd3.StartUp();
        }
Esempio n. 9
0
 public void Pressed_Button_Yes3(GameObject obj)
 {
     this.rep.set_mode(-1);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     this._clickmask.unclickable_onesec();
     this._isBtnMaruUp = false;
     this.Set_Button_Sprite(false);
     this.dockSelectController.Index = 0;
     this.dialog3_appear(false);
     this.b3 = GameObject.Find("board3").GetComponent <board3>();
     this.b3.board3_appear(false, true);
     this.b2 = GameObject.Find("board2").GetComponent <board2>();
     this.b2.board2_appear(false, true);
     this.rep.all_rid_mask();
     this.bd1.OpenDock(this.selected_dock);
     this.rep.set_mode(1);
     TrophyUtil.Unlock_At_DockOpen();
 }
Esempio n. 10
0
 public void Pressed_Button_Yes3(GameObject obj)
 {
     rep.set_mode(-1);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     _clickmask.unclickable_onesec();
     _isBtnMaruUp = false;
     Set_Button_Sprite(value: false);
     dockSelectController.Index = 0;
     dialog3_appear(bstat: false);
     b3 = GameObject.Find("board3").GetComponent <board3>();
     b3.board3_appear(bstat: false, isSirent: true);
     b2 = GameObject.Find("board2").GetComponent <board2>();
     b2.board2_appear(boardStart: false, isSirent: true);
     rep.all_rid_mask();
     bd1.OpenDock(selected_dock);
     rep.set_mode(1);
     TrophyUtil.Unlock_At_DockOpen();
 }
Esempio n. 11
0
 public void StartUP()
 {
     rep = GameObject.Find("Repair Root").GetComponent <repair>();
     rep.set_mode(-1);
     if (!_isStartUpDone)
     {
         _isStartUpDone = true;
         bd2            = ((Component)rep.transform.FindChild("board2_top/board2")).GetComponent <board2>();
         bd3            = ((Component)rep.transform.FindChild("board3_top/board3")).GetComponent <board3>();
         dia            = GameObject.Find("dialog").GetComponent <dialog>();
         dia2           = GameObject.Find("dialog2").GetComponent <dialog2>();
         dia3           = GameObject.Find("dialog3").GetComponent <dialog3>();
         for (int i = 0; i < 4; i++)
         {
             GameObject[] array = shutter;
             int          num   = i;
             int          num2  = i;
             array[num] = GameObject.Find("board1_top/board/Grid/0" + num2.ToString() + "/Shutter");
         }
         _clsRepair = rep.now_clsRepair();
         now_kit    = _clsRepair.Material.RepairKit;
         _ANI       = ((Component)rep.transform.FindChild("info")).GetComponent <Animation>();
         int num3 = _clsRepair.MapArea.NDockCount;
         if (num3 == _clsRepair.MapArea.NDockMax)
         {
             num3--;
         }
         dockSelectController = new KeyControl(0, num3);
         dock_flag_init();
         dockSelectController.setChangeValue(-1f, 0f, 1f, 0f);
         dockSelectController.isLoopIndex = false;
         _first_key     = false;
         _go_kosoku     = 0;
         _go_kosoku_m   = -1;
         _select_dock   = 0;
         _select_dock_m = -1;
         _dock_exist    = false;
         redraw();
         bd2.StartUp();
         bd3.StartUp();
     }
 }
Esempio n. 12
0
 public void Pressed_Button_Yes2(GameObject obj)
 {
     rep.set_mode(-1);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     _clickmask.unclickable_onesec();
     _isBtnMaruUp = false;
     Set_Button_Sprite(value: false);
     dockSelectController.Index = 0;
     shipid = GetShipID();
     dialog2_appear(bstat: false);
     b3 = GameObject.Find("board3").GetComponent <board3>();
     b3.board3_appear(bstat: false, isSirent: true);
     b2 = GameObject.Find("board2").GetComponent <board2>();
     b2.board2_appear(boardStart: false, isSirent: true);
     rep.all_rid_mask();
     bd1.set_HS_anime(selected_dock, stat: true);
     rep.now_clsRepair().ChangeRepairSpeed(selected_dock);
     rep.tochu_go(selected_dock, sm);
     rep.set_mode(1);
 }
 public void Pressed_Button_Yes2(GameObject obj)
 {
     this.rep.set_mode(-1);
     SoundUtils.PlaySE(SEFIleInfos.CommonEnter2);
     this._clickmask.unclickable_onesec();
     this._isBtnMaruUp = false;
     this.Set_Button_Sprite(false);
     this.dockSelectController.Index = 0;
     this.shipid = this.GetShipID();
     this.dialog2_appear(false);
     this.b3 = GameObject.Find("board3").GetComponent <board3>();
     this.b3.board3_appear(false, true);
     this.b2 = GameObject.Find("board2").GetComponent <board2>();
     this.b2.board2_appear(false, true);
     this.rep.all_rid_mask();
     this.bd1.set_HS_anime(this.selected_dock, true);
     this.rep.now_clsRepair().ChangeRepairSpeed(this.selected_dock);
     this.rep.tochu_go(this.selected_dock, this.sm);
     this.rep.set_mode(1);
 }
Esempio n. 14
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();
        }
Esempio n. 15
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();
     }
 }
Esempio n. 16
0
 public void _init_repair()
 {
     rep = GameObject.Find("Repair Root").GetComponent <repair>();
     dia = GameObject.Find("dialog").GetComponent <dialog>();
     bd3 = GameObject.Find("board3_top/board3").GetComponent <board3>();
 }