ORK Framework  2.25.1
API Documentation
ORKFramework.ChoiceContent Class Reference

Public Member Functions

 ChoiceContent (GUIContent content)
 
 ChoiceContent (GUIContent content, bool active)
 
 ChoiceContent (GUIContent content, bool active, string info)
 
 ChoiceContent (GUIContent content, bool active, string info, GUIContent title)
 
ChoiceContent GetCopy ()
 
void UpdateContent (ChoiceContent content)
 
bool RegisterDisplayUpdate (Notify notify)
 
bool UnregisterDisplayUpdate (Notify notify)
 
void SetCustomSkin ()
 
void SetSelectedSkin (GUIBox box, bool isTab)
 
void SetInactiveAlpha (GUIBox box, bool isTab)
 
void InitTitle (Rect textBounds, ButtonSettings settings, float titlePadding, float titleWidth, TextAlignment alignment, VerticalTextAlignment vAlignment, bool adjustHeight)
 
void InitContent (GUIBox box, Rect textBounds, ButtonSettings settings, bool adjustHeight)
 
void SetBounds (Rect bounds)
 
void SetPosition (Vector2 newPos)
 
void SetPosition (Vector2 newPos, TextAnchor anchor)
 
void SetHeight (float height)
 
void SetToContentSize (Vector4 padding)
 
Rect GetContentSize (Vector4 padding)
 
void CheckBiggestContent (ref Vector2 size)
 
void MoveX (float add)
 
bool CheckClick (Vector2 position, float releasedAfter, ref bool clickConsumed)
 
void GetInButtonPosition (ref Vector2 position)
 
void AdjustVerticalContentPosition (VerticalTextAlignment titleAlignment, ButtonSettings settings)
 
GameObject CreateObject (string name, GUIBox box, int buttonIndex, bool isTab, GameObject prefab, NewUIButtonSettings buttonSettings, GameObject parent, ButtonClick callback)
 
void UpdateObjectBounds ()
 
void FireOnClick ()
 
void HideObject (bool hide)
 

Public Attributes

Notify recalculate
 
RegisterNotify registerNotify
 
RegisterNotify unregisterNotify
 
bool isButton = true
 
string description = ""
 
MultiContent titleLabel
 
MultiContent contentLabel
 
MultiContent infoLabel
 
Rect titleBounds = new Rect(0, 0, 0, 0)
 
Rect buttonBounds = new Rect(0, 0, 0, 0)
 
Rect tImgBounds = new Rect(0, 0, 0, 0)
 
Rect cImgBounds = new Rect(0, 0, 0, 0)
 
bool isDragable = false
 
bool isTooltip = false
 
bool dragInactive = false
 
bool noDragSort = false
 
int clickCount = 0
 
IPortrait portrait
 
RectTransform titleRectTransform
 
RectTransform buttonRectTransform
 
UIChoiceButtonComponent choiceButtonComponent
 

Properties

bool Active [get, set]
 
GUIContent Content [get, set]
 
Texture ContentIcon [get, set]
 
string Info [get, set]
 
GUIContent Title [get, set]
 
HUDWrapper Data [get, set]
 
ChoiceSkin CustomSkin [get, set]
 
IconSizeSetting IconSize [get, set]