public override void Init() { base.Init(); UIComponent.GetUiView <JoyLandlordsRoomPanelComponent>().SetFigureAppearanceParent(mFigureImage.gameObject); }
public void ChatBtnEvent() { UIComponent.GetUiView <ChatImportPanelComponent>().Show(); }
public void WanFaBtnEvent() { UIComponent.GetUiView <WanFaPanelComponent>().Show(); // Game.Scene.GetComponent<ToyGameComponent>().StartGame(ToyGameId.Login); }
public int _ResideNum = 0; //剩余牌数量 public void Awake() { Ins = this; _roomPanel = UIComponent.GetUiView <CardFiveStarRoomPanelComponent>(); InitCardResidueNum();//初始化剩余牌数 }
public void CooperationBtnEvent() { UIComponent.GetUiView <AgencyInvitePanelComponent>().Show(); }
//增加物品按钮事件 public void AddGoodsBtnEvent() { UIComponent.GetUiView <AlterInputTextPanelComponent>() .ShowAlterPanel(AddGoodsAction, ShowAlterType.Double, "增加物品", "钻石:", "豆子:"); }
//关闭按钮事件 public void CloseBtnEvent() { UIComponent.GetUiView <AdministratorHomePanelComponent>().Show(); }
public static JoyLdsOtherPlayer CreateOtherPlayer(User user, int seatServerIndex) { int clinetIndex = ServerIndexConvetorClientIndex(seatServerIndex); if (joyLdsOtherPlayersPool.ContainsKey(clinetIndex)) { joyLdsOtherPlayersPool[clinetIndex].mUser = user; joyLdsOtherPlayersPool[clinetIndex].pSeatServerIndex = seatServerIndex; joyLdsOtherPlayersPool[clinetIndex].pSeatClinetIndex = clinetIndex; joyLdsOtherPlayersPool[clinetIndex].Show(); return(joyLdsOtherPlayersPool[clinetIndex]); } ResourcesComponent resourcesComponent = ETModel.Game.Scene.GetComponent <ResourcesComponent>(); GameObject playerLocationGo; if (clinetIndex == 1) { playerLocationGo = resourcesComponent.GetResoure(UIType.JoyLandlordsRoomPanel, "PlayerLocationOneGo") as GameObject; } else { playerLocationGo = resourcesComponent.GetResoure(UIType.JoyLandlordsRoomPanel, "PlayerLocationTwoGo") as GameObject; } GameObject insPlayerLocationGo = UnityEngine.Object.Instantiate(playerLocationGo, UIComponent.GetUiView <JoyLandlordsRoomPanelComponent>().gameObject.transform); ReferenceCollector referenceCollector = insPlayerLocationGo.GetComponent <ReferenceCollector>(); JoyLdsOtherPlayer joyLdsBasePlayer = new JoyLdsOtherPlayer(); joyLdsBasePlayer.gameObject = insPlayerLocationGo; joyLdsBasePlayer.mUser = user; joyLdsBasePlayer.mFigureImage = referenceCollector.Get <GameObject>("FigureAppearanceImage").GetComponent <Image>(); joyLdsBasePlayer.mOperationResulText = referenceCollector.Get <GameObject>("OperationResulText").GetComponent <Text>(); joyLdsBasePlayer.mPlayShowCardGo = referenceCollector.Get <GameObject>("PlayShowCardGroupGo"); joyLdsBasePlayer.mTimerLocation = referenceCollector.Get <GameObject>("TimerLocationGo"); joyLdsBasePlayer.mLandlordIconLocation = referenceCollector.Get <GameObject>("LandlordIconLocationGo"); joyLdsBasePlayer.mRediduePaiNumLocationGo = referenceCollector.Get <GameObject>("RediduePaiNumLocationGo"); joyLdsBasePlayer.mFigureInfoParentGo = referenceCollector.Get <GameObject>("FigureInfoGo"); joyLdsBasePlayer.mNameText = referenceCollector.Get <GameObject>("NameText").GetComponent <Text>(); joyLdsBasePlayer.mBeansNumText = referenceCollector.Get <GameObject>("BeansNumText").GetComponent <Text>(); joyLdsBasePlayer.mPrepareGo = referenceCollector.Get <GameObject>("PrepareGo"); joyLdsBasePlayer.pSeatServerIndex = seatServerIndex; joyLdsBasePlayer.pSeatClinetIndex = clinetIndex; joyLdsBasePlayer.Init(); joyLdsOtherPlayersPool.Add(clinetIndex, joyLdsBasePlayer); return(joyLdsBasePlayer); }
public void AddJewelBtnEvent() { UIComponent.GetUiView <ShopPanelComponent>().ShowGoodsList(GoodsId.Jewel, UIType.FriendCirclePanel); }
private void InquireFriendCicleBtnEvent() { UIComponent.GetUiView <JoinRoomPanelComponent>().ShowInputPanel(ShowInputNumberType.FriendCicleId, InputFinshCall); }
public void ExamineMilitaryBtnEvent() { // Log.Debug("DOTO 显示战绩待实现"); UIComponent.GetUiView <MilitaryPanelComponent>().ShowMilitary(mData.UserId, FrienCircleComponet.Ins.CuurSelectFriendsCircle.FriendsCircleId); }
public void ReturnLobby() { UIComponent.GetUiView <FiveStarLobbyPanelComponent>().Show(); }
//显示输入账号密码的面板 public void ShowInputAccountPasswordPanle() { UIComponent.GetUiView <AlterInputTextPanelComponent>() .ShowAlterPanel(SaveAccountPassword, ShowAlterType.Double, "输入管理密码", "账号:", "密码:"); }
public void ActivityBtnEvent() { UIComponent.GetUiView <ActivityAndAnnouncementPanelComponent>().ShowPanel(ActivityAndAnnouncementType.Activity); }
public void AlterStateBtnEvent() { UIComponent.GetUiView <AlterInputTextPanelComponent>() .ShowAlterPanel(AlterStateAction, ShowAlterType.Double, "修改中奖状态", "类型1/0:", "备注:"); }
public void JoinBtnEvent() { UIComponent.GetUiView <JoinFriendCiclePanelComponent>().ShowPanel(JoinFrienPanelShowType.Join); }
protected override void Run(ETModel.Session session, Actor_FiveStar_TotalResult message) { UIComponent.GetUiView <FiveStarTotalResultPanelComponent>().ShowTotalResultInfo(message); UIComponent.GetUiView <FiveStarTotalResultPanelComponent>().Hide(); // CardFiveStarRoom.Ins.SmallStarGame(message); }
public void CreateBtnEvent() { UIComponent.GetUiView <CreateFriendCiclePanelComponent>().Show(); }
//解封按钮事件 public void RelieveStopSealBtnEvent() { UIComponent.GetUiView <AlterInputTextPanelComponent>().ShowAlterPanel(RelieveStopSealAction, ShowAlterType.Single, "解封", "备注:"); }
public void OutBtnEvent() { UIComponent.GetUiView <PopUpHintPanelComponent>().ShowOptionWindow("是否退出该亲友圈?", OutFriendCircleAction); }
//设置代理 public void mAgencyOperateBtnEvent() { UIComponent.GetUiView <AlterInputTextPanelComponent>() .ShowAlterPanel(AgencyOperateAction, ShowAlterType.Single, "设置代理等级", "等级:"); }
public MagicExpressionBtnClick(string type) { _type = type; _PersonageInfoPanel = UIComponent.GetUiView <PersonageInfoPanelComponent>(); }
//减少牌的总数量 public void ReduceCardTotalNum(int cout) { _ResideNum -= cout; UIComponent.GetUiView <CardFiveStarRoomPanelComponent>().SetResidueNum(_ResideNum); }
public override void StartGame(params object[] objs) { base.StartGame(); Log.Debug("进入游戏欢乐斗地主"); UIComponent.GetUiView <BaseHallPanelComponent>().ShowChangeBaseHallUI(ToyGameId.JoyLandlords); }