Popcorning Guinea Pig
Search Results for

    Show / Hide Table of Contents

    Class Slider

    Inheritance
    object
    UIElementBase
    InteractiveUIElement
    Slider
    Implements
    IUIElement
    Inherited Members
    InteractiveUIElement.IsEnabled
    InteractiveUIElement.LabelPosition
    InteractiveUIElement.HasLabel
    InteractiveUIElement.LabelSpacing
    InteractiveUIElement.GetTotalSizeWithLabel()
    InteractiveUIElement.GetLabelOffset()
    InteractiveUIElement.SetEnabled(bool)
    InteractiveUIElement.GetEnabled()
    InteractiveUIElement.SetLabel(string, LabelPosition, float)
    InteractiveUIElement.SetLabelLocalization(ILocalizationService, string, string)
    InteractiveUIElement.RemoveLabel()
    InteractiveUIElement.GetLabelText()
    UIElementBase._children
    UIElementBase.Tooltip
    UIElementBase.TooltipLocalizationKey
    UIElementBase.TooltipFallbackText
    UIElementBase.Id
    UIElementBase.Position
    UIElementBase.Size
    UIElementBase.Visible
    UIElementBase.Opacity
    UIElementBase.Parent
    UIElementBase.Children
    UIElementBase.AddChild(IUIElement)
    UIElementBase.RemoveChild(IUIElement)
    UIElementBase.RemoveFromParent()
    UIElementBase.GetWorldPosition()
    UIElementBase.GetLocalPosition()
    UIElementBase.Update()
    UIElementBase.Draw()
    UIElementBase.SetTooltip(string)
    UIElementBase.SetTooltipLocalizationKey(string, string)
    UIElementBase.UpdateTooltipFromLocalization()
    UIElementBase.SetTooltipText(string)
    UIElementBase.SetLocalizationService(ILocalizationService)
    UIElementBase.IsMouseOver()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: PopcorningGuineaPig.Engine.UI
    Assembly: PopcorningGuineaPig.Engine.dll
    Syntax
    public class Slider : InteractiveUIElement, IUIElement

    Constructors

    | Edit this page View Source

    Slider(Vector2, Vector2, float, float, float, float)

    Declaration
    public Slider(Vector2 position, Vector2 size, float minValue, float maxValue, float initialValue = -3.4028235E+38, float step = 0.01)
    Parameters
    Type Name Description
    Vector2 position
    Vector2 size
    float minValue
    float maxValue
    float initialValue
    float step

    Properties

    | Edit this page View Source

    Value

    Declaration
    public float Value { get; set; }
    Property Value
    Type Description
    float

    Methods

    | Edit this page View Source

    DrawSelf()

    Override DrawSelf to handle label drawing Derived classes should call base.DrawSelf() to ensure labels are drawn

    Declaration
    protected override void DrawSelf()
    Overrides
    InteractiveUIElement.DrawSelf()
    | Edit this page View Source

    GetValue()

    Declaration
    public float GetValue()
    Returns
    Type Description
    float
    | Edit this page View Source

    GetValueAsPercentage()

    Declaration
    public float GetValueAsPercentage()
    Returns
    Type Description
    float
    | Edit this page View Source

    SetColors(Color, Color, Color)

    Declaration
    public void SetColors(Color trackColor, Color handleColor, Color activeHandleColor)
    Parameters
    Type Name Description
    Color trackColor
    Color handleColor
    Color activeHandleColor
    | Edit this page View Source

    SetOnValueChanged(Action<float>)

    Declaration
    public void SetOnValueChanged(Action<float> callback)
    Parameters
    Type Name Description
    Action<float> callback
    | Edit this page View Source

    SetValue(float)

    Declaration
    public void SetValue(float value)
    Parameters
    Type Name Description
    float value
    | Edit this page View Source

    SetValueLabel(bool, string, bool)

    Declaration
    public void SetValueLabel(bool show, string format = "{0:0}%", bool useActual = false)
    Parameters
    Type Name Description
    bool show
    string format
    bool useActual
    | Edit this page View Source

    UpdateSelf()

    Override UpdateSelf to provide common interactive element functionality Derived classes should call base.UpdateSelf() before their own update logic

    Declaration
    protected override void UpdateSelf()
    Overrides
    InteractiveUIElement.UpdateSelf()

    Implements

    IUIElement
    • Edit this page
    • View Source
    In this article
    Back to top © 2024 Popcorning Guinea Pig Game Engine. A custom C# game engine for indie developers.