Opened 18 years ago

Closed 14 years ago

Last modified 14 years ago

#113 closed task (fixed)

GUI - Grid Control

Reported by: Stuart Walpole Owned by:
Priority: Should Have Milestone:
Component: Core engine Keywords:
Cc: Patch:

Description

  • 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)

comment:1 by Stuart Walpole, 18 years ago

Owner: set to gustav
Summary: Grid ControlGUI - Grid Control

comment:2 by Erik Johansson, 15 years ago

Owner: Gee removed

comment:3 by Philip Taylor, 14 years ago

Resolution: fixed
Status: newclosed

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.

comment:4 by (none), 14 years ago

Milestone: Environment Demo

Milestone Environment Demo deleted

Note: See TracTickets for help on using tickets.