Difference between revisions of "GUIGrid"

From Virtual World Web Wiki
Jump to: navigation, search
(Documentation for the GUIGrid class)
(Documentation for the GUIGrid class)
 
Line 18: Line 18:
 
::
 
::
 
::Determines if the layout flow is Horizontal or Vertical
 
::Determines if the layout flow is Horizontal or Vertical
 +
 +
:{{CSharp|int ItemCount {get; set;} }}
 +
 +
:{{CSharp|string ItemTemplate {get; set;} }}
 +
::
 +
::Item template to use in the Editor for simulating a full grid
  
 
:{{CSharp|int RowCount {get; set;} }}
 
:{{CSharp|int RowCount {get; set;} }}
Line 30: Line 36:
 
::
 
::
 
::Which corner does the grid fill from?
 
::Which corner does the grid fill from?
 +
 +
===Methods===
 +
:{{CSharp|List<GUIComponent> GetChildren()}}
 +
::
 +
::Override this to provide a way of finding the children of a component that has a more complex hierarchy, such as scroll boxes and grids
  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__

Latest revision as of 17:18, 19 November 2018

A component for gridded layouts where all elements have the same size

  • Inherits class: GUIComponent
  • This is a JavaScript visible object

Remarks [edit]

Properties

JSVector2 CellSize {get; set;}
How large should each element in the grid be
int ColumnCount {get; set;}
Fixed number of columns to use in this grid (or 0 if the number of columns is flexible)
bool Horizontal {get; set;}
Determines if the layout flow is Horizontal or Vertical
int ItemCount {get; set;}
string ItemTemplate {get; set;}
Item template to use in the Editor for simulating a full grid
int RowCount {get; set;}
Fixed number of rows to use in this grid (or 0 if the number of rows is flexible)
JSVector2 Spacing {get; set;}
Pixel offset between each element in the grid
Corner StartCorner {get; set;}
Which corner does the grid fill from?

Methods

List<GUIComponent> GetChildren()
Override this to provide a way of finding the children of a component that has a more complex hierarchy, such as scroll boxes and grids