ORK Framework  2.22.0
API Documentation
ORKFramework.GUIBox Class Reference

Public Member Functions

 GUIBox (GUIBoxSetting s)
 
void SetFocus ()
 
void UpdateAtObjectPosition ()
 
void SetRelativeTo (GUIBox box, TextAnchor anchor)
 
void SetBaseToCursor ()
 
void SetBasePosition (float newX, float newY)
 
void MoveBasePosition (Vector2 change)
 
void InitIn ()
 
void InitOut (GUIBoxClosingBehaviour closingBehaviour)
 
void InitOut ()
 
void Reset ()
 
void CloseAfter (float time, bool controlable)
 
void SetOutDone ()
 
void Register ()
 
void Unregister ()
 
void Tick (float t)
 
void DoFade (float t)
 
void DoFadeIn (float t)
 
void DoFadeOut (float t)
 
void DoMoveIn (float t)
 
void DoMoveOut (float t)
 
void DoScaleIn (float t)
 
void DoScaleOut (float t)
 
void ContentUpdated ()
 
void SetGUIColor (bool blockFlash)
 
void ShowGUI ()
 
bool Button (Rect buttonBounds, bool showButton, int index, bool last)
 
bool TabButton (Rect buttonBounds)
 

Static Public Member Functions

static bool IsActive (GUIBox box)
 
static bool IsHoveringOver (GUIBox box, IShortcut shortcut)
 

Public Attributes

bool inPause = false
 
bool forceSize = false
 
bool openFocused = true
 
bool unfocusedClick = false
 
GUIBoxClosingBehaviour closingBehaviour = GUIBoxClosingBehaviour.Default
 
Rect bounds = new Rect(0, 0, 1920, 1080)
 
Rect nameBounds = new Rect(0, 0, 150, 50)
 
Rect windowRect = new Rect(0, 0, 100, 100)
 
Vector4 boxPadding = Vector4.zero
 
Vector2 nameOffset = Vector2.zero
 
Color color = new Color(1, 1, 1, 1)
 
Color lastColor = new Color(1, 1, 1, 1)
 
bool doFlash = false
 
Color flashColor
 
Vector2 currentScale = Vector2.one
 
TextAnchor scaleAnchor = TextAnchor.UpperLeft
 
bool controlable = true
 
bool focusable = true
 
bool disableChoice = false
 
bool blocked = false
 
bool hidden = false
 
GUISkin lastSkin
 
GUIBoxComponent uiComponent
 
GameObject gameObject
 

Properties

GUIBoxSetting Settings [get]
 
ORKGUILayer GUILayer [get]
 
MenuAudioClips Audio [get]
 
GUIBoxSkins Skins [get]
 
ChoiceIconSettings ChoiceIcon [get]
 
HeaderSettings Headers [get]
 
float ScrollSpeed [get]
 
MenuControls Controls [get]
 
IconSizeSetting IconSize [get]
 
bool Focused [get]
 
GameObject AtObject [get, set]
 
Vector2 BaseOffset [get, set]
 
bool IsOpened [get]
 
bool IsClosing [get]
 
bool IsClosed [get]
 
bool Controlable [get]
 
bool IsTooltip [get]
 
GUIBoxContent Content [get, set]
 
InactiveColor InactiveColor [get]