public override void StartEvent(GameObject tPanel, GameObject pPanel, Text mText, GameManager gameManager)
    {
        finished   = false;
        camera     = Camera.main;
        controller = camera.gameObject.GetComponent <CameraController>();
        controller.CenterCameraOnObject(npc.transform, new Vector3(0, -2f, 0));
        textPanel        = tPanel;
        popupPanel       = pPanel;
        messageText      = mText;
        messageText.text = messages[0];
        textPanel.SetActive(true);
        messageText.gameObject.SetActive(true);
        window = popupPanel.GetComponent <PopupPanel>();
        i      = 0;
        window.SetType(2);
        Func <bool> f = () => { messageText.text = messages[i]; i = -1; return(false); };

        window.Setup("Take care of the crowned monster?", f, false);
        game          = gameManager;
        setupFinished = true;

        /*while(popupPanel.activeSelf);
         * if(i == 6){
         *      messageText.text = messages[i];
         * }
         * else{
         *      messageText.text = messages[7];
         *      while(!Input.GetKeyDown("space"));
         *      messageText.text = messages[8];
         * }
         * while(!Input.GetKeyDown("space"));
         * textPanel.SetActive(false);
         * controller.ResetCamera();*/
    }
 public override void ChangeLanguage()
 {
     base.ChangeLanguage();
     InitLanguage();
     #region 循环修改操作按钮的显示文字
     Button        btn;
     OperationInfo optInfo;
     ObservableCollection <OperationInfo> listOptInfos = new ObservableCollection <OperationInfo>();
     for (int i = 0; i < PanelOperationButtons.Children.Count; i++)
     {
         try
         {
             btn             = PanelOperationButtons.Children[i] as Button;
             optInfo         = btn.DataContext as OperationInfo;
             optInfo.Display = CurrentApp.GetLanguageInfo(string.Format("FO{0}", optInfo.ID), optInfo.ID.ToString());
             listOptInfos.Add(optInfo);
         }
         catch
         {
             continue;
         }
     }
     CreateOptButtons(listOptInfos);
     #endregion
     PopupPanel.ChangeLanguage();
 }
Exemple #3
0
        public override void ChangeLanguage()
        {
            try
            {
                base.ChangeLanguage();
                CurrentApp.AppTitle = CurrentApp.GetLanguageInfo("FO1112", "UMP Domain Management");
                //Operation
                for (int i = 0; i < ListOperations.Count; i++)
                {
                    ListOperations[i].Display = CurrentApp.GetLanguageInfo(string.Format("FO{0}", ListOperations[i].ID),
                                                                           ListOperations[i].ID.ToString());
                }
                CreateOptButtons();
                this.ExpBasicOpt.Header = CurrentApp.GetLanguageInfo("1112001", "基本操作");

                //InitOperations(); CreateOptButtons();
                CreateDomainDataColumns();
                if (PopupPanel.IsOpen)
                {
                    PopupPanel.Title = CurrentApp.GetLanguageInfo("1112P001", "");
                    PopupPanel.ChangeLanguage();
                }
            }
            catch (Exception ex)
            {
                CurrentApp.WriteLog("ChangeLang", string.Format("ChangeLang fail.\t{0}", ex.Message));
            }
        }
Exemple #4
0
        public override void ChangeLanguage()
        {
            try
            {
                base.ChangeLanguage();
                //Operation
                for (int i = 0; i < ListOperations.Count; i++)
                {
                    ListOperations[i].Display = CurrentApp.GetLanguageInfo(string.Format("FO{0}", ListOperations[i].ID), ListOperations[i].ID.ToString());
                }
                CreateOptButtons();

                //Columns
                CreateKPIDetailColumns();

                //记录列(ListView)中的内容
                LoadKpiDetailInfo();


                PopupPanel.ChangeLanguage();
            }
            catch (Exception ex)
            {
            }
        }
Exemple #5
0
 public static void UnregisterPanelMain(PopupPanel i_Panel)
 {
     if (Instance != null)
     {
         Instance.UnregisterPanel(i_Panel);
     }
 }
