Skip to content

MoreGUI

Namespace: SideXP.Core

public static class MoreGUI

Miscellaneous functions and values for drawing user interfaces.

Fields

HeightXL

public const float HeightXL = 48

HeightL

public const float HeightL = 36

HeightM

public const float HeightM = 28

HeightS

public const float HeightS = 20

HeightXS

public const float HeightXS = 16

WidthXL

public const float WidthXL = 200

WidthL

public const float WidthL = 148

WidthM

public const float WidthM = 112

WidthS

public const float WidthS = 80

WidthXS

public const float WidthXS = 40

HMargin

public const float HMargin = 2

Size of an horizontal margin.

VMargin

public const float VMargin = 2

Size of a vertical margin.

HeightXLOpt

public static readonly GUILayoutOption HeightXLOpt

HeightLOpt

public static readonly GUILayoutOption HeightLOpt

HeightMOpt

public static readonly GUILayoutOption HeightMOpt

HeightSOpt

public static readonly GUILayoutOption HeightSOpt

HeightXSOpt

public static readonly GUILayoutOption HeightXSOpt

WidthXLOpt

public static readonly GUILayoutOption WidthXLOpt

WidthLOpt

public static readonly GUILayoutOption WidthLOpt

WidthMOpt

public static readonly GUILayoutOption WidthMOpt

WidthSOpt

public static readonly GUILayoutOption WidthSOpt

WidthXSOpt

public static readonly GUILayoutOption WidthXSOpt

Methods

IntField(Rect, int, GUIStyle)

public static int IntField(Rect position, int value, GUIStyle style)

Make a single-line text field where the user can edit a integer value.

Parameters

  • position: Rectangle on the screen to use for the field.
  • value: The current value.
  • style: The style to use. If left out, the textField style from the current GUISkin is used.

Returns

Returns the edited value.

IntField(Rect, int)

public static int IntField(Rect position, int value)

Make a single-line text field where the user can edit a integer value.

Parameters

  • position: Rectangle on the screen to use for the field.
  • value: The current value.

Returns

Returns the edited value.

IntField(int, GUIStyle, GUILayoutOption[])

public static int IntField(int value, GUIStyle style, params GUILayoutOption[] options)

Make a single-line text field where the user can edit a integer value.

Parameters

  • value: The current value.
  • style: The style to use. If left out, the textField style from the current GUISkin is used.

Returns

Returns the edited value.

Remarks

Uses layout GUI.

IntField(int, GUILayoutOption[])

public static int IntField(int value, params GUILayoutOption[] options)

Inherited documentation.