示例#1
0
        protected void Start()
        {
            _tw = new TopWindow();
            _tw.Start();

            Tooltip.RecreateInstance();    // Need to make sure that a new Tooltip instance is created after every scene change
        }
示例#2
0
 public void summaryTab()
 {
     GUILayout.BeginHorizontal();
     try {
         GUILayout.Label("Maintenance costs (per ", HighLogic.Skin.label);
         perSelector();
         GUILayout.Label(")", HighLogic.Skin.label);
     } finally {
         GUILayout.EndHorizontal();
     }
     GUILayout.BeginHorizontal();
     try {
         GUILayout.Label("Facilities", HighLogic.Skin.label, GUILayout.Width(160));
         GUILayout.Label((MaintenanceHandler.Instance.facilityUpkeep * perFactor).ToString(perFormat), rightLabel, GUILayout.Width(160));
         if (GUILayout.Button("ⓘ", GUILayout.ExpandWidth(false)))
         {
             TopWindow.SwitchTabTo(tabs.Facilities);
         }
     } finally {
         GUILayout.EndHorizontal();
     }
     GUILayout.BeginHorizontal();
     try {
         GUILayout.Label("Integration", HighLogic.Skin.label, GUILayout.Width(160));
         GUILayout.Label((MaintenanceHandler.Instance.integrationUpkeep * perFactor).ToString(perFormat), rightLabel, GUILayout.Width(160));
         if (GUILayout.Button("ⓘ", GUILayout.ExpandWidth(false)))
         {
             TopWindow.SwitchTabTo(tabs.Integration);
         }
     } finally {
         GUILayout.EndHorizontal();
     }
     GUILayout.BeginHorizontal();
     try {
         GUILayout.Label("Research Teams", HighLogic.Skin.label, GUILayout.Width(160));
         GUILayout.Label((MaintenanceHandler.Instance.researchUpkeep * perFactor).ToString(perFormat), rightLabel, GUILayout.Width(160));
     } finally {
         GUILayout.EndHorizontal();
     }
     GUILayout.BeginHorizontal();
     try {
         GUILayout.Label("Astronauts", HighLogic.Skin.label, GUILayout.Width(160));
         GUILayout.Label((MaintenanceHandler.Instance.nautTotalUpkeep * perFactor).ToString(perFormat), rightLabel, GUILayout.Width(160));
         if (GUILayout.Button("ⓘ", GUILayout.ExpandWidth(false)))
         {
             TopWindow.SwitchTabTo(tabs.Astronauts);
         }
     } finally {
         GUILayout.EndHorizontal();
     }
     GUILayout.BeginHorizontal();
     try {
         GUILayout.Label("Total (after subsidy)", boldLabel, GUILayout.Width(160));
         GUILayout.Label(((MaintenanceHandler.Instance.totalUpkeep + MaintenanceHandler.Instance.settings.maintenanceOffset) * perFactor).ToString(perFormat), boldRightLabel, GUILayout.Width(160));
     } finally {
         GUILayout.EndHorizontal();
     }
 }
示例#3
0
文件: UIHolder.cs 项目: vader111/RP-0
 protected void Start()
 {
     _tw = new TopWindow();
     _tw.Start();
 }
示例#4
0
 protected void Start()
 {
     tw = new TopWindow();
 }