Exemple #6
0
    private async Task ShowLevelCleared()
    {
        PopupPanel panel = ((PopupPanel)FindNode("LevelClearedPanel"));
        Label      label = (Label)panel.FindNode("Message");

        if (Global.CurrentLevel < Const.MAX_LEVELS)
        {
            label.Text     = string.Format("Level {0} cleared.\n\nLet's go to\nthe next level!", Global.CurrentLevel);
            timer.WaitTime = 2.0f;
        }
        else
        {
            label.Text     = "Congratulations!\n\nAll levels cleared!!!";
            timer.WaitTime = 5.0f;
        }
        panel.ShowModal();

        timer.OneShot = true;
        var awaiter = ToSignal(timer, "timeout");

        timer.Start();
        await awaiter;

        panel.Hide();
    }
        public bool Popup(PopupPanel panel)
        {
            if (panels.Contains(panel))
            {
                return(false);
            }
            else
            {
                panels.Add(panel);

                switch (panel)
                {
                case PopupPanel.SignIn:
                {
                }
                break;

                case PopupPanel.MonthCard:
                {
                }
                break;

                case PopupPanel.DailyTask:
                {
                }
                break;

                default:
                    break;
                }
                return(false);
            }
        }
Exemple #8
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Exemple #9
0
 public override void ChangeLanguage()
 {
     CurrentApp.WriteLog("UC_EncryptionPolicyManagement ChangeLanguage");
     base.ChangeLanguage();
     #region 更新当前ursercontrol中控件的显示文字
     //更新listview种列的显示文字
     CreateColumnsItems();
     #endregion
     #region 循环修改操作按钮的显示文字
     Button        btn;
     OperationInfo optInfo;
     ObservableCollection <OperationInfo> listOptInfos = new ObservableCollection <OperationInfo>();
     for (int i = 0; i < PanelOperationButtons.Children.Count; i++)
     {
         try
         {
             btn             = PanelOperationButtons.Children[i] as Button;
             optInfo         = btn.DataContext as OperationInfo;
             optInfo.Display = CurrentApp.GetLanguageInfo(string.Format("FO{0}", optInfo.ID), optInfo.ID.ToString());
             listOptInfos.Add(optInfo);
         }
         catch
         {
             continue;
         }
     }
     CreateOptButtons(listOptInfos);
     #endregion
     GetAllPolicies();
     InitChildPolicies();
     InitLanguage();
     PopupPanel.ChangeLanguage();
 }
        protected override void PageHead_PageHeadEvent(object sender, PageHeadEventArgs e)
        {
            base.PageHead_PageHeadEvent(sender, e);
            switch (e.Code)
            {
            //切换主题
            case 100:
                ThemeInfo themeInfo = e.Data as ThemeInfo;
                if (themeInfo != null)
                {
                    ThemeInfo             = themeInfo;
                    App.Session.ThemeInfo = themeInfo;
                    App.Session.ThemeName = themeInfo.Name;
                    ChangeTheme();
                    SendThemeChangeMessage();
                }
                break;

            //切换语言
            case 110:
                LangTypeInfo langType = e.Data as LangTypeInfo;
                if (langType != null)
                {
                    LangTypeInfo             = langType;
                    App.Session.LangTypeInfo = langType;
                    App.Session.LangTypeID   = langType.LangID;
                    MyWaiter.Visibility      = Visibility.Visible;
                    mWorker                     = new BackgroundWorker();
                    mWorker.DoWork             += (s, de) => App.InitAllLanguageInfos();
                    mWorker.RunWorkerCompleted += (s, re) =>
                    {
                        mWorker.Dispose();
                        MyWaiter.Visibility = Visibility.Collapsed;
                        ChangeLanguage();
                        PopupPanel.ChangeLanguage();
                        SendLanguageChangeMessage();
                    };
                    mWorker.RunWorkerAsync();
                }
                break;

            //展开或关闭侧边栏
            case 121:
                OpenCloseLeftPanel();
                break;

            case 120:
                SendChangePasswordMessage();
                break;

            case 201:
                SendLogoutMessage();
                break;

            case 202:
                SendNavigateHomeMessage();
                break;
            }
        }
Exemple #11
0
        void IQueueManager.ShowQueuePopup(IQueuePopup popup)
        {
            CurrentPopup        = popup;
            CurrentPopup.Close += CurrentPopup_Close;

            PopupPanel.BeginStoryboard(App.FadeIn);
            PopupPanel.Child = popup.Control;
        }
