Show / Hide Table of Contents

Interface IMyTerminalControlOnOffSwitch

This is an on / off switch or toggle button. It gives two options that a user can toggled between.

Inherited Members
IMyTerminalControl.RedrawControl()
IMyTerminalControl.UpdateVisual()
IMyTerminalControl.Id
IMyTerminalControl.Enabled
IMyTerminalControl.Visible
IMyTerminalControl.SupportsMultipleBlocks
IMyTerminalValueControl<Boolean>.Getter
IMyTerminalValueControl<Boolean>.Setter
ITerminalProperty.TypeName
IMyTerminalControlTitleTooltip.Title
IMyTerminalControlTitleTooltip.Tooltip
Namespace: Sandbox.ModAPI.Interfaces.Terminal
Assembly: Sandbox.Common.dll
Syntax
public interface IMyTerminalControlOnOffSwitch : IMyTerminalControl, IMyTerminalValueControl<bool>, ITerminalProperty, IMyTerminalControlTitleTooltip

Properties

OffText

The label for the "off" switch

Declaration
MyStringId OffText { get; set; }
Property Value
Type Description
MyStringId

OnText

The label for the "on" switch

Declaration
MyStringId OnText { get; set; }
Property Value
Type Description
MyStringId

Extension Methods

TerminalPropertyExtensions.As<TValue>(ITerminalProperty)
TerminalPropertyExtensions.Cast<TValue>(ITerminalProperty)
TerminalPropertyExtensions.Is<TValue>(ITerminalProperty)
TerminalPropertyExtensions.AsFloat(ITerminalProperty)
TerminalPropertyExtensions.AsColor(ITerminalProperty)
TerminalPropertyExtensions.AsBool(ITerminalProperty)
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