mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 14:38:13 -05:00
Make a bunch of BaseControls SupportsMultiEdit
This commit is contained in:
@@ -7,6 +7,8 @@ public partial class ColorAlphaControl : BaseControl
|
||||
{
|
||||
readonly Panel _handle;
|
||||
|
||||
public override bool SupportsMultiEdit => true;
|
||||
|
||||
public ColorAlphaControl()
|
||||
{
|
||||
_handle = AddChild<Panel>( "handle" );
|
||||
|
||||
@@ -9,6 +9,8 @@ public partial class ColorControl : BaseControl
|
||||
readonly TextEntry _textEntry;
|
||||
readonly Panel _colorSwatch;
|
||||
|
||||
public override bool SupportsMultiEdit => true;
|
||||
|
||||
public ColorControl()
|
||||
{
|
||||
_colorSwatch = AddChild<Panel>( "colorswatch" );
|
||||
|
||||
@@ -7,6 +7,8 @@ public partial class ColorHueControl : BaseControl
|
||||
{
|
||||
readonly Panel _handle;
|
||||
|
||||
public override bool SupportsMultiEdit => true;
|
||||
|
||||
float _hue = 0;
|
||||
|
||||
public ColorHueControl()
|
||||
|
||||
@@ -9,6 +9,8 @@ public partial class ColorPickerControl : BaseControl
|
||||
readonly ColorHueControl _hueControl;
|
||||
readonly ColorAlphaControl _alphaControl;
|
||||
|
||||
public override bool SupportsMultiEdit => true;
|
||||
|
||||
public ColorPickerControl()
|
||||
{
|
||||
_svControl = AddChild<ColorSaturationValueControl>( "sv" );
|
||||
|
||||
@@ -9,6 +9,8 @@ public partial class ColorSaturationValueControl : BaseControl
|
||||
|
||||
float _hue = 0;
|
||||
|
||||
public override bool SupportsMultiEdit => true;
|
||||
|
||||
public ColorSaturationValueControl()
|
||||
{
|
||||
_handle = AddChild<Panel>( "handle" );
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
[CustomEditor( typeof( Enum ) )]
|
||||
public partial class EnumControl : BaseControl
|
||||
{
|
||||
public override bool SupportsMultiEdit => true;
|
||||
|
||||
public EnumControl()
|
||||
{
|
||||
|
||||
|
||||
@@ -41,6 +41,8 @@
|
||||
|
||||
@code
|
||||
{
|
||||
public override bool SupportsMultiEdit => true;
|
||||
|
||||
[Parameter] public Action<float> OnValueChanged { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
@code
|
||||
{
|
||||
public override bool SupportsMultiEdit => true;
|
||||
|
||||
public RenderFragment Label { get; set; }
|
||||
|
||||
public Action<bool> OnValueChanged { get; set; }
|
||||
|
||||
@@ -10,6 +10,8 @@ namespace Sandbox.UI;
|
||||
[CustomEditor( typeof( string ) )]
|
||||
public partial class TextEntry : BaseControl
|
||||
{
|
||||
public override bool SupportsMultiEdit => true;
|
||||
|
||||
/// <summary>
|
||||
/// Called when the text of this text entry is changed.
|
||||
/// </summary>
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
[CustomEditor( typeof( Vector4 ) )]
|
||||
public partial class VectorControl : BaseControl
|
||||
{
|
||||
public override bool SupportsMultiEdit => true;
|
||||
|
||||
NumberEntry _x;
|
||||
NumberEntry _y;
|
||||
NumberEntry _z;
|
||||
|
||||
Reference in New Issue
Block a user