public void OnRefresh() { if (m_Data != null) { m_Title.text = TableUtil.GetLanguageString($"gamingmap_name_{m_Data.gamingmapId}"); m_Starmap3DViewer.SetModel(m_Data.bgmapRes, Vector3.zero, Vector3.zero, Vector3.one); m_Starmap3DViewer.GetComponent <RectTransform>().sizeDelta = m_Data.bgmapScale.ToVector2(); m_Starmap3DViewer.transform.localPosition = m_Data.bgmapPos.ToVector2(); m_MissionTrackings = m_TaskTrackingProxy.GetAllTrackings(); m_TeamMembers = m_TeamProxy.GetMembersList(); DrawMap(MapManager.GetInstance().GetCurrentAreaUid()); DrawLine(); m_AreaPointContainer.sizeDelta = new Vector2(m_Data.minimapSize, m_Data.minimapSize); if (!m_CurrentCell) { foreach (var item in m_PointDic) { m_CurrentCell = item.Value as StarAreaElement; break; } } if (m_CurrentCell) { OwnerView.FocusTo(m_CurrentCell.gameObject); m_StarAreaPanelLeftTips.SetData(m_Data.gamingmapId, m_CurrentCell.GetData(), m_MissionTrackings, m_TeamMembers); m_StarAreaPanelLeftTips.gameObject.SetActive(true); } else { m_StarAreaPanelLeftTips.gameObject.SetActive(false); } State.GetAction(UIAction.StarArea_TipsToggle).Enabled = m_StarAreaPanelLeftTips.HasToggle(); m_AreaPointContainer.DOLocalMove(-m_CurrentCell.transform.localPosition, 0.5F).SetEase(Ease.OutExpo); } }
private void OnCellEnter(GameObject go, params object[] args) { if (InputManager.Instance.CurrentInputDevice != InputManager.GameInputDevice.KeyboardAndMouse) { OwnerView.FocusTo(go); SetCurrentCell(go.GetComponent <StarAreaElement>()); } }
public void OnRefresh() { if (m_PointDic.Count == 0) { Eternity.FlatBuffer.Map mapData = m_CfgEternityProxy.GetCurrentMapData(); m_MissionTrackings = m_TaskTrackingProxy.GetAllTrackings(); m_TeamMembers = m_TeamProxy.GetMembersList(); DrawMap(mapData.BelongFixedStar); OwnerView.FocusTo(m_CurrentCell.gameObject); } m_Title.text = TableUtil.GetLanguageString("mapstar_title_1001"); m_AreaPointContainer.DOLocalMove(Vector3.zero, 0.5F).SetEase(Ease.OutExpo); }
public void OnRefresh() { if (m_Data != null) { m_StarImage.SetModel(m_Data.fixedStarRes, Vector3.zero, Vector3.zero, Vector3.one); m_MissionTrackings = m_TaskTrackingProxy.GetAllTrackings(); m_TeamMembers = m_TeamProxy.GetMembersList(); if (m_BeforeID == 0) { m_BeforeID = m_CfgEternityProxy.GetCurrentGamingMapId(); } DrawMap(m_CfgEternityProxy.GetCurrentGamingMapId(), m_BeforeID); if (m_CurrentPoint) { OwnerView.FocusTo(m_CurrentPoint.gameObject); } m_Title.text = TableUtil.GetLanguageString($"starmap_name_{m_Data.fixedStarId}"); } }