static bool TestButton(eTest_ActionType action, GUIContent text, GUIStyle style, params GUILayoutOption[] options) { return(GUILayout.Button(text, style, options) || (mTestAction == action && Event.current.type == EventType.Repaint)); }
static bool TestButtonArg(eTest_ActionType action, object arg, GUIContent text, GUIStyle style, params GUILayoutOption[] options) { return(GUILayout.Button(text, style, options) || (mTestAction == action && (mTestActionArg == null || mTestActionArg.Equals(arg)) && Event.current.type == EventType.Repaint)); }
static bool InTestAction(eTest_ActionType testType) { return(mTestAction == testType && Event.current.type == EventType.Repaint); }