public static void Initialize() { if (current == null) { current = Instantiate(Resources.Load <GameObject>("UIPrefs/explorationPanel"), UIController.current.mainCanvas).GetComponent <ExplorationPanelUI>(); } current.gameObject.SetActive(true); }
public void MinigameButton() { if (showingExpedition == null || showingExpedition.stage != Expedition.ExpeditionStage.OnMission) { RedrawWindow(); } else { ExplorationPanelUI.Deactivate(); UIController.SetActivity(false); ExploringMinigameUI.ShowExpedition(showingExpedition, false); gameObject.SetActive(false); } }
public static void Initialize() { var obs = UIController.GetCurrent().GetMainCanvasController(); if (current == null) { current = Instantiate(Resources.Load<GameObject>("UIPrefs/explorationPanel"), obs.GetMainCanvasTransform()).GetComponent<ExplorationPanelUI>(); current.mainObserver = obs; current.crewsData = new CrewsRepresentator(current); current.expeditionsData = new ExpeditionsRepresentator(current); current.artifactsData = new ArtifactsRepresentator(current); current.listController.AssignSelectItemAction(current.SelectItem); } current.gameObject.SetActive(true); current.OnEnable_Custom(); }
public ArtifactsRepresentator(ExplorationPanelUI master) { dataSource = master; artifactsList = Artifact.artifactsList; }
public ExpeditionsRepresentator(ExplorationPanelUI master) { dataSource = master; expeditionsList = Expedition.expeditionsList; }
public CrewsRepresentator(ExplorationPanelUI master) { dataSource = master; crewsList = Crew.crewsList; }