コード例 #1
0
 public static void Initialize()
 {
     if (current == null)
     {
         current = Instantiate(Resources.Load <GameObject>("UIPrefs/explorationPanel"), UIController.current.mainCanvas).GetComponent <ExplorationPanelUI>();
     }
     current.gameObject.SetActive(true);
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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();
 }
コード例 #4
0
 public ArtifactsRepresentator(ExplorationPanelUI master)
 {
     dataSource = master;
     artifactsList = Artifact.artifactsList;
 }
コード例 #5
0
 public ExpeditionsRepresentator(ExplorationPanelUI master)
 {
     dataSource = master;
     expeditionsList = Expedition.expeditionsList;
 }
コード例 #6
0
 public CrewsRepresentator(ExplorationPanelUI master)
 {
     dataSource = master;
     crewsList = Crew.crewsList;
 }