Opened 18 years ago

Last modified 14 years ago

#112 new task

GUI - Expansive Controls

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

Description

  • Problems: Sometimes we want a control that contains a caption to expand so that the sprite increases in size to fit the text. A good example are the resource counters; the counter should increase in length to accommodate an increasing number of digits, and be of minimum length when the player has only a few resources. This also ties in with Relational Coordinates (since the counter on either side should also keep a fixed distance away from the control as it expands).
  • Solution: Currently we handle this example in script, but it requires a lot of processing that could be handled more efficiently in the engine. I suggest an extra flag in captioned controls that indicates how the text is wrapped (the control extends in length, the text wraps down to the next line, or it allows the text to pop out of its box).

Change History (4)

comment:1 by Stuart Walpole, 18 years ago

Owner: set to gustav
Summary: Expansive ControlsGUI - Expansive Controls

comment:2 by Erik Johansson, 15 years ago

Owner: Gee removed

comment:3 by (none), 14 years ago

Milestone: Environment Demo

Milestone Environment Demo deleted

comment:4 by Andrew, 14 years ago

Milestone: Backlog
Note: See TracTickets for help on using tickets.