Class OnixSettingInfo
- Namespace
- OnixRuntime.Api.OnixClient.Settings
- Assembly
- OnixRuntime.dll
Adds basically text as a setting.
public sealed class OnixSettingInfo : OnixSetting, IDisposable
- Inheritance
-
OnixSettingInfo
- Implements
- Inherited Members
Constructors
OnixSettingInfo(OnixModule?, string, string, float, SettingChangedDelegate?)
Creates a new setting info.
public OnixSettingInfo(OnixModule? parentModule, string name, string description = "", float scale = 0.7, OnixSetting.SettingChangedDelegate? onSettingChanged = null)
Parameters
parentModule
OnixModuleThe module to add this setting to or null.
name
stringThe text of the setting.
description
stringThe text that shows when you hover the setting.
scale
floatThe scale of the setting's text in the UI.
onSettingChanged
OnixSetting.SettingChangedDelegateGets called before rendering, you could use this to update the text before the user sees it, keep in mind it is a Direct2D thread calling this.
Properties
Scale
How large that setting is.
public float Scale { get; set; }
Property Value
Text
The text of the setting.
public string Text { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.