Exemple #12
0
    private void create()
    {
        Instantiate(PrefEventSystem);

        GameObject o = null;

        o       = Instantiate(PrefCanvas);
        _canvas = o.GetComponent <Canvas>();

        o          = Instantiate(PrefMainPanel);
        _mainPanel = o.GetComponent <MainPanel>();
        _mainPanel.transform.SetParent(_canvas.transform, false);

        o = Instantiate(PrefSchedulePanel);
        _schedulePanel = o.GetComponent <SchedulePanel>();
        _schedulePanel.transform.SetParent(_canvas.transform, false);

        o = Instantiate(PrefRunSchedulePanel);
        _runSchedulePanel = o.GetComponent <RunSchedulePanel>();
        _runSchedulePanel.transform.SetParent(_canvas.transform, false);

        o = Instantiate(PrefWardrobePanel);
        _wardrobePanel = o.GetComponent <WardrobePanel>();
        _wardrobePanel.transform.SetParent(_canvas.transform, false);

        o           = Instantiate(PrefStatePanel);
        _statePanel = o.GetComponent <StatePanel>();
        _statePanel.transform.SetParent(_canvas.transform, false);

        o = Instantiate(PrefCurrencyPanel);
        _currencyPanel = o.GetComponent <CurrencyPanel>();
        _currencyPanel.transform.SetParent(_canvas.transform, false);

        o = Instantiate(PrefFeelingCheckPanel);
        _feelingCheckPanel = o.GetComponent <FeelingCheckPanel>();
        _feelingCheckPanel.transform.SetParent(_canvas.transform, false);

        o           = Instantiate(PrefPopupPanel);
        _popupPanel = o.GetComponent <PopupPanel>();
        _popupPanel.transform.SetParent(_canvas.transform, false);

        o = Instantiate(PrefSelectTargetPanel);
        _selectTargetPanel = o.GetComponent <SelectTargetPanel>();
        _selectTargetPanel.transform.SetParent(_canvas.transform, false);

        o           = Instantiate(PrefStoryPanel);
        _storyPanel = o.GetComponent <StoryPanel>();
        _storyPanel.transform.SetParent(_canvas.transform, false);

        o = Instantiate(PrefBoardGamePanel);
        _boardGamePanel = o.GetComponent <BoardGamePanel>();
        _boardGamePanel.transform.SetParent(_canvas.transform, false);

        o            = Instantiate(PrefCombatPanel);
        _combatPanel = o.GetComponent <CombatPanel>();
        _combatPanel.transform.SetParent(_canvas.transform, false);
    }
Exemple #13
0
 void CloseAllButOnePanel(PopupPanel panel)
 {
     for (int i = 0; i < popupPanels.Length; i++)
     {
         if (popupPanels[i] != panel)
         {
             popupPanels[i].Close();
         }
     }
 }
 public override void ChangeLanguage()
 {
     base.ChangeLanguage();
     InitLvVoiceServerColumns();
     InitLvStrategiesColumns();
     BindContent();
     BindStrategyContextMenu();
     GetCanOperationVoiceServer();
     PopupPanel.ChangeLanguage();
 }
Exemple #15
0
 public void ShowMessage(string i_Message)
 {
     for (int panelIndex = 0; panelIndex < m_Panels.Count; ++panelIndex)
     {
         PopupPanel popupPanel = m_Panels[panelIndex];
         if (popupPanel != null)
         {
             popupPanel.ShowMessage(i_Message);
         }
     }
 }
Exemple #16
0
    public void Build()
    {
        GameObject popupObject = GameObject.Instantiate(Resources.Load("Popup/" + "PopupPanel", typeof(GameObject))) as GameObject;

        popupObject.transform.SetParent(this.m_target, false);
        PopupPanel popupPanel = popupObject.GetComponent <PopupPanel>();

        popupPanel.SetTitle(this.m_title);
        popupPanel.SetDescription(this.m_description);
        popupPanel.SetButtons(this.m_buttonInfoList);
        popupPanel.Init();
    }
Exemple #17
0
 private void PlayRankedTeams(int button)
 {
     //TODO Ranked team lobby
     switch (button)
     {
     case 0:
         TeamCombo.ItemsSource   = Session.Current.RankedTeamInfo.PlayerTeams;
         TeamCombo.SelectedIndex = 0;
         PopupPanel.BeginStoryboard(App.FadeIn);
         break;
     }
 }
