public FactoryOfEquipRequest ToggleEquipBuildLogFav(BuildLogVO log)
    {
        FactoryOfEquipRequest component = new FactoryOfEquipRequest();

        component.SetFavLog(log);
        return(component);
    }
 protected override void ToggleLogFav(BuildLogVO log)
 {
     if (!base.isRequestingServer)
     {
         base.isRequestingServer = true;
         base.toggingLog = log;
         this.toggleEquipLogFavReqeust = ServerRequestManager.instance.ToggleEquipBuildLogFav(base.toggingLog);
         this.toggleEquipLogFavReqeust.SetFavLogSuccess += new EventHandler<EventArgs>(this.OnSetFavLogSuccess);
         this.toggleEquipLogFavReqeust.SetFavLogFail += new EventHandler<EventArgs>(this.OnSetFavLogFail);
     }
 }
Esempio n. 3
0
 private string getbuildtitle(BuildLogVO l)
 {
     if (shipcheck.Checked == true)
     {
         return(AllShipConfigs.instance.getShip(l.cid).title);
     }
     else
     {
         return(GameConfigs.instance.GetEquipmentByCid(l.cid).title);
     }
 }
Esempio n. 4
0
 private string getbuildstar(BuildLogVO l)
 {
     if (shipcheck.Checked == true)
     {
         return(tools.helper.getstartstring(AllShipConfigs.instance.getShip(l.cid).star));
     }
     else
     {
         return(tools.helper.getstartstring(GameConfigs.instance.GetEquipmentByCid(l.cid).star));
     }
 }
Esempio n. 5
0
    private Image getbuildicon(BuildLogVO l)
    {
        if (shipcheck.Checked == true)
        {
            var      sc = AllShipConfigs.instance.getShip(l.cid);
            UserShip us = new UserShip();
            us.shipCid           = sc.cid;
            us.level             = 1;
            us.battleProps       = new ShipBattleProps();
            us.battlePropsMax    = new ShipBattleProps();
            us.battleProps.hp    = sc.hp;
            us.battlePropsMax.hp = sc.hpMax;

            return(tools.helper.getShipSmallImage(us));
        }
        else
        {
            var e = GameConfigs.instance.GetEquipmentByCid(l.cid);
            return(tools.helper.getEquipmentImage(e));
        }
    }
 public FactoryRequest ToggleShipBuildLogFav(BuildLogVO log)
 {
     FactoryRequest component = new FactoryRequest();
     component.SetFavLog(log);
     return component;
 }
 public void SetFavLog(BuildLogVO log)
 {
     this.settingFavLog = log;
     base.path = "dock/addFov/2/" + log.id;
     base.SetupParams(null, new BaseWWWRequest.OnSuccess(this.onSetFavLogReqSuccess), new BaseWWWRequest.OnFail(this.onSetFavLogReqFail), true, ServerType.ChoosedServer, this.needZip);
 }
 public FactoryRequest ToggleShipBuildLogFav(BuildLogVO log)
 {
     FactoryRequest component = GameObjectUtil.InstantiateItemAsChildOf(this.factoryRequestPrefab, base.gameObject).GetComponent<FactoryRequest>();
     component.SetFavLog(log);
     return component;
 }
Esempio n. 9
0
 public void SetFavLog(BuildLogVO log)
 {
     this.settingFavLog = log;
     base.path          = "dock/addFov/1/" + log.id;
     base.SetupParams(null, new BaseWWWRequest.OnSuccess(this.onSetFavLogReqSuccess), new BaseWWWRequest.OnFail(this.onSetFavLogReqFail), true, ServerType.ChoosedServer, false);
 }
 public void UpdateLog(BuildLogVO log, LogType type)
 {
     this.logVO = log;
     this.logType = type;
 }
Esempio n. 11
0
 private string getbuildtitle(BuildLogVO l)
 {
     if (shipcheck.Checked == true)
     {
         return AllShipConfigs.instance.getShip(l.cid).title;
     }
     else
     {
         return GameConfigs.instance.GetEquipmentByCid(l.cid).title;
     }
 }
Esempio n. 12
0
 private string getbuildstar(BuildLogVO l)
 {
     if (shipcheck.Checked == true)
     {
         return tools.helper.getstartstring(AllShipConfigs.instance.getShip(l.cid).star);
     }
     else
     {
         return tools.helper.getstartstring(GameConfigs.instance.GetEquipmentByCid(l.cid).star);
     }
 }
Esempio n. 13
0
    private Image getbuildicon(BuildLogVO l)
    {
        if (shipcheck.Checked == true)
        {
            var sc = AllShipConfigs.instance.getShip(l.cid);
            UserShip us = new UserShip();
            us.shipCid = sc.cid;
            us.level = 1;
            us.battleProps = new ShipBattleProps();
            us.battlePropsMax = new ShipBattleProps();
            us.battleProps.hp = sc.hp;
            us.battlePropsMax.hp = sc.hpMax;

            return tools.helper.getShipSmallImage(us);

        }
        else
        {
            var e = GameConfigs.instance.GetEquipmentByCid(l.cid);
            return tools.helper.getEquipmentImage(e);
        }
    }