private void DrawSimpleMode() { SpiralEditor.BeginPanel(strObjectsOnly); if (SpiralEditor.Button(strObjectsOnlyButton)) { DeadScripts.UpdateDeadList(); DeadScripts.SelectDeads(); } SpiralEditor.EndPanel(); }
private void DrawBoxSceneState() { SpiralEditor.BeginPanel(strSceneFileCheckout); SpiralEditor.BeginPanel(GroupType.Vertical); SpiralEditor.BeginPanel(GroupType.Horizontal); GUIStyle styleSceneIsDirty = new GUIStyle(SpiralStyles.labelBold); string sceneIsDirty = DeadScripts.isDirty ? strSceneWasChanged : strSceneClear; styleSceneIsDirty.normal.textColor = DeadScripts.isDirty ? new Color(0.8f, 0.0f, 0.0f) : Color.gray; EditorGUILayout.LabelField(sceneIsDirty, styleSceneIsDirty); SpiralEditor.EndPanel(); SpiralEditor.BeginPanel(GroupType.Vertical); EditorGUI.indentLevel += 1; foldoutSceneSearchHelp = EditorGUILayout.Foldout(foldoutSceneSearchHelp, strShowHelp, true, SpiralStyles.foldoutNormal); EditorGUI.indentLevel -= 1; if (foldoutSceneSearchHelp) { EditorGUILayout.HelpBox(strSceneHelpWarning, MessageType.Warning); EditorGUILayout.HelpBox(strSceneHelpExplanation, MessageType.Info); } SpiralEditor.EndPanel(); SpiralEditor.EndPanel(); if (SpiralEditor.Button(strFindDeadGUIDs)) { DeadScripts.SearchForDeads(); if (DeadScripts.deadGUIDs.Count > 0) { foldoutDeads = true; } } ShowDeadGUIDs(); SpiralEditor.EndPanel(); }