NWN2Wiki
Advertisement

UIGrid is an element of the NWN2's GUI interface which arranges an array of sub elements in a grid and takes care of cell formatting, like padding and spacing.

A simple UI Grid is defined as follows:

<UIGrid name="MY_TEST_GRID" x="0" y="0" rows="3" columns="5" xPadding="2" yPadding="6">

<!-- content to be in the Array/Grid boxes goes here -->
<UIFrame state=base		fill="b_overlay.tga" />

</UIGrid

The above example would produce a simple Grid with the frame overlay effect in each cell. See below:

UIGrid Example1


UIGrid Attributes[]

XML Tag Field Variable Range Description
<UIGrid> name string any An array or grid element producing cells of elements defined within.
x/y integer screen coords Defines where the grid will be positioned relative to the parent element
rows/columns integer any Dictates the array/grid size, number of rows and columns.
xPadding/yPadding integer any Set the spacing or padding between adjacent cells of the grid.
update bool true/false Description
capturemouseclicks bool true/false Sets if the Grid should intercept mouse click events.
capturemouseevents bool true/false Sets the grid to intercept mouse-over type events
prototype bool true/false Desc
Advertisement