예제 #1
0
        public override void Init()
        {
            base.Init();

            UIComponent.GetUiView <JoyLandlordsRoomPanelComponent>().SetFigureAppearanceParent(mFigureImage.gameObject);
        }
예제 #2
0
 public void ChatBtnEvent()
 {
     UIComponent.GetUiView <ChatImportPanelComponent>().Show();
 }
예제 #3
0
 public void WanFaBtnEvent()
 {
     UIComponent.GetUiView <WanFaPanelComponent>().Show();
     // Game.Scene.GetComponent<ToyGameComponent>().StartGame(ToyGameId.Login);
 }
예제 #4
0
        public int _ResideNum = 0;                                                                                         //剩余牌数量

        public void Awake()
        {
            Ins        = this;
            _roomPanel = UIComponent.GetUiView <CardFiveStarRoomPanelComponent>();
            InitCardResidueNum();//初始化剩余牌数
        }
예제 #5
0
 public void CooperationBtnEvent()
 {
     UIComponent.GetUiView <AgencyInvitePanelComponent>().Show();
 }
예제 #6
0
 //增加物品按钮事件
 public void AddGoodsBtnEvent()
 {
     UIComponent.GetUiView <AlterInputTextPanelComponent>()
     .ShowAlterPanel(AddGoodsAction, ShowAlterType.Double, "增加物品", "钻石:", "豆子:");
 }
예제 #7
0
 //关闭按钮事件
 public void CloseBtnEvent()
 {
     UIComponent.GetUiView <AdministratorHomePanelComponent>().Show();
 }
예제 #8
0
        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);
        }
예제 #9
0
 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, "输入管理密码", "账号:", "密码:");
 }
예제 #14
0
 public void ActivityBtnEvent()
 {
     UIComponent.GetUiView <ActivityAndAnnouncementPanelComponent>().ShowPanel(ActivityAndAnnouncementType.Activity);
 }
예제 #15
0
 public void AlterStateBtnEvent()
 {
     UIComponent.GetUiView <AlterInputTextPanelComponent>()
     .ShowAlterPanel(AlterStateAction, ShowAlterType.Double, "修改中奖状态", "类型1/0:", "备注:");
 }
예제 #16
0
 public void JoinBtnEvent()
 {
     UIComponent.GetUiView <JoinFriendCiclePanelComponent>().ShowPanel(JoinFrienPanelShowType.Join);
 }
예제 #17
0
 protected override void Run(ETModel.Session session, Actor_FiveStar_TotalResult message)
 {
     UIComponent.GetUiView <FiveStarTotalResultPanelComponent>().ShowTotalResultInfo(message);
     UIComponent.GetUiView <FiveStarTotalResultPanelComponent>().Hide();
     // CardFiveStarRoom.Ins.SmallStarGame(message);
 }
예제 #18
0
 public void CreateBtnEvent()
 {
     UIComponent.GetUiView <CreateFriendCiclePanelComponent>().Show();
 }
예제 #19
0
 //解封按钮事件
 public void RelieveStopSealBtnEvent()
 {
     UIComponent.GetUiView <AlterInputTextPanelComponent>().ShowAlterPanel(RelieveStopSealAction, ShowAlterType.Single, "解封", "备注:");
 }
예제 #20
0
 public void OutBtnEvent()
 {
     UIComponent.GetUiView <PopUpHintPanelComponent>().ShowOptionWindow("是否退出该亲友圈?", OutFriendCircleAction);
 }
예제 #21
0
 //设置代理
 public void mAgencyOperateBtnEvent()
 {
     UIComponent.GetUiView <AlterInputTextPanelComponent>()
     .ShowAlterPanel(AgencyOperateAction, ShowAlterType.Single, "设置代理等级", "等级:");
 }
예제 #22
0
 public MagicExpressionBtnClick(string type)
 {
     _type = type;
     _PersonageInfoPanel = UIComponent.GetUiView <PersonageInfoPanelComponent>();
 }
예제 #23
0
 //减少牌的总数量
 public void ReduceCardTotalNum(int cout)
 {
     _ResideNum -= cout;
     UIComponent.GetUiView <CardFiveStarRoomPanelComponent>().SetResidueNum(_ResideNum);
 }
예제 #24
0
 public override void StartGame(params object[] objs)
 {
     base.StartGame();
     Log.Debug("进入游戏欢乐斗地主");
     UIComponent.GetUiView <BaseHallPanelComponent>().ShowChangeBaseHallUI(ToyGameId.JoyLandlords);
 }