Exemple #1
0
 public override void OnGUI()
 {
     if (CanvasGUI.DoubleClick(position, name[0].ToString(), GUI.skin.box))
     {
         OverlayMenu.UpdateOverlays(this);
     }
 }
 public override void OnGUI()
 {
     if (CanvasGUI.DoubleClick(position, new GUIContent(name + ": " + Count), GUI.skin.box, tint))
     {
         OverlayMenu.UpdateOverlays(this);
     }
 }
 public static void LateInputEvents(EditorStates states)
 {
     if (!OverlayMenu.HasPopup)
     {
         CallEventHandler(states, true);
     }
     OverlayMenu.EndOverlay();
 }
        public static void EarlyInputEvents(EditorStates states)
        {
            OverlayMenu.BeginOverlay();

            if (!OverlayMenu.HasPopup)
            {
                CallEventHandler(states, false);
                CallHotkeyHandler(states);
            }
            else if (states.curEvent.type == EventType.Layout)
            {
                HandleGUILayout(states);
            }
        }
 protected virtual void OnClose()
 {
     popup = null;
     GUIUtility.hotControl = GUIUtility.keyboardControl = 0;
 }
 protected virtual void OnShow()
 {
     popup = this;
     GUIUtility.hotControl = GUIUtility.keyboardControl = controlID;
     Event.current.Use();
 }