public override void OnEnter()
        {
            base.OnEnter();
            EMapNodeType eMapNodeType;

            if (Singleton <BeastRole> .singleton.CampType == Common.ECampType.CAMP_EMPIRE)
            {
                eMapNodeType = EMapNodeType.MAP_NODE_REBORN_EMPIRE;
            }
            else
            {
                eMapNodeType = EMapNodeType.MAP_NODE_REBORN_LEAGUE;
            }
            this.m_listTargetHexs.Clear();
            this.m_listTargetHexs = Singleton <ClientMain> .singleton.scene.GetNodesByType(eMapNodeType);

            Singleton <ClientMain> .singleton.scene.GetNearNodesIgnoreHero(ref this.m_listTargetHexs);

            Singleton <HexagonManager> .singleton.ShowHexagon(EnumShowHexagonType.eShowHexagonType_Highlight, this.m_listTargetHexs);

            foreach (var cvet in this.m_listTargetHexs)
            {
                Vector3 hex3DPos = Hexagon.GetHex3DPos(cvet, Space.World);
                //在此坐标上播放设置神兽出生点前的特效
                //this.m_listEffectIds.Add();
            }
            string oPDlgTip = StringConfigMgr.GetString("StageNotice_BornState");
            //界面显示提示
            //DlgBase<DlgStateProgress, DlgStateProgressBehaviour>.singleton.ShowNotice(@string);
        }
예제 #2
0
    public override bool OnSelectPos(CVector3 pos)
    {
        Beast beast = Singleton <BeastManager> .singleton.GetBeastById(Singleton <BeastRole> .singleton.Id);

        if (beast.UsedAttackToBaseBuildingCount >= 1)
        {
            //弹出攻击过的提示消息
            DlgBase <DlgFlyText, DlgFlyTextBehaviour> .singleton.AddSystemInfo(StringConfigMgr.GetString("DlgMain.AttactOncePreRound"));

            return(false);
        }
        else
        {
            if (this.m_listValidTargetPos.Exists((CVector3 p) => p.Equals(pos)))
            {
                Beast beastByPos = Singleton <BeastManager> .singleton.GetBeastByPos(pos);

                if (beastByPos != null)
                {
                    this.m_unTargetBeastId = beastByPos.Id;
                }
                else
                {
                    this.m_unTargetBeastId = 0;
                }
                this.m_vec3TargetPos = pos;
                this.OnButtonOkClick();
            }
            return(true);
        }
    }
예제 #3
0
        /// <summary>
        /// 连接服务器失败
        /// </summary>
        public void OnConnectFailed()
        {
            string @string = StringConfigMgr.GetString("Login.CanNotConnectServer");

            //警告界面窗口显示该警告

            DlgBase <DlgLogin, DlgLoginBehaviour> .singleton.EnableButtonEnter(true);

            this.LogToServer_NetworkFailed();
        }
        public override void Process()
        {
            Singleton <RoomManager> .singleton.OnAddHeroToScene(this.m_dwRoleID, this.m_oInitialPos);

            XLog.Log.Debug(string.Concat(new object[]
            {
                "CPtcG2CNtf_AddRoleToScene: ",
                this.m_oInitialPos.nRow,
                " ",
                this.m_oInitialPos.nCol
            }));
            Singleton <OpStateManager> .singleton.Refresh();

            if (this.m_dwRoleID == Singleton <BeastRole> .singleton.Id && !Singleton <BeastManager> .singleton.IsAllBeastPrepared())
            {
                string @string = StringConfigMgr.GetString("StageNotice_WaitOtherPlayerBorn");
                //DlgBase<DlgStateProgress, DlgStateProgressBehaviour>.singleton.ShowNotice(@string);
            }
        }
예제 #5
0
    /// <summary>
    /// 刷新操作提示,比如请选择神兽,确认装备等
    /// </summary>
    /// <param name="unBeastId"></param>
    public void RefreshTip(long unBeastId)
    {
        string strId = string.Empty;

        if (Singleton <RoomManager> .singleton.IsObserver)
        {
            strId = "DlgRoom.IsObservering";
        }
        else
        {
            strId = "DlgRoom.PleaseSelectHero";
            if (0 != unBeastId)
            {
                BeastData beastData = Singleton <RoomManager> .singleton.GetBeastData(unBeastId);

                if (beastData != null && beastData.IsSelected)
                {
                    strId = "DlgRoom.FinishHeroSelect";
                }
            }
        }
        base.uiBehaviour.m_Label_Tips.SetText(StringConfigMgr.GetString(strId));
    }
예제 #6
0
    /// <summary>
    /// 当使用技能不正确的时候做的处理
    /// </summary>
    public void ShowErrCheckUse(EnumErrorCodeCheckUse errorCode)
    {
        string content = StringConfigMgr.GetString(errorCode.ToString());

        DlgBase <DlgFlyText, DlgFlyTextBehaviour> .singleton.AddSystemInfo(content);
    }