Skip to content

Game.UI.Widgets.Bounds1SliderField

Assembly: Assembly-CSharp
Namespace: Game.UI.Widgets

Type: public class

Base: Game.UI.Widgets.Bounds1Field

Summary:
A concrete UI widget class that presents a one-dimensional bounds field using a slider-style control. The class itself does not add new members — it exists as a semantic specialization of Bounds1Field so the codebase or mods can explicitly request a slider-backed bounds field. All behavior, rendering, and event handling are provided by the Bounds1Field base class unless overridden elsewhere.


Fields

  • This class declares no additional fields.
    This type does not introduce new fields; any internal state is defined in the Bounds1Field base class.

Properties

  • This class declares no additional properties.
    Any configurable properties (value, min/max, callbacks, label, etc.) are inherited from Bounds1Field.

Constructors

  • public Bounds1SliderField()
    The compiler-provided parameterless constructor is used. Initialization logic (if any) is performed by the base class. There is no explicit constructor implementation in this derived type.

Methods

  • This class declares no additional methods.
    All behavior comes from Bounds1Field. If you need to customize construction or lifetime behavior, override appropriate virtual methods on Bounds1Field in a further derived class.

Usage Example

// Create and configure a Bounds1SliderField (property names are illustrative and
// depend on the actual Bounds1Field API — replace with real property names).
var sliderField = new Bounds1SliderField
{
    // Example properties that a Bounds1Field might expose:
    // Label = "Range",
    // Min = 0f,
    // Max = 100f,
    // Value = 50f
};

// Add the widget to a parent UI container (API-dependent)
parentWidget.AddChild(sliderField);

// Subscribe to change events if available (example):
// sliderField.OnValueChanged += newValue => { /* handle change */ };

Notes: - Because Bounds1SliderField does not add members, it’s safe to treat it interchangeably with Bounds1Field for APIs expecting the base type. - Use this derived class when you want to explicitly request or document a slider-style bounds control, or when you plan to extend/override behavior later.