private static DoRepeatButton ( |
||
position | ||
content | ||
style | ||
focusType | FocusType | |
리턴 | bool |
private static bool ScrollerRepeatButton(int scrollerID, Rect rect, GUIStyle style) { bool result = false; if (EditorGUIExt.DoRepeatButton(rect, GUIContent.none, style, FocusType.Passive)) { bool flag = EditorGUIExt.scrollControlID != scrollerID; EditorGUIExt.scrollControlID = scrollerID; if (flag) { result = true; EditorGUIExt.nextScrollStepTime = Time.realtimeSinceStartup + 0.001f * (float)EditorGUIExt.firstScrollWait; } else if (Time.realtimeSinceStartup >= EditorGUIExt.nextScrollStepTime) { result = true; EditorGUIExt.nextScrollStepTime = Time.realtimeSinceStartup + 0.001f * (float)EditorGUIExt.scrollWait; } if (Event.current.type == EventType.Repaint) { HandleUtility.Repaint(); } } return(result); }