internal static void DrawMiniToolbar() { GUILayout.BeginVertical("Toolbar", GUILayout.ExpandWidth(true)); var issueCount = _gameRules.Sum(o => o.ignore == false ? o.issues.Count : 0); if (issueCount > 0) { GUI.color = Color.red; } else { GUI.color = Color.green; } if (GUILayout.Button(issueCount + " issues found in scene.", "toolbarbutton", GUILayout.Width(300))) { GameRulesWindow.ShowWindow(); } GUI.color = Color.white; if (ItemManager.itemDatabaseLookup.hasSelectedDatabase) { var style = UnityEditor.EditorStyles.centeredGreyMiniLabel; var r = new Rect(320, window.position.height - 18, window.position.width - 320, 20); GUI.Label(r, "Selected database: " + AssetDatabase.GetAssetPath(ItemManager.database), style); } GUILayout.EndVertical(); }
private void DrawStep5() { // All done GUILayout.Label("All done!"); if (GUILayout.Button("Check issue detector")) { GameRulesWindow.ShowWindow(); } if (GUILayout.Button("Close window")) { Close(); } }
internal static void DrawMiniToolbar(List <IGameRule> issues) { GUILayout.BeginVertical("Toolbar", GUILayout.ExpandWidth(true)); var issueCount = issues.Sum(o => o.ignore == false ? o.issues.Count : 0); if (issueCount > 0) { GUI.color = Color.red; } else { GUI.color = Color.green; } if (GUILayout.Button(issueCount + " issues found in scene.", "toolbarbutton", GUILayout.Width(300))) { GameRulesWindow.ShowWindow(); } GUI.color = Color.white; GUILayout.EndVertical(); }