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 }
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(); }