s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejams
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Editor Classes
SliderDrawing
chevron_left Editor Classes
class
SliderDrawing

Static Fields

crop_dinHandleHeightcrop_dinHandleWidthcrop_dinTrackHeightcrop_dinValueWidth

Static Methods

functionsDrawHandlefunctionsDrawTrack
SliderDrawing
Shared dimensions and painting for single-value and interval sliders.
class Editor .
staticsealedabstractSandbox.Tools

crop_din Static Fields 4

HandleHeight
float
Height of a slider handle.
HandleWidth
float
Width of a slider handle, also used when mapping values to track positions.
TrackHeight
float
Height of the track and its highlighted interval.
ValueWidth
float
Width reserved for a slider's numeric entry.

functions Static Methods 2

DrawHandle (widget, rect, position)
Draws a handle centered at the given position, measured from the left of rect. Uses the owning widget's cursor and enabled state for hover highlighting.
DrawTrack (rect, start, end, highlight, disabled)
Draws the track and selected interval. Endpoint positions are measured from the left of rect, at the centers of the handles.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter