FloatControlWidgetclass

object→StringControlWidget→FloatControlWidget
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public class Editor.FloatControlWidget : Editor.StringControlWidget

Constructors1

Showing 1 constructors

Methods13

Showing 13 methods

protected virtual void DoLayout()PROTECTEDVIRTUAL

Returns:void—

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

ParameterTypeDescription
rangeVector2—
stepfloat—
clampedbool—
sliderbool—
Returns:void—

protected virtual void OnDragValue(decimal add)PROTECTEDVIRTUAL

ParameterTypeDescription
adddecimal—
Returns:void—

protected virtual void OnKeyPress(Editor.KeyEvent e)PROTECTEDVIRTUAL

ParameterTypeDescription
eKeyEvent—
Returns:void—

protected virtual void OnKeyRelease(Editor.KeyEvent e)PROTECTEDVIRTUAL

ParameterTypeDescription
eKeyEvent—
Returns:void—

protected virtual void OnMouseMove(Editor.MouseEvent e)PROTECTEDVIRTUAL

ParameterTypeDescription
eMouseEvent—
Returns:void—

protected virtual void OnMousePress(Editor.MouseEvent e)PROTECTEDVIRTUAL

ParameterTypeDescription
eMouseEvent—
Returns:void—

protected virtual void OnMouseReleased(Editor.MouseEvent e)PROTECTEDVIRTUAL

ParameterTypeDescription
eMouseEvent—
Returns:void—

protected virtual void OnValueChanged()PROTECTEDVIRTUAL

Returns:void—

protected virtual void PaintControl()PROTECTEDVIRTUAL

Returns:void—

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

ParameterTypeDescription
rectRect—
posfloat—
Returns:void—

protected virtual object StringToValue(string text)PROTECTEDVIRTUAL

ParameterTypeDescription
textstring—
Returns:object—

protected virtual string ValueToString()PROTECTEDVIRTUAL

Returns:string—

Properties8

Showing 8 properties

public bool Editor.FloatControlWidget.HasRange { get; set; }PUBLICGETSET

If true we can draw a slider

Returns:bool—

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

True if the range is clamped between min and max

Returns:bool—

public float Editor.FloatControlWidget.RangeStep { get; set; }PUBLICGETSET

The step size between range

Returns:float—

public System.Action`2<Sandbox.Rect,float> Editor.FloatControlWidget.SliderPaint { get; set; }PUBLICGETSET

Returns:Action<Rect,float>—

On this page