コード例 #1
0
 internal static void DisplaySelectedTab()
 {
     if (ShowHatch)
     {
         TabHatch.Display();
     }
     else if (ShowPanel)
     {
         TabSolarPanel.Display();
     }
     else if (ShowAntenna)
     {
         TabAntenna.Display();
     }
     else if (ShowLight)
     {
         TabLight.Display();
     }
 }
コード例 #2
0
        internal static void DisplaySelectedActions()
        {
            if (ShowPanel)
            {
                GUILayout.BeginHorizontal();
                if (GUILayout.Button("Retract All Solar Panels", GUILayout.Height(20)))
                {
                    TabSolarPanel.RetractAllPanels();
                }

                if (GUILayout.Button("Extend All Solar Panels", GUILayout.Height(20)))
                {
                    TabSolarPanel.ExtendAllPanels();
                }

                GUILayout.EndHorizontal();
            }
            else if (ShowHatch)
            {
                GUILayout.BeginHorizontal();
                if (GUILayout.Button("Close All Hatches", GUILayout.Height(20)))
                {
                    TabHatch.CloseAllHatches();
                }

                if (GUILayout.Button("Open All Hatches", GUILayout.Height(20)))
                {
                    TabHatch.OpenAllHatches();
                }

                GUILayout.EndHorizontal();
            }
            else if (ShowAntenna)
            {
                GUILayout.BeginHorizontal();
                if (GUILayout.Button("Retract All Antennas", GUILayout.Height(20)))
                {
                    TabAntenna.RetractAllAntennas();
                }

                if (GUILayout.Button("Extend All Antennas", GUILayout.Height(20)))
                {
                    TabAntenna.ExtendAllAntennas();
                }

                GUILayout.EndHorizontal();
            }
            else if (ShowLight)
            {
                GUILayout.BeginHorizontal();
                if (GUILayout.Button("Turn Off All Lights", GUILayout.Height(20)))
                {
                    TabLight.TurnOffAllLights();
                }

                if (GUILayout.Button("Turn On All Lights", GUILayout.Height(20)))
                {
                    TabLight.TurnOnAllLights();
                }

                GUILayout.EndHorizontal();
            }
        }