コード例 #1
0
ファイル: SelectedFlightPanel.cs プロジェクト: jhxmt/MKS
#pragma warning restore 0649
#pragma warning restore IDE0044
        #endregion

        public void Initialize(
            TerminalWindow window,
            ICrewTransferController controller,
            IPrefabInstantiator prefabInstantiator)
        {
            _controller         = controller;
            _labels             = controller.SelectedFlightPanelLabels;
            _prefabInstantiator = prefabInstantiator;
            _window             = window;

            if (DepartureHeaderLabel != null)
            {
                DepartureHeaderLabel.text
                    = _labels.DepartureHeaderLabel;
            }
            if (ArrivalHeaderLabel != null)
            {
                ArrivalHeaderLabel.text
                    = _labels.ArrivalHeaderLabel;
            }
            if (EconomySeatsHeaderLabel != null)
            {
                EconomySeatsHeaderLabel.text
                    = _labels.EconomySeatsHeaderLabel;
            }
            if (LuxurySeatsHeaderLabel != null)
            {
                LuxurySeatsHeaderLabel.text
                    = _labels.LuxurySeatsHeaderLabel;
            }
        }
コード例 #2
0
ファイル: EnroutePanel.cs プロジェクト: jhxmt/MKS
#pragma warning restore 0649
#pragma warning restore 0169
#pragma warning restore IDE0044
        #endregion

        public void Initialize(
            TerminalWindow window,
            IPrefabInstantiator prefabInstantiator,
            ActionPanelLabels labels)
        {
            _window = window;
            if (HeaderLabel != null)
            {
                HeaderLabel.text = labels.HeaderLabel;
            }
            if (InstructionsLabel != null)
            {
                InstructionsLabel.text = labels.InstructionsLabel;
            }
        }
コード例 #3
0
ファイル: FlightSelector.cs プロジェクト: jhxmt/MKS
        public void Initialize(TerminalWindow window, FlightSelectorLabels labels)
        {
            _labels = labels;
            _window = window;

            if (DepartureHeaderLabel != null)
            {
                DepartureHeaderLabel.text = labels.DepartureHeaderLabel;
            }
            if (ArrivalHeaderLabel != null)
            {
                ArrivalHeaderLabel.text = labels.ArrivalHeaderLabel;
            }
            if (Toggle != null)
            {
                Toggle.group = window.FlightsListToggleGroup;
            }
        }
コード例 #4
0
 public void Initialize(
     TerminalWindow window,
     IPrefabInstantiator prefabInstantiator,
     ActionPanelLabels labels)
 {
     _prefabInstantiator = prefabInstantiator;
     _window             = window;
     if (DisembarkButtonLabel != null)
     {
         DisembarkButtonLabel.text = labels.ActionButtonLabel;
     }
     if (HeaderLabel != null)
     {
         HeaderLabel.text = labels.HeaderLabel;
     }
     if (InstructionsLabel != null)
     {
         InstructionsLabel.text = labels.InstructionsLabel;
     }
     if (WarningsHeaderLabel != null)
     {
         WarningsHeaderLabel.text = labels.WarningLabel;
     }
 }