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(); } }
protected void Start() { _tw = new TopWindow(); _tw.Start(); }
protected void Start() { tw = new TopWindow(); }