} //计算脱离战斗 根据不放技能后的时长算的 public void ErrText(string errValue, bool isShow) { if (isShow) { flytxt.instance.fly(ContMgr.getCont(errValue)); } }
public override void init() { instance = this; for (int i = 0; i < 7; i++) { objs[i] = getTransformByPath("gifsname").GetChild(i).gameObject; } des = getComponentByPath <Text>("Text1"); des1 = getComponentByPath <Text>("Text2"); des1.text = ContMgr.getCont("timegifs_desc"); price = getComponentByPath <Text>("price/num"); image = getGameObjectByPath("Panel/Image"); contain = getGameObjectByPath("Panel/contain"); tip = getGameObjectByPath("tip"); new BaseButton(getTransformByPath("close")).onClick = (GameObject go) => { InterfaceMgr.getInstance().close(InterfaceMgr.A3_TIMEGIFS); }; new BaseButton(getTransformByPath("Button")).onClick = (GameObject go) => { InterfaceMgr.getInstance().close(InterfaceMgr.A3_TIMEGIFS); InterfaceMgr.getInstance().ui_async_open(InterfaceMgr.SHOP_A3); }; }
void RefreshNearby() { for (int i = tfNearbyContainer.childCount; i > 0; i--) { GameObject.Destroy(tfNearbyContainer.GetChild(i - 1).gameObject); } foreach (KeyValuePair <uint, ProfessionRole> item in OtherPlayerMgr._inst.m_mapOtherPlayerSee) { GameObject go = GameObject.Instantiate(prefabFriendInfo); string name = item.Value.roleName; string level = item.Value.zhuan + ContMgr.getCont("zhuan") + item.Value.lvl + ContMgr.getCont("ji"); int combat = item.Value.combpt; uint cid = item.Value.m_unCID; uint map_id = PlayerModel.getInstance().mapid; go.transform.Find("Toggle/containts/txtName").GetComponent <Text>().text = name; go.transform.Find("Toggle/containts/txtLevel").GetComponent <Text>().text = level; go.transform.Find("Toggle/containts/txtcombat").GetComponent <Text>().text = combat.ToString(); go.transform.Find("Toggle/containts/txtpos").GetComponent <Text>().text = SvrMapConfig.instance.getSingleMapConf(map_id)["map_name"]._str; go.transform.SetParent(tfNearbyContainer, false); new BaseButton(go.transform.Find("btn_invite")).onClick = (_go) => { TeamProxy.getInstance().SendInvite(cid); }; } }
override public void onShowed() { welfareProxy.getInstance().addEventListener(welfareProxy.SUCCESSGETFIRSTRECHARGEAWARD, onSuccessGetFirstRechargeAward); InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR); Toclose = false; transform.FindChild("tip").gameObject.SetActive(false); if (welfareProxy.totalRecharge <= 0) { btnRecharge.transform.FindChild("Text").GetComponent <Text>().text = ContMgr.getCont("a3_firstRechargeAward_1"); } else { if (welfareProxy.firstRecharge <= 0) { btnRecharge.transform.FindChild("Text").GetComponent <Text>().text = ContMgr.getCont("a3_firstRechargeAward_2"); btnRecharge.removeAllListener(); btnRecharge.addEvent(); btnRecharge.onClick = onBtnDrawClick; } else { btnRecharge.transform.FindChild("Text").GetComponent <Text>().text = ContMgr.getCont("a3_firstRechargeAward_3"); btnRecharge.removeAllListener(); } } //createEquip(); }
private void OnStageChange() { this.currentStage = this.petmodel.CurrentStageConf(); this.stagestep = this.currentStage.getUint("crystal_step"); Text componentByPath = base.getComponentByPath <Text>("stage"); componentByPath.text = "(" + this.petmodel.Stage.ToString() + "转)"; Text componentByPath2 = base.getComponentByPath <Text>("name"); componentByPath2.text = this.petmodel.CurrentStageConf().getString("name"); Text componentByPath3 = base.getComponentByPath <Text>("stage_con/gold/text"); componentByPath3.text = this.currentStage.getString("gold_cost"); Text componentByPath4 = base.getComponentByPath <Text>("exp_con/upgrade/text"); uint @uint = this.currentStage.getUint("crystal"); int itemNumByTpid = ModelBase <a3_BagModel> .getInstance().getItemNumByTpid(this.stageid); string arg_ED_0 = ((ulong)@uint <= (ulong)((long)itemNumByTpid)) ? "<color=#00ffff>" : "<color=#ff0000>"; componentByPath4.text = @uint.ToString(); Text componentByPath5 = base.getComponentByPath <Text>("stage_con/rate"); uint num = this.currentStage.getUint("rate") / 100u; componentByPath5.text = ContMgr.getCont("pet_succ", new List <string> { num.ToString() }); this.CheckShowLevelOrStage(); this.RefreshAvatar(); }
public void sendAddFriend(uint cid = 0, string name = "", bool isNormal = true)//好友申请 { if (FriendDataList.ContainsKey(cid)) { flytxt.instance.fly(name + ContMgr.getCont("FriendProxy_youarefriend")); } else { Variant msg = new Variant(); msg["buddy_cmd"] = (uint)FriendType.ADD_FRIEND; if (cid != 0) { msg["cid"] = cid; } if (!string.IsNullOrEmpty(name)) { msg["name"] = name; } if (!requestFriendListNoAgree.Contains(name) && isNormal) { requestFriendListNoAgree.Add(name); } sendRPC(PKG_NAME.C2S_ON_ADDFRIEND_BUTTON, msg); } }
public void openzhanji(Dictionary <int, info_teamPlayer> data) { Transform Con = this.transform.FindChild("scroll_rect/contain"); if (Con.childCount > 0) { for (int i = 0; i < Con.childCount; i++) { Destroy(Con.GetChild(i).gameObject); } } GameObject one = this.transform.FindChild("scroll_rect/item_zhanli").gameObject; foreach (int id in data.Keys) { GameObject clon = Instantiate(one) as GameObject; clon.SetActive(true); clon.transform.SetParent(Con, false); clon.transform.FindChild("carricon").GetComponent <Image>().sprite = GAMEAPI.ABUI_LoadSprite("icon_hero_" + data[id].carr); clon.transform.FindChild("name").GetComponent <Text>().text = data[id].name; clon.transform.FindChild("lvl").GetComponent <Text>().text = ContMgr.getCont("worldmap_lv", new List <string> { data[id].zhuan.ToString(), data[id].lvl.ToString() }); clon.transform.FindChild("zhanji").GetComponent <Text>().text = data[id].kill_cnt + "/" + data[id].die_cnt + "/" + data[id].assists_cnt; clon.transform.FindChild("dmg").GetComponent <Text>().text = data[id].dmg.ToString(); clon.transform.FindChild("getpiont").GetComponent <Text>().text = data[id].ach_point.ToString(); } }
private void Set_apply(Transform go, ItemTeamData data) { uint lv = PlayerModel.getInstance().up_lvl * 100 + PlayerModel.getInstance().lvl; if (data.curcnt >= 5) { go.transform.FindChild("4/full").gameObject.SetActive(true); go.transform.FindChild("4/apply").gameObject.SetActive(false); go.transform.FindChild("4/applyed").gameObject.SetActive(false); } if (data.curcnt < 5 && go.transform.FindChild("4/applyed").gameObject.activeInHierarchy == false && lv >= limited_dj) { go.transform.FindChild("4/full").gameObject.SetActive(false); go.transform.FindChild("4/apply").gameObject.SetActive(true); go.transform.FindChild("4/applyed").gameObject.SetActive(false); new BaseButton(go.transform.FindChild("4/apply")).onClick = (GameObject oo) => { if (TeamProxy.getInstance().MyTeamData == null) { //Debug.LogError(data.teamId); TeamProxy.getInstance().SendApplyJoinTeam(data.teamId); go.transform.FindChild("4/apply").gameObject.SetActive(false); go.transform.FindChild("4/applyed").gameObject.SetActive(true); } else { flytxt.instance.fly(ContMgr.getCont("a3_teamPanel_goout")); } }; } }
public void AutoBuy() { uint num = 99; uint itm_tpid = GetFeedItemTpid(); a3_BagModel bag = a3_BagModel.getInstance(); a3_ItemData itmdata = bag.getItemDataById(itm_tpid); long money = num * itmdata.on_sale; if (PlayerModel.getInstance().money < money) { int i = (int)PlayerModel.getInstance().money / itmdata.on_sale; if (i > 0) { Shop_a3Proxy.getInstance().BuyStoreItems(itm_tpid, (uint)i); flytxt.instance.fly(ContMgr.getCont("petmodel_addfood", new List <string> { i.ToString(), itmdata.item_name.ToString() })); // flytxt.instance.fly("成功补充了" + i + "个" + itmdata.item_name); } else if (i <= 0) { flytxt.instance.fly(ContMgr.getCont("petmodel_nofood")); //flytxt.instance.fly("金币不足,补充宠物饲料失败"); } } else { Shop_a3Proxy.getInstance().BuyStoreItems(itm_tpid, num); flytxt.instance.fly(ContMgr.getCont("petmodel_addfood", new List <string> { num.ToString(), itmdata.item_name.ToString() })); //flytxt.instance.fly("成功补充了" + num + "个" + itmdata.item_name); } }
public override void init() { getComponentByPath <Text>("title/Text").text = ContMgr.getCont("a3_store_0"); getComponentByPath <Text>("num").text = ContMgr.getCont("a3_store_1"); getComponentByPath <Text>("text").text = ContMgr.getCont("a3_store_2"); getComponentByPath <Text>("buyBtn/Text").text = ContMgr.getCont("a3_store_0"); BaseButton addBtn = new BaseButton(transform.FindChild("addBtn")) { onClick = OnAddButton }; BaseButton subBtn = new BaseButton(transform.FindChild("subBtn")) { onClick = OnSubButton }; BaseButton buyBtn = new BaseButton(transform.FindChild("buyBtn")) { onClick = OnBuy }; slider = getComponentByPath <Slider>("slider"); slider.onValueChanged.AddListener(OnSliderChange); this.getEventTrigerByPath("ig_bg_bg").onClick = onClose; }
void vip_getexp_btn() { if (A3_VipModel.getInstance().Level < vip_lite(3)) { btn3.transform.FindChild("image1").gameObject.SetActive(false); btn3.transform.FindChild("image2").gameObject.SetActive(true); btn3.transform.FindChild("image2/Text").GetComponent <Text>().text = "VIP" + vip_lite(3) + ContMgr.getCont("off_line_open"); } else { btn3.transform.FindChild("image2").gameObject.SetActive(false); btn3.transform.FindChild("image1").gameObject.SetActive(true); btn3.transform.FindChild("image1/Text").GetComponent <Text>().text = ContMgr.getCont("off_line_lq"); } if (A3_VipModel.getInstance().Level < vip_lite(4)) { btn4.transform.FindChild("image1").gameObject.SetActive(false); btn4.transform.FindChild("image2").gameObject.SetActive(true); btn4.transform.FindChild("image2/Text").GetComponent <Text>().text = "VIP" + vip_lite(4) + ContMgr.getCont("off_line_open"); } else { btn4.transform.FindChild("image2").gameObject.SetActive(false); btn4.transform.FindChild("image1").gameObject.SetActive(true); btn4.transform.FindChild("image1/Text").GetComponent <Text>().text = ContMgr.getCont("off_line_lq"); } }
private void SetRollResult() { if (!_textResult.IsActive()) { _btnNeed.gameObject.SetActive(false); _btnGreed.gameObject.SetActive(false); _textResult.gameObject.SetActive(true); Roll result = null; if (A3_RollModel.getInstance().rollReusultMapping.ContainsKey(_rollItemdata.dpid)) { result = A3_RollModel.getInstance().rollReusultMapping[_rollItemdata.dpid]; } _textResult.text = result == null?ContMgr.getCont("a3_roll_not_hava") : string.Format(" {0}" + ContMgr.getCont("a3_roll_get") + "({1})" + ContMgr.getCont("a3_roll_youget") + "({2})", result.name, result.max_roll.ToString(), result.roll.ToString()); if (A3_RollModel.getInstance().rollMapping.ContainsKey(_rollItemdata.dpid)) { if (result == null) { A3_RollModel.getInstance().rollMapping[_rollItemdata.dpid].isCanPick = true; } else if (PlayerModel.getInstance().cid == result.roll_owner) { A3_RollModel.getInstance().rollMapping[_rollItemdata.dpid].isCanPick = true; } } } }
public override void onShowed() { if (uiData != null && uiData.Count > 0) { carr = (int)uiData[0]; stage = (int)uiData[1]; lvl = (int)uiData[2]; } else { InterfaceMgr.getInstance().close(InterfaceMgr.A3_WINGINFO); if (a3_ranking.isshow && a3_ranking.isshow.Toback) { a3_ranking.isshow.Toback.SetActive(true); if (a3_ranking.isshow.showAvt != null && a3_ranking.isshow.scene_Camera != null) { a3_ranking.isshow.showAvt.SetActive(true); a3_ranking.isshow.scene_Camera.SetActive(true); } a3_ranking.isshow.Toback = null; } flytxt.instance.fly(ContMgr.getCont("a3_Winginfo_bad")); } createAvatar(carr, stage); RefreshAtt(carr, stage, lvl); setStars(lvl); this.transform.SetAsLastSibling(); GRMap.GAME_CAMERA.SetActive(false); transform.FindChild("ig_bg_bg").gameObject.SetActive(false); InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR); }
public override void init() { getComponentByPath <Text>("tabs/shuxing/Text").text = ContMgr.getCont("a3_summon_new_0"); getComponentByPath <Text>("tabs/xilian/Text").text = ContMgr.getCont("a3_summon_new_1"); getComponentByPath <Text>("tabs/shouhun/Text").text = ContMgr.getCont("a3_summon_new_2"); getComponentByPath <Text>("tabs/ronghe/Text").text = ContMgr.getCont("a3_summon_new_3"); getComponentByPath <Text>("tabs/tunshi/Text").text = ContMgr.getCont("a3_summon_new_4"); getComponentByPath <Text>("tabs/tujian/Text").text = ContMgr.getCont("a3_summon_new_5"); getComponentByPath <Text>("tabs/lianxie/Text").text = ContMgr.getCont("a3_summon_new_6"); getInstance = this; model = A3_SummonModel.getInstance(); contents = this.transform.FindChild("contents"); Btns = this.transform.FindChild("tabs"); summonlist = this.transform.FindChild("summonlist"); summonVeiw = summonlist.FindChild("summons/scroll/content"); //selectframe = summonlist.FindChild("summons/scroll/frame").gameObject; smallwinCon = this.transform.FindChild("small_veiw"); listCount = this.transform.FindChild("summonlist/num").GetComponent <Text>(); for (int i = 0; i < Btns.childCount; i++) { new BaseButton(Btns.GetChild(i)).onClick = (GameObject go) => { onTab(go.name); }; } new BaseButton(this.transform.FindChild("btn_close")).onClick = (GameObject go) => { InterfaceMgr.getInstance().close(InterfaceMgr.A3_SUMMON_NEW); }; scrollControler = new ScrollControler(); ScrollRect scroll = transform.FindChild("summonlist/summons/scroll").GetComponent <ScrollRect>(); scrollControler.create(scroll); }
public override void init() { getComponentByPath <Text>("info/btns/contain/fenjie/Text").text = ContMgr.getCont("a3_runestonetip_0"); getComponentByPath <Text>("info/btns/contain/sell/Text").text = ContMgr.getCont("a3_runestonetip_1"); getComponentByPath <Text>("info/btns/contain/output/Text").text = ContMgr.getCont("a3_runestonetip_2"); getComponentByPath <Text>("info/btns/contain/do/Text").text = ContMgr.getCont("a3_runestonetip_3"); getComponentByPath <Text>("info/btns/contain/down/Text").text = ContMgr.getCont("a3_runestonetip_4"); _instance = this; btn_close = new BaseButton(getTransformByPath("bg")); btn_close.onClick = closeOnclick; btn_sell = new BaseButton(getTransformByPath("info/btns/contain/sell")); btn_sell.onClick = btn_sell_Onclick; btn_dress = new BaseButton(getTransformByPath("info/btns/contain/do")); btn_dress.onClick = btn_dress_Onclick; btn_out = new BaseButton(getTransformByPath("info/btns/contain/output")); btn_out.onClick = btn_out_Onclick; btn_decompose = new BaseButton(getTransformByPath("info/btns/contain/fenjie")); btn_decompose.onClick = btn_decompose_Onclick; btn_down = new BaseButton(getTransformByPath("info/btns/contain/down")); btn_down.onClick = btn_down_Onclick; name_txt = getComponentByPath <Text>("info/name"); image = getGameObjectByPath("info/scrollview/Image"); contain = getGameObjectByPath("info/scrollview/contain"); icon_obj = getGameObjectByPath("info/icon"); mask_btn = new BaseButton(getTransformByPath("info/Mask")); mask_btn.onClick = maskOnclick; nomask_btn = new BaseButton(getTransformByPath("info/noMask")); nomask_btn.onClick = nomaskOnclick; mask = mask_btn.gameObject; nomask = nomask_btn.gameObject; }
void onExchange(GameObject go) { ExchangeModel exModel = ExchangeModel.getInstance(); SXML xml = XMLMgr.instance.GetSXML("acution.exchange"); diamand = xml.getInt("initial"); if (PlayerModel.getInstance().gold < diamand * (exModel.Count + 1)) { flytxt.instance.fly(ContMgr.getCont("a3_exchange_nozs")); return; } int num; if (A3_VipModel.getInstance().Level > 0) { num = A3_VipModel.getInstance().vip_exchange_num(3); } else { num = 10; } if ((num - exModel.Count) <= 0) { flytxt.instance.fly(ContMgr.getCont("a3_exchange_yj")); return; } ExchangeProxy exProxy = ExchangeProxy.getInstance(); exProxy.Exchange(); }
override public void init() { mInstance = this; inText(); m_ItemCurrentTeamInfoDic = new Dictionary <uint, ItemCurrentTeamInfo>(); friend = getTransformByPath("contant/friend/friend"); root = this.transform; mMaterialGrey = U3DAPI.U3DResLoad <Material>("uifx/uiGray"); mContant = transform.FindChild("contant"); itemCurrentInfoPrefab = transform.FindChild("temp/itemMemberInfo"); leaveOnLineSprite = GAMEAPI.ABUI_LoadSprite("icon_comm_icon_notice");//TODO:临时离线图片资源替代 deadSprite = GAMEAPI.ABUI_LoadSprite("icon_job_icon_boss"); new BaseButton(getTransformByPath("contant/friend/friend/go")).onClick = (GameObject go) => { if (GRMap.instance.m_nCurMapID >= 3333) { flytxt.instance.fly(ContMgr.getCont("a3_currentTeamInfo_cant_invite_inFb")); return; } ArrayList array = new ArrayList(); array.Add(2); InterfaceMgr.getInstance().ui_async_open(InterfaceMgr.A3_SHEJIAO, array); }; }
private void OnEquWing(GameObject go) { A3_WingModel wModel = A3_WingModel.getInstance(); //TODO 装备/卸下翅膀 if (wModel.ShowStage > 0) { if (wingAvatar != null) { if (wingAvatar.transform.FindChild("model/Plus_B").transform.childCount > 0) { GameObject.Destroy(wingAvatar.transform.FindChild("model/Plus_B").transform.GetChild(0).gameObject); } } A3_WingProxy.getInstance().SendShowStage(0); wModel.LastShowState = wModel.ShowStage; go.transform.FindChild("Text").GetComponent <Text>().text = ContMgr.getCont("a3_wing_skin_show"); } else { changeWing(wModel.LastShowState); A3_WingProxy.getInstance().SendShowStage(wModel.LastShowState); go.transform.FindChild("Text").GetComponent <Text>().text = ContMgr.getCont("a3_wing_skin_close"); } }
public void SyncData(Variant data) { List <Variant> dragonDataList = data["tulong_lvl_ary"]._arr; for (int i = 0; i < dragonDataList.Count; i++) { Variant dragondata = dragonDataList[i]; string dragonName = dicDragonName[i]; DragonData dragonData = new DragonData(); dragonData.isUnlcoked = dragondata["zhaohuan"]; dragonData.isDead = dragondata["death"]._bool; dragonData.proc = dragondata["jindu"]._uint; dragonData.isCreated = dragondata["create_tm"]._bool; dragonData.isOpened = dragondata["open"]._bool; dragonData.dragonId = dragondata["lvl_id"]._uint; if (dicDragonData.ContainsKey(dragonName)) { if (!dicDragonData[dragonName].isUnlcoked && dicDragonData[dragonName].isUnlcoked ^ dragonData.isUnlcoked) { flytxt.instance.fly(ContMgr.getCont("slaydragon_over")); } } //flytxt.instance.fly("已解除封印"); dicDragonData[dragonName] = dragonData; } }
private void OnGetAll(Variant data) { A3_MailModel instance = ModelBase <A3_MailModel> .getInstance(); Variant variant = data["ids"]; using (List <Variant> .Enumerator enumerator = variant._arr.GetEnumerator()) { while (enumerator.MoveNext()) { uint key = enumerator.Current; instance.mail_simple[key].got_itm = true; bool flag = instance.mail_details.ContainsKey(key); if (flag) { instance.mail_details[key].ms.got_itm = true; } } } bool flag2 = variant._arr.Count > 0 || data["itm"]["itm"]._arr.Count > 0; if (flag2) { flytxt.instance.fly(ContMgr.getCont("mail_hint_7", null), 0, default(Color), null); } base.dispatchEvent(GameEvent.Create(A3_MailProxy.MAIL_GET_ALL, this, null, false)); }
public void SendApplyJoinTeam(uint tid)//申请加入队伍 { if (ApplyDic.ContainsKey(tid)) { bool isCanApply = (Time.time - ApplyDic[tid]) > 10 ? true : false;//距离上次申请加入这个队伍超过10秒才可再次申请 if (isCanApply) { ApplyDic[tid] = Time.time; } else { flytxt.instance.fly(ContMgr.getCont("TeamProxy_txt")); return; } } else { ApplyDic[tid] = Time.time; } Variant msg = new Variant(); msg["team_cmd"] = (uint)TeamCmd.ApplyJoinTeam; msg["team_id"] = tid; sendRPC(PKG_NAME.C2S_CREATE_TEAM_RES, msg); }
private string ConvertString(string svrStr, string contPrefix) { string[] array = svrStr.Split(new char[] { '#' }); bool flag = !array.Any <string>(); string result; if (flag) { result = ContMgr.getCont(contPrefix + "0", null); } else { bool flag2 = array.Length == 1; if (flag2) { result = svrStr; } else { string str = array[0]; List <string> list = new List <string>(); for (int i = 1; i < array.Count <string>(); i++) { list.Add(array[i]); } result = ContMgr.getCont(contPrefix + str, list); } } return(result); }
private void onInPreFB() { if (PlayerModel.getInstance().up_lvl < a3_ygyiwuModel.getInstance().Allywlist_Pre[a3_ygyiwuModel.getInstance().nowPre_id].needuplvl) { flytxt.instance.fly(ContMgr.getCont("a3_ygyiwu_canont")); return; } if (PlayerModel.getInstance().up_lvl == a3_ygyiwuModel.getInstance().Allywlist_Pre[a3_ygyiwuModel.getInstance().nowPre_id].needuplvl) { if (PlayerModel.getInstance().lvl < a3_ygyiwuModel.getInstance().Allywlist_Pre[a3_ygyiwuModel.getInstance().nowPre_id].needlvl) { flytxt.instance.fly(ContMgr.getCont("a3_ygyiwu_canont")); return; } } debug.Log("Enter"); Variant sendData = new Variant(); sendData["mapid"] = 3334; sendData["npcid"] = 0; sendData["ltpid"] = a3_ygyiwuModel.getInstance().nowPreFB_id; sendData["diff_lvl"] = 1; LevelProxy.getInstance().sendCreate_lvl(sendData); if (skill_a3._instance) { skill_a3._instance.toshilian = false; } }
private void getNum(GameEvent e) { List <SXML> list = XMLMgr.instance.GetSXMLList("item.item", "id==" + item_id); string stri = list[0].getString("item_name"); flytxt.instance.fly(ContMgr.getCont("clan_11", e.data["item_num"]) + stri); }
public void refreshText(int type) { goLoading.SetActive(false); goInfo.SetActive(true); txt.text = StringUtils.formatText(ContMgr.getCont("disconect_" + type)); }
void initText(int lvl) { if (lvl >= 1 && lvl < 3) { getTransformByPath(city).GetComponent <Text>().text = str; getTransformByPath(dark).GetComponent <Text>().text = three + ContMgr.getCont("a3_legion_dart_jtstart"); getTransformByPath(wind).GetComponent <Text>().text = five + ContMgr.getCont("a3_legion_dart_jtstart"); getTransformByPath("candodart/scroll_view_dart/contain/darkPalace/enter").GetComponent <Button>().interactable = false; getTransformByPath("candodart/scroll_view_dart/contain/coldWind/enter").GetComponent <Button>().interactable = false; } if (lvl <= 4 && lvl >= 3) { getTransformByPath(city).GetComponent <Text>().text = str; getTransformByPath(dark).GetComponent <Text>().text = str; getTransformByPath(wind).GetComponent <Text>().text = five + ContMgr.getCont("a3_legion_dart_jtstart"); getTransformByPath("candodart/scroll_view_dart/contain/darkPalace/enter").GetComponent <Button>().interactable = true; getTransformByPath("candodart/scroll_view_dart/contain/coldWind/enter").GetComponent <Button>().interactable = false; } else if (lvl <= 6 && lvl >= 5) { getTransformByPath(city).GetComponent <Text>().text = str; getTransformByPath(dark).GetComponent <Text>().text = str; getTransformByPath(wind).GetComponent <Text>().text = str; getTransformByPath("candodart/scroll_view_dart/contain/darkPalace/enter").GetComponent <Button>().interactable = true; getTransformByPath("candodart/scroll_view_dart/contain/coldWind/enter").GetComponent <Button>().interactable = true; } else if (lvl > 6)//留给后面要继续加的镖车等级 { getTransformByPath(city).GetComponent <Text>().text = str; getTransformByPath(dark).GetComponent <Text>().text = str; getTransformByPath(wind).GetComponent <Text>().text = str; getTransformByPath("candodart/scroll_view_dart/contain/darkPalace/enter").GetComponent <Button>().interactable = true; getTransformByPath("candodart/scroll_view_dart/contain/coldWind/enter").GetComponent <Button>().interactable = true; } }
private void onDeleteChar(GameEvent e) { bool flag = e.data["res"] < 0; if (flag) { Globle.err_output(e.data["res"]); } else { flytxt.instance.fly(ContMgr.getCont("role_delete", null), 0, default(Color), null); } Variant data = e.data; bool flag2 = data["res"]._int > 0; if (flag2) { uint @uint = data["cid"]._uint; for (int i = 0; i < this._chas.Count; i++) { bool flag3 = this._chas[i].ContainsKey("cid") && this._chas[i]["cid"]._uint == @uint; if (flag3) { this._chas._arr.RemoveAt(i); } } base.dispatchEvent(GameEvent.Create(4032u, this, data, false)); } }
void nomaskOnclick(GameObject go) { a3_RuneStoneProxy.getInstance().sendporxy(7, (int)itemdata.id); mask.SetActive(true); nomask.SetActive(false); flytxt.instance.fly(ContMgr.getCont("a3_equiptip_bsddzb")); }
private void RefreshMailCnt() { this.cnt.text = ContMgr.getCont("mail_cnt", new List <string> { ModelBase <A3_MailModel> .getInstance().mail_simple.Count.ToString() }); }
void dartHP(Variant data) { per = data["hp_per"]._int; dispatchEvent(GameEvent.Create(DARTHPNOW, this, data)); if (!gotoDart) { return; } if (data.ContainsKey("x")) { dartHave = true; float x = 0, z = 0; x = data["x"]._float / 53.3f; z = data["y"]._float / 53.3f; if (SelfRole._inst != null) { SelfRole.WalkToMap(data["map_id"], new Vector3(x, 2, z)); } } if (data["hp_per"]._int <= 20 && !showOne) { flytxt.instance.fly(ContMgr.getCont("clan_9")); showOne = true; } }