GUILayoutStringTable Class |
Namespace: KSPDev.GUIUtils
The GUILayoutStringTable type exposes the following members.
Name | Description | |
---|---|---|
![]() | GUILayoutStringTable | Creates a table of the specified column width. |
Name | Description | |
---|---|---|
![]() | AddTextColumn(String, GUIStyle) | Adds a text column into the table. |
![]() | AddTextColumn(String, LocalizableMessage, GUIStyle) | Adds a text column into the table. |
![]() | AddTextColumn(String, String, GUIStyle) | Adds a text column into the table with a value tooltip. |
![]() | AddTextColumn(String, String, LocalizableMessage, GUIStyle) | Adds a text column into the table with a value tooltip. |
![]() | AddTextColumn(GUIContent, GUIStyle, Single, Single) | Adds a content into the table column. |
![]() | StartNewRow | Tells that a new row is about to be rendered. |
![]() | UpdateFrame | Updates the table state each frame to remember the best column size values. |
This table cannot hold non-string content. It keeps all the columns to be of the same, and the size is adjusted to the maximum column's size in the rows. There is a one frame delay between the content change and the column resizing, which may result in flickering if the content changes too frequently. The columns try to take as small space as possible, so defining the minimum size may be a good bet.
This class is designed to be called on every frame. It's heavily performance optimized.