GUI - Grid Control
- Problem: A common GUI need are tables or lists of buttons with similar properties, such as a construction queue, list of garrisoned unit portraits, or table of statistics. Creating,
- Solution: One solution is to be able to omit the XML and create a control instance entirely from script. A much safer solution, however, would be a "grid" control which acts as a container for an array of child objects of the same type with the same default properties from a given starting position. Only one grid would need to be declared and it would generate a specified number of child controls. It would automatically take care of lining up the buttons and fit to a specific spacing/rows/columns if specified. The child objects could then be individually accessed and their properties modified.
Change History
(4)
Owner: |
set to gustav
|
Summary: |
Grid Control → GUI - Grid Control
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Milestone: |
Environment Demo
|
This is basically fixed (and used by the new session GUI) - use the new
<repeat>
tag to define repetitive objects in the XML, then write scripts to show/hide and to compute positions.