public static void DragSlidersUpdate() { if (DragSliderManager.dragging && DragSliderManager.draggingUpdateMethod != null) { DragSliderManager.draggingUpdateMethod(DragSliderManager.CurMouseOffset(), DragSliderManager.lastRateFactor); } }
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(); } }
public virtual void UIRootUpdate() { ScreenshotTaker.Update(); DragSliderManager.DragSlidersUpdate(); windows.WindowsUpdate(); MouseoverSounds.ResolveFrame(); UIHighlighter.UIHighlighterUpdate(); Messages.Update(); }
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); } } }
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); }