コード例 #1
0
 public static void DragSlidersUpdate()
 {
     if (DragSliderManager.dragging && DragSliderManager.draggingUpdateMethod != null)
     {
         DragSliderManager.draggingUpdateMethod(DragSliderManager.CurMouseOffset(), DragSliderManager.lastRateFactor);
     }
 }
コード例 #2
0
 public virtual void UIRootOnGUI()
 {
     UnityGUIBugsFixer.OnGUI();
     Text.StartOfOnGUI();
     CheckOpenLogWindow();
     DelayedErrorWindowRequest.DelayedErrorWindowRequestOnGUI();
     DebugInputLogger.InputLogOnGUI();
     if (!screenshotMode.FiltersCurrentEvent)
     {
         debugWindowOpener.DevToolStarterOnGUI();
     }
     windows.HandleEventsHighPriority();
     screenshotMode.ScreenshotModesOnGUI();
     if (!screenshotMode.FiltersCurrentEvent)
     {
         TooltipHandler.DoTooltipGUI();
         feedbackFloaters.FeedbackOnGUI();
         DragSliderManager.DragSlidersOnGUI();
         Messages.MessagesDoGUI();
     }
     shortcutKeys.ShortcutKeysOnGUI();
     NoiseDebugUI.NoiseDebugOnGUI();
     Debug.developerConsoleVisible = false;
     if (Current.Game != null)
     {
         GameComponentUtility.GameComponentOnGUI();
     }
 }
コード例 #3
0
 public virtual void UIRootUpdate()
 {
     ScreenshotTaker.Update();
     DragSliderManager.DragSlidersUpdate();
     windows.WindowsUpdate();
     MouseoverSounds.ResolveFrame();
     UIHighlighter.UIHighlighterUpdate();
     Messages.Update();
 }
コード例 #4
0
 public static void DragSlidersOnGUI()
 {
     if (DragSliderManager.dragging && Event.current.type == EventType.MouseUp && Event.current.button == 0)
     {
         DragSliderManager.dragging = false;
         if (DragSliderManager.completedMethod != null)
         {
             DragSliderManager.completedMethod(DragSliderManager.CurMouseOffset(), DragSliderManager.lastRateFactor);
         }
     }
 }
コード例 #5
0
 public static bool DragSlider(Rect rect, float rateFactor, DragSliderCallback newStartMethod, DragSliderCallback newDraggingUpdateMethod, DragSliderCallback newCompletedMethod)
 {
     if (Event.current.type == EventType.MouseDown && Event.current.button == 0 && Mouse.IsOver(rect))
     {
         DragSliderManager.lastRateFactor = rateFactor;
         newStartMethod(0f, rateFactor);
         DragSliderManager.StartDragSliding(newDraggingUpdateMethod, newCompletedMethod);
         return(true);
     }
     return(false);
 }