API ReferenceEditor
public class Editor.FloatControlWidget : Editor.StringControlWidget
Constructors
Showing 1 constructors
public FloatControlWidget(Sandbox.SerializedProperty property)
No results match this filter.
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()
No results match this filter.
Properties
Showing 8 properties
public bool Editor.FloatControlWidget.HasRange { get; set; }
If true we can draw a slider
public Color Editor.FloatControlWidget.HighlightColor { get; set; }
public string Editor.FloatControlWidget.Icon { get; set; }
public string Editor.FloatControlWidget.Label { get; set; }
public Vector2 Editor.FloatControlWidget.Range { get; set; }
The range, min and max
public bool Editor.FloatControlWidget.RangeClamped { get; set; }
True if the range is clamped between min and max
public float Editor.FloatControlWidget.RangeStep { get; set; }
The step size between range
public System.Action`2<Sandbox.Rect,float> Editor.FloatControlWidget.SliderPaint { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.FloatControlWidget |