Exemple #18
0
    void Start()
    {
        gameMgr = FindObjectOfType <GameMgr>();

        turnPanel        = FindObjectOfType <TurnPanel>();
        actionPanel      = FindObjectOfType <ActionPanel>();
        actionPointPanel = FindObjectOfType <ActionPointPanel>();
        itemPanel        = FindObjectOfType <ItemPanel>();
        statusPanel      = FindObjectOfType <StatusPanel>();
        popupPanel       = FindObjectOfType <PopupPanel>();
        summonPanel      = FindObjectOfType <SummonPanel>();

        RegisterEvent();
    }
Exemple #19
0
 public override void ChangeLanguage()
 {
     base.ChangeLanguage();
     TbPaperName.Text = CurrentApp.GetLanguageInfo("3603T00027", "Paper Name");
     TbPaperNum.Text  = CurrentApp.GetLanguageInfo("3603T00028", "Paper Num");
     TbTestTime.Text  = CurrentApp.GetLanguageInfo("3603T00044", "Test Time");
     TbExplain.Text   = CurrentApp.GetLanguageInfo("3603T00050", "Explain");
     ButOk.Content    = CurrentApp.GetLanguageInfo("3603T00051", "OK");
     ButClose.Content = CurrentApp.GetLanguageInfo("3603T00052", "Close");
     if (PopupPanel != null)
     {
         PopupPanel.ChangeLanguage();
     }
 }
Exemple #20
0
    public T FindTemplateControl <T>(string id) where T : Control
    {
        var content = PopupPanel.FindControl <PlaceHolder>("popupContent");

        if (content != null)
        {
            var panel = content.Controls[0];
            if (panel != null)
            {
                return(panel.FindControl <T>(id));
            }
        }
        return(null);
    }
Exemple #21
0
        public override void ChangeLanguage()
        {
            base.ChangeLanguage();

            try
            {
                CurrentApp.AppTitle = CurrentApp.GetLanguageInfo("FO4412", "Region Management");

                ExpBasicOpt.Header = CurrentApp.GetLanguageInfo("4412001", "Basic Operations");
                ExpOtherPos.Header = CurrentApp.GetLanguageInfo("4412002", "Other Position");

                for (int i = 0; i < mListUserOperations.Count; i++)
                {
                    var optInfo = mListUserOperations[i];
                    optInfo.Display     = CurrentApp.GetLanguageInfo(string.Format("FO{0}", optInfo.ID), optInfo.ID.ToString());
                    optInfo.Description = optInfo.Display;
                }
                CreateBasicOperations();
                CreateRegionTreeColumns();

                for (int i = 0; i < mListRegionItems.Count; i++)
                {
                    var item = mListRegionItems[i];
                    var info = item.Data as RegionInfo;
                    if (info == null)
                    {
                        continue;
                    }

                    item.StrType = CurrentApp.GetLanguageInfo(string.Format("4412013{0}", info.Type.ToString("000")),
                                                              info.Type.ToString());
                    item.StrState = CurrentApp.GetLanguageInfo(string.Format("4412014{0}", info.State.ToString("000")),
                                                               info.State.ToString());
                    item.StrIsDefault =
                        CurrentApp.GetLanguageInfo(
                            string.Format("4412015{0}", info.IsDefault ? 1.ToString("000") : 0.ToString("000")),
                            info.IsDefault ? "Yes" : "No");
                }

                var child = BorderSeatSetting.Child as UMPUserControl;
                if (child != null)
                {
                    child.ChangeLanguage();
                }

                PopupPanel.ChangeLanguage();
            }
            catch { }
        }
