Table of Contents

Class GameModeButtonContext

Namespace
KSP.Game
Assembly
Assembly-CSharp.dll
public class GameModeButtonContext : ApiDataContext, IDisposable, IDataContext, IDataContextReadonly, IDataContextWritable
Inheritance
GameModeButtonContext
Implements
Inherited Members
Extension Methods

Constructors

GameModeButtonContext(string, Action, Sprite, string, string, bool)

public GameModeButtonContext(string id, Action setModeAction, Sprite modeIcon, string modeTitle, string modeDescription, bool isCurrentMode)

Parameters

id string
setModeAction Action
modeIcon Sprite
modeTitle string
modeDescription string
isCurrentMode bool

Fields

IsCurrentMode

[DataProperty("isCurrentMode")]
public Property<bool> IsCurrentMode

Field Value

Property<bool>

ModeDescription

[DataProperty("modeDescription")]
public Property<string> ModeDescription

Field Value

Property<string>

ModeIcon

[DataProperty("modeIcon")]
public Property<Sprite> ModeIcon

Field Value

Property<Sprite>

ModeTitle

[DataProperty("modeTitle")]
public Property<string> ModeTitle

Field Value

Property<string>

Properties

Id

public string Id { get; }

Property Value

string

Methods

SetMode()

[DataAction("setMode")]
public void SetMode()