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 1: Line 1:
A component for gridded layouts where all elements have the same size
 
 
 
*'''Inherits class: [[GUIComponent]]'''
 
*'''Inherits class: [[GUIComponent]]'''
 
* This is a JavaScript visible object
 
* This is a JavaScript visible object
Line 8: Line 6:
 
===Properties===
 
===Properties===
 
:{{CSharp|JSVector2 CellSize {get; set;} }}
 
:{{CSharp|JSVector2 CellSize {get; set;} }}
::
 
::How large should each element in the grid be
 
  
 
:{{CSharp|int ColumnCount {get; set;} }}
 
:{{CSharp|int ColumnCount {get; set;} }}
::
 
::Fixed number of columns to use in this grid (or 0 if the number of columns is flexible)
 
  
 
:{{CSharp|bool Horizontal {get; set;} }}
 
:{{CSharp|bool Horizontal {get; set;} }}
::
 
::Determines if the layout flow is Horizontal or Vertical
 
  
 
:{{CSharp|int RowCount {get; set;} }}
 
:{{CSharp|int RowCount {get; set;} }}
::
 
::Fixed number of rows to use in this grid (or 0 if the number of rows is flexible)
 
  
 
:{{CSharp|JSVector2 Spacing {get; set;} }}
 
:{{CSharp|JSVector2 Spacing {get; set;} }}
::
 
::Pixel offset between each element in the grid
 
  
 
:{{CSharp|Corner StartCorner {get; set;} }}
 
:{{CSharp|Corner StartCorner {get; set;} }}
::
 
::Which corner does the grid fill from?
 
  
 
__NOTOC____NOEDITSECTION__
 
__NOTOC____NOEDITSECTION__

Revision as of 12:49, 26 May 2017

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

Remarks [edit]

Properties

JSVector2 CellSize {get; set;}
int ColumnCount {get; set;}
bool Horizontal {get; set;}
int RowCount {get; set;}
JSVector2 Spacing {get; set;}
Corner StartCorner {get; set;}