s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Classes
GradientStopsControl
chevron_left Classes
class
GradientStopsControl

Constructors

functionsGradientStopsControl

Methods

functionsGetClipboardValuefunctionsOnButtonTypedfunctionsOnDeletedfunctionsTick
GradientStopsControl
A gradient swatch that opens a stop editor when clicked.
class Sandbox.UI .account_tree extends BaseControl
sealedSandbox.Engine

build Constructors 1

GradientStopsControl ()
Create the compact swatch shown beside the property name.

functions Methods 4

GetClipboardValue (cut)
string
Copy the bound gradient as JSON.
OnButtonTyped (e)
Open the stop editor with the keyboard.
OnDeleted ()
Close the stop editor when the inspected property goes away.
Tick ()
Keep the swatch in sync with edits in the popup or elsewhere.

Inheritance

Panel
BaseControl
GradientStopsControl
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