Table of Contents

Class OptionItem.ModOptionAdjust

Namespace
Nautilus.Options
Assembly
Nautilus.dll
The base 'adjuster' component to prevent UI elements overlapping
public abstract class OptionItem.ModOptionAdjust : MonoBehaviour
Inheritance
OptionItem.ModOptionAdjust
Extension Methods

Constructors

ModOptionAdjust()

protected ModOptionAdjust()

Properties

CaptionWidth

The width of the caption for the component
protected float CaptionWidth { get; }

Property Value

float

isMainMenu

Whether we are in the main menu or in game in the options
protected bool isMainMenu { get; }

Property Value

bool

Methods

Awake()

The function called after this UnityEngine.MonoBehaviour is awakened.
public void Awake()

SetCaptionGameObject(string, float)

Creates and adds a caption to this GameObject
protected void SetCaptionGameObject(string gameObjectPath, float minWidth = 0)

Parameters

gameObjectPath string
minWidth float

SetVec2x(Vector2, float)

Sets the X coordinate of a UnityEngine.Vector2.
protected static Vector2 SetVec2x(Vector2 vec, float val)

Parameters

vec Vector2
The UnityEngine.Vector2 to set the value on.
val float
The value to set to the x coordinate.

Returns

Vector2