Exemple #22
0
///// Popup updater functions and generators /////

    private bool NewMatchRequestUpdater(MatchRequestEventArgs matchRequest)
    {
        if (matchRequest.Status == MatchRequestEventArgs.EStatus.New)
        {
            // Set popup
            var popup = PopupPanel.InstanciateTimeoutPopup();
            popup.Text = "New match request from \n<color=#66FFD9><b>" + matchRequest.User.UserName + "</b></color>";

            popup.AcceptButton.onClick.AddListener(() =>
            {
                popup.StatorAnimation.Interrupt();
                popup.AcceptButton.interactable  = false;
                popup.DeclineButton.interactable = false;
                popup.StatorAnimation.StartPulse(Color.green, 0.5f, 4);
                popup.StatorAnimation.Finished.UnsubscribeAll();
                popup.StatorAnimation.Finished.Subscribe((sender, e) =>
                {
                    Destroy(popup.gameObject);
                    UIController.RaiseReadyToGame();
                });
                MatchRequestUpdated?.Invoke(this, new MatchRequestEventArgs(matchRequest.User, MatchRequestEventArgs.EStatus.Accepted));
                popupUpdaters.Add(MatchRequestEchoHandlerGen(matchRequest.User));
            });

            popup.DeclineButton.onClick.AddListener(() =>
            {
                Destroy(popup.gameObject);
                MatchRequestUpdated?.Invoke(this, new MatchRequestEventArgs(matchRequest.User, MatchRequestEventArgs.EStatus.Declined));
                popupUpdaters.Add(MatchRequestEchoHandlerGen(matchRequest.User));
            });

            popup.StatorAnimation.StartTimeout(5);
            popup.StatorAnimation.Finished.Subscribe((sender, e) =>
            {
                Destroy(popup.gameObject);
                Debug.Log("Sending automatic decline answer [TIMEOUT]");
                MatchRequestUpdated?.Invoke(this, new MatchRequestEventArgs(matchRequest.User, MatchRequestEventArgs.EStatus.Declined));
            });

            // Set popup updater function
            var popupUpdater = NewMatchRequestCanceledUpdaterGen(popup, matchRequest.User);
            popupUpdaters.Add(popupUpdater);
            popup.Disabled += (sender, e) => popupUpdaters.Remove(popupUpdater);

            return(true);
        }
        return(false);
    }
Exemple #23
0
    public TurnMgr_Popup_(TurnMgr owner, Unit unit, Vector2 popupPos,
                          string popupContent, UnityAction onClickYes, UnityAction onClickNo,
                          Action onPopupEnter = null, Action onPopupExecute = null, Action onPopupExit = null) : base(owner, unit)
    {
        // TODO 파라미터가능한 Event시 해결가능
        _popup = MonoBehaviour.FindObjectOfType <UIMgr>().popupPanel; // 여기가 조금 문제

        _popupPos     = popupPos;
        _onClickNo    = onClickNo;
        _onClickYes   = onClickYes;
        _popupContent = popupContent;

        this.onPopupEnter   = onPopupEnter;
        this.onPopupExecute = onPopupExecute;
        this.onPopupExit    = onPopupExit;
    }
Exemple #24
0
    void IPointerClickHandler.OnPointerClick(PointerEventData eventData)
    {
        StopAllCoroutines();
        int linkIndex = TMP_TextUtilities.FindIntersectingLink(interactiveTxt, Input.mousePosition, null);

        if (linkIndex > -1)
        {
            var linkInfo = interactiveTxt.textInfo.linkInfo[linkIndex];
            var linkId   = linkInfo.GetLinkID();

            var textData = FindObjectOfType <TextDataController>().Get(linkId);

            PopupPanel.Show(textData);
            StartCoroutine(ClosePopup());
        }
    }
Exemple #25
0
    public void OpenConfirmCancel()
    {
        Transform  canvasObj = FindObjectOfType <Canvas>().transform;
        GameObject popup     = Instantiate(popupPrefab, canvasObj);
        PopupPanel script    = popup.GetComponent <PopupPanel>();

        script.SetTitle("Deletar");
        script.SetDescription(
            "Você tem certeza que gostaria de remover a imagem selecionada?\n" +
            "Essa ação não poderá ser desfeita."
            );

        UnityEvent myEvent = new UnityEvent();

        myEvent.AddListener(DestroyThenUpdate);
        myEvent.AddListener(script.SelfDestruct);
        script.SetClickTrigger(myEvent);
    }
Exemple #26
0
 //......ing
 #region ChangLanguage
 public override void ChangeLanguage()
 {
     try
     {
         base.ChangeLanguage();
         CurrentApp.AppTitle  = CurrentApp.GetLanguageInfo("FO1111", "UMP Rent Management");
         LabRent.Content      = CurrentApp.GetLanguageInfo("1111L001", "Rent");
         ButtonAdd.Content    = CurrentApp.GetLanguageInfo("1111B001", "Add");
         ButtonDelete.Content = CurrentApp.GetLanguageInfo("1111B002", "Delete");
         if (this.PopupPanel.IsOpen)
         {
             PopupPanel.ChangeLanguage();
         }
         InitListresourceName();
         InitTree();
     }
     catch (Exception ex)
     { }
 }
Exemple #27
0
    public void OpenPopup(string title, string message, System.Action okCallback, System.Action cancelCallback = null, string okLbl = "", string cancelLbl = "")
    {
        if (Popup != null)
        {
            return;
        }

        UIBasePanel panel = Open("PopupPanel");

        if (panel != null)
        {
            PopupPanel popup = panel.GetComponent <PopupPanel>();
            if (popup != null)
            {
                Popup = popup;
                popup.OpenPopup(title, message, okCallback, cancelCallback, okLbl, cancelLbl);
            }
        }
    }
        public override void ChangeLanguage()
        {
            base.ChangeLanguage();

            try
            {
                CurrentApp.AppTitle = CurrentApp.GetLanguageInfo("FO4415", "Alarm Management");

                ExpBasicOpt.Header = CurrentApp.GetLanguageInfo("4415001", "Basic Operations");
                ExpOtherPos.Header = CurrentApp.GetLanguageInfo("4415002", "Others Positions");

                for (int i = 0; i < mListUserOperations.Count; i++)
                {
                    var optInfo = mListUserOperations[i];
                    optInfo.Display     = CurrentApp.GetLanguageInfo(string.Format("FO{0}", optInfo.ID), optInfo.ID.ToString());
                    optInfo.Description = optInfo.Display;
                }
                CreateBasicOperations();
                CreateAlarmColumns();

                for (int i = 0; i < mListAlarmMessageItems.Count; i++)
                {
                    var item = mListAlarmMessageItems[i];
                    var info = item.Info;
                    if (info == null)
                    {
                        continue;
                    }

                    item.Type     = CurrentApp.GetLanguageInfo(string.Format("4415015{0}", info.Type.ToString("000")), info.Type.ToString());
                    item.StrState = info.State == 0
                        ? CurrentApp.GetLanguageInfo("4415021000", "Enable")
                        : CurrentApp.GetLanguageInfo("4415021002", "Disable");
                }

                PopupPanel.ChangeLanguage();
            }
            catch { }
        }
        public override void ChangeLanguage()
        {
            base.ChangeLanguage();

            try
            {
                CurrentApp.AppTitle = CurrentApp.GetLanguageInfo("FO4413", "Seat Management");

                ExpBasicOpt.Header = CurrentApp.GetLanguageInfo("4413001", "Basic Operations");
                ExpOtherPos.Header = CurrentApp.GetLanguageInfo("4413002", "Other Positions");

                for (int i = 0; i < mListUserOperations.Count; i++)
                {
                    var optInfo = mListUserOperations[i];
                    optInfo.Display     = CurrentApp.GetLanguageInfo(string.Format("FO{0}", optInfo.ID), optInfo.ID.ToString());
                    optInfo.Description = optInfo.Display;
                }
                CreateBasicOperations();
                CreateSeatColumns();

                for (int i = 0; i < mListSeatItems.Count; i++)
                {
                    var item = mListSeatItems[i];
                    var info = item.Data as SeatInfo;
                    if (info == null)
                    {
                        continue;
                    }

                    item.StrState =
                        CurrentApp.GetLanguageInfo(string.Format("4413010{0}", info.State.ToString("000")),
                                                   info.State.ToString());
                }

                PopupPanel.ChangeLanguage();
            }
            catch { }
        }
        public override void ChangeLanguage()
        {
            base.ChangeLanguage();

            try
            {
                CurrentApp.AppTitle = CurrentApp.GetLanguageInfo("FO4411", "Onsite Monitor");

                LbRegionList.Text = CurrentApp.GetLanguageInfo("4411001", "Region List");

                InitToolBtnItems();
                CreateToolBtnItems();

                var child = BorderContent.Child as UMPUserControl;
                if (child != null)
                {
                    child.ChangeLanguage();
                }

                PopupPanel.ChangeLanguage();
            }
            catch { }
        }
Exemple #31
0
    private void Init()
    {
        closeButton.onClick.AddListener(this.Close);

        statsPanel = GetComponentInChildren<StatsPanel>();
        statsPanel.Init();
        crewPanel = GetComponentInChildren<CrewPanel>();
        crewPanel.Init();
        equipmentPanel = GetComponentInChildren<EquipmentPanel>();
        equipmentPanel.Init();
        itemInfoPanel = GetComponentInChildren<ItemInfoPanel>();
        inventoryPanel = GetComponentInChildren<InventoryPanel>();
        popupPanel = GetComponentInChildren<PopupPanel>();

        crewPanel.SelectDefaultCrewMember();
    }
Exemple #32
0
 public void SetPopupPanel(PopupPanel newPanel)
 {
     popPanel = newPanel;
 }