s&box docs

public class Editor.FloatControlWidget : Editor.StringControlWidget

Constructors

Showing 1 constructors

Methods

Showing 13 methods

protected virtual void DoLayout()

public void MakeRanged(Vector2 range, float step, bool clamped, bool slider)

protected virtual void OnDragValue(decimal add)

protected virtual void OnKeyPress(Editor.KeyEvent e)

protected virtual void OnKeyRelease(Editor.KeyEvent e)

protected virtual void OnMouseMove(Editor.MouseEvent e)

protected virtual void OnMousePress(Editor.MouseEvent e)

protected virtual void OnMouseReleased(Editor.MouseEvent e)

protected virtual void OnValueChanged()

protected virtual void PaintControl()

protected virtual void PaintSlider(Sandbox.Rect rect, float pos)

protected virtual object StringToValue(string text)

protected virtual string ValueToString()

Properties

Showing 8 properties

public bool Editor.FloatControlWidget.RangeClamped { get; set; }

True if the range is clamped between min and max

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.FloatControlWidget

On this page