s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
Get s&box
Sign in with Steam
Api
Editor Classes
SliderDrawing
chevron_left
Editor Classes
class
SliderDrawing
Static Fields
crop_din
HandleHeight
crop_din
HandleWidth
crop_din
TrackHeight
crop_din
ValueWidth
Static Methods
functions
DrawHandle
functions
DrawTrack
SliderDrawing
Shared dimensions and painting for single-value and interval sliders.
class
Editor
.
static
sealed
abstract
Sandbox.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.