Ejemplo n.º 1
0
 public void OnClick()
 {
     if (rep.now_repairkit() < 1)
     {
         CommonPopupDialog.Instance.StartPopup(Util.getPopupMessage(PopupMess.NotEnoughHighSpeedRepairKit));
         SoundUtils.PlaySE(SEFIleInfos.CommonCancel2);
     }
     else
     {
         togggleSW();
     }
 }
Ejemplo n.º 2
0
 public void UpdateInfo(int ret)
 {
     _isBtnMaruUp = false;
     _clsRepair   = rep.now_clsRepair();
     sm           = _clsRepair.GetDockData(ret).GetShip();
     csb.SetShipData(sm);
     iTween.ScaleTo(base.gameObject, new Vector3(0.6f, 0.6f, 0.6f), 0f);
     ele_l      = GameObject.Find("dialog2_top/dialog2/label_shipname").GetComponent <UILabel>();
     ele_l.text = sm.Name;
     ele_l      = GameObject.Find("dialog2_top/dialog2/label_lv").GetComponent <UILabel>();
     ele_l.text = string.Empty + sm.Level;
     GameObject.Find("dialog2/label_param_1").GetComponent <UILabel>().text = _clsRepair.GetDockData(ret).RemainingTurns.ToString();
     GameObject.Find("dialog2/label_param_2").GetComponent <UILabel>().text = rep.now_repairkit().ToString();
     GameObject.Find("dialog2/label_param_3").GetComponent <UILabel>().text = (rep.now_repairkit() - 1).ToString();
     shipid = sm.MstId;
 }