Exemple #1
0
    public override void OnShow(object msg)
    {
        base.OnShow(msg);
        if (msg is MsgStarmapPanelState)
        {
            m_BeforeID = (int)(msg as MsgStarmapPanelState).BeforeID;
        }

        m_CfgEternityProxy  = GameFacade.Instance.RetrieveProxy(ProxyName.CfgEternityProxy) as CfgEternityProxy;
        m_CfgStarmapProxy   = GameFacade.Instance.RetrieveProxy(ProxyName.CfgStarmapProxy) as CfgStarmapProxy;
        m_TaskTrackingProxy = GameFacade.Instance.RetrieveProxy(ProxyName.TaskTrackingProxy) as TaskTrackingProxy;
        m_TeamProxy         = GameFacade.Instance.RetrieveProxy(ProxyName.TeamProxy) as TeamProxy;
        LoadViewPart(ASSET_ADDRESS, OwnerView.OtherBox);
    }
Exemple #2
0
    public override void OnShow(object msg)
    {
        base.OnShow(msg);
        m_CfgEternityProxy  = GameFacade.Instance.RetrieveProxy(ProxyName.CfgEternityProxy) as CfgEternityProxy;
        m_CfgStarmapProxy   = GameFacade.Instance.RetrieveProxy(ProxyName.CfgStarmapProxy) as CfgStarmapProxy;
        m_TaskTrackingProxy = GameFacade.Instance.RetrieveProxy(ProxyName.TaskTrackingProxy) as TaskTrackingProxy;
        m_TeamProxy         = GameFacade.Instance.RetrieveProxy(ProxyName.TeamProxy) as TeamProxy;
        m_MissionProxy      = GameFacade.Instance.RetrieveProxy(ProxyName.MissionProxy) as MissionProxy;
        if (msg is MsgStarmapPanelState)
        {
            m_Data = (msg as MsgStarmapPanelState).Data as EditorPlanet;
        }
        else
        {
            Eternity.FlatBuffer.Map mapData = m_CfgEternityProxy.GetCurrentMapData();
            m_Data = m_CfgStarmapProxy.GetPlanet(mapData.BelongFixedStar, mapData.GamingmapId);
        }
        m_PointDic = new Dictionary <ulong, StarAreaElement>();
        m_Lines    = new List <GameObject>();

        LoadViewPart(ASSET_ADDRESS, OwnerView.OtherBox);
    }