GUI - Expansive Controls
- 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)
Owner: |
set to gustav
|
Summary: |
Expansive Controls → GUI - Expansive Controls
|
Milestone: |
Environment Demo
|
Milestone Environment Demo deleted