public override void onShowed() { isshow = this; FriendProxy.getInstance().addEventListener(FriendProxy.EVENT_LOOKFRIEND, GetInfo); uint tid = 0; if (uiData != null && uiData.Count > 0) { tid = (uint)uiData[0]; if (uiData.Count > 1) { RetWin = (string)uiData[1]; } } else { tid = SelfRole._inst.m_LockRole.m_unCID; } FriendProxy.getInstance().sendgetplayerinfo(tid); this.transform.SetAsLastSibling(); create_scene(); 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>("playerInfo/panel_attr/team").text = ContMgr.getCont("a3_targetinfo_0"); getComponentByPath <Text>("playerInfo/panel_attr/no_team").text = ContMgr.getCont("a3_targetinfo_1"); getComponentByPath <Text>("playerInfo/panel_attr/attr_scroll/scroll/contain/1/name").text = ContMgr.getCont("a3_targetinfo_2"); getComponentByPath <Text>("playerInfo/panel_attr/attr_scroll/scroll/contain/2/name").text = ContMgr.getCont("a3_targetinfo_3"); getComponentByPath <Text>("playerInfo/panel_attr/attr_scroll/scroll/contain/3/name").text = ContMgr.getCont("a3_targetinfo_4"); getComponentByPath <Text>("playerInfo/panel_attr/att/atk/value").text = ContMgr.getCont("a3_targetinfo_5"); getComponentByPath <Text>("playerInfo/panel_attr/att/hp/value").text = ContMgr.getCont("a3_targetinfo_6"); getComponentByPath <Text>("playerInfo/panel_attr/att/phydef/value").text = ContMgr.getCont("a3_targetinfo_7"); getComponentByPath <Text>("playerInfo/panel_attr/att/manadef/value").text = ContMgr.getCont("a3_targetinfo_8"); getComponentByPath <Text>("eqtip/info/attr_scroll/scroll/contain/attr1/title").text = ContMgr.getCont("a3_targetinfo_9"); getComponentByPath <Text>("eqtip/info/attr_scroll/scroll/contain/attr2/title").text = ContMgr.getCont("a3_targetinfo_10"); getComponentByPath <Text>("eqtip/info/attr_scroll/scroll/contain/attr3/title").text = ContMgr.getCont("a3_targetinfo_11"); getComponentByPath <Text>("eqtip/info/attr_scroll/scroll/contain/attr4/title").text = ContMgr.getCont("a3_targetinfo_12"); getComponentByPath <Text>("eqtip/info/cancel/Text").text = ContMgr.getCont("a3_targetinfo_13"); getComponentByPath <Text>("playerInfo/panel_attr/att/atk").text = ContMgr.getCont("a3_targetinfo_14"); getComponentByPath <Text>("ig_bg1/txt1").text = ContMgr.getCont("uilayer_a3_auction_15"); getComponentByPath <Text>("ig_bg1/txt2").text = ContMgr.getCont("uilayer_a3_auction_16"); getComponentByPath <Text>("ig_bg1/txt3").text = ContMgr.getCont("uilayer_a3_auction_17"); getComponentByPath <Text>("ig_bg1/txt4").text = ContMgr.getCont("uilayer_a3_auction_18"); getComponentByPath <Text>("ig_bg1/txt5").text = ContMgr.getCont("uilayer_a3_auction_19"); getComponentByPath <Text>("ig_bg1/txt6").text = ContMgr.getCont("uilayer_a3_auction_20"); getComponentByPath <Text>("ig_bg1/txt7").text = ContMgr.getCont("uilayer_a3_auction_21"); getComponentByPath <Text>("ig_bg1/txt8").text = ContMgr.getCont("uilayer_a3_auction_22"); getComponentByPath <Text>("ig_bg1/txt9").text = ContMgr.getCont("uilayer_a3_auction_23"); getComponentByPath <Text>("ig_bg1/txt10").text = ContMgr.getCont("uilayer_a3_auction_24"); //== 关闭窗口 instan = this; new BaseButton(getTransformByPath("btn_close")).onClick = (GameObject go) => { 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; } if (PlayerModel.getInstance().showFriend) { InterfaceMgr.getInstance().ui_async_open(InterfaceMgr.A3_SHEJIAO); PlayerModel.getInstance().showFriend = false; } InterfaceMgr.getInstance().close(InterfaceMgr.A3_TARGETINFO); }; for (int i = 1; i <= 10; i++) { icon_ani[i] = this.transform.FindChild("ig_bg1/ain" + i).GetComponent <Image>(); } this.getEventTrigerByPath("avatar_touch").onDrag = OnDrag; }
public override void onClosed() { isshow = null; FriendProxy.getInstance().removeEventListener(FriendProxy.EVENT_LOOKFRIEND, GetInfo); disposeAvatar(); for (int i = 1; i <= 10; i++) { GameObject go = transform.FindChild("ig_bg1/txt" + i).gameObject; go.GetComponent <Text>().enabled = true; if (go.transform.childCount > 0) { Destroy(go.transform.GetChild(0).gameObject); } } InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_NORMAL); GRMap.GAME_CAMERA.SetActive(true); if (itemFriendPrefab.instance?.watch_avt == true) { ArrayList arr = new ArrayList(); arr.Add(1); InterfaceMgr.getInstance().ui_async_open(InterfaceMgr.A3_SHEJIAO, arr); itemFriendPrefab.instance.watch_avt = false; } if (itemNearbyListPrefab.instance?.watch_avt == true) { ArrayList arr = new ArrayList(); arr.Add(1); InterfaceMgr.getInstance().ui_async_open(InterfaceMgr.A3_SHEJIAO, arr); itemNearbyListPrefab.instance.watch_avt = false; } if (RetWin != null) { if (RetWin.Equals(InterfaceMgr.A3_FB_TEAM)) { ArrayList arr = new ArrayList(); arr.Add(null); arr.Add(false); InterfaceMgr.getInstance().ui_async_open(RetWin, arr); } else { InterfaceMgr.getInstance().ui_async_open(RetWin); } RetWin = null; } if (a3_ranking.isshow && a3_ranking.isshow.Toback) { InterfaceMgr.getInstance().close(InterfaceMgr.A3_RANKING); } }
private void onBtnActionClick(GameObject go) { InterfaceMgr.getInstance().close(InterfaceMgr.A3_SHEJIAO); uint num = this.cid; ArrayList arrayList = new ArrayList(); arrayList.Add(num); ModelBase <PlayerModel> .getInstance().showFriend = true; InterfaceMgr.getInstance().open(InterfaceMgr.A3_TARGETINFO, arrayList, false); a3_targetinfo expr_4D = a3_targetinfo.instan; if (expr_4D != null) { expr_4D.transform.SetAsLastSibling(); } }