Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Attributes | List of all members
DialogGUIScrollList Class Reference
Inheritance diagram for DialogGUIScrollList:
DialogGUIBase

Public Member Functions

override GameObject Create (ref Stack< Transform > layouts, UISkinDef skin)
 
 DialogGUIScrollList (Vector2 size, bool hScroll, bool vScroll, DialogGUILayoutBase layout)
 
 DialogGUIScrollList (Vector2 size, Vector2 contentSize, bool hScroll, bool vScroll, DialogGUILayoutBase layout)
 New DialogGUIScrollList Object More...
 
override void Resize ()
 
override void Update ()
 
- Public Member Functions inherited from DialogGUIBase
void AddChild (DialogGUIBase child)
 
void AddChildren (DialogGUIBase[] c)
 
 DialogGUIBase (params DialogGUIBase[] list)
 
void SetOptionText (string text)
 

Public Attributes

bool hScrollBar
 
DialogGUILayoutBase layout
 
bool vScrollBar
 
- Public Attributes inherited from DialogGUIBase
List< DialogGUIBasechildren = new List<DialogGUIBase>()
 
bool flexibleHeight = true
 
UIStyle guiStyle = null
 
float height = -1.0f
 
Callback OnFixedUpdate = () => { }
 
Callback OnLateUpdate = () => { }
 
Callback OnRenderObject = () => { }
 
Callback OnResize = () => { }
 
Callback OnUpdate = () => { }
 
Func< bool > OptionEnabledCondition = () => { return true; }
 
Func< bool > OptionInteractableCondition = () => { return true; }
 
string OptionText = "No Function"
 
Vector2 position
 
Vector2 size = new Vector2(-1f, -1f)
 
Color tint
 
string tooltipText
 
GameObject uiItem = null
 
bool useColor = false
 
float width = -1.0f
 

Protected Attributes

GameObject content
 
Vector2 contentSize
 
ScrollRect scrollRect
 
- Protected Attributes inherited from DialogGUIBase
bool dirty = true
 
bool lastEnabledState = false
 
bool lastInteractibleState = true
 

Additional Inherited Members

- Static Public Member Functions inherited from DialogGUIBase
static bool SelectFirstItem (DialogGUIBase[] items)
 
static void SetUpTextObject (TMPro.TextMeshProUGUI text, string value, UIStyle style, UISkinDef skin, bool ignoreStyleColor=false)
 
- Protected Member Functions inherited from DialogGUIBase
virtual TMPro.TextMeshProUGUI GetTextObject ()
 
void SetupTransformAndLayout ()
 
- Properties inherited from DialogGUIBase
bool Dirty [get, set]
 

Constructor & Destructor Documentation

DialogGUIScrollList.DialogGUIScrollList ( Vector2  size,
bool  hScroll,
bool  vScroll,
DialogGUILayoutBase  layout 
)
inline
DialogGUIScrollList.DialogGUIScrollList ( Vector2  size,
Vector2  contentSize,
bool  hScroll,
bool  vScroll,
DialogGUILayoutBase  layout 
)
inline

New DialogGUIScrollList Object

Parameters
sizeThe size of the control in the layout
contentSizeThe size of the content - this may be bigger than the size if we have a scroll
hScrollTrue to show a horizontal scrollbar
vScrollTrue to show a vertical scrollbar
layoutThe Layout to present

Member Function Documentation

override GameObject DialogGUIScrollList.Create ( ref Stack< Transform >  layouts,
UISkinDef  skin 
)
inlinevirtual

< Add after create for update function handling

Reimplemented from DialogGUIBase.

override void DialogGUIScrollList.Resize ( )
inlinevirtual

Reimplemented from DialogGUIBase.

override void DialogGUIScrollList.Update ( )
inlinevirtual

Reimplemented from DialogGUIBase.

Member Data Documentation

GameObject DialogGUIScrollList.content
protected
Vector2 DialogGUIScrollList.contentSize
protected
bool DialogGUIScrollList.hScrollBar
DialogGUILayoutBase DialogGUIScrollList.layout
ScrollRect DialogGUIScrollList.scrollRect
protected
bool DialogGUIScrollList.vScrollBar

The documentation for this class was generated from the following file: