Ticket #108 (new task)
GUI - Retrievable Sprite Properties
| Reported by: | stuart | Owned by: | |
|---|---|---|---|
| Priority: | Should Have | Milestone: | Backlog |
| Component: | Core engine | Keywords: | |
| Cc: |
Description
- Problem: Quite often a sprite we'll not want to stretch a sprite when we display it, but put it on the screen with the same dimensions as the base texture. This tends to mean that same information is repeated twice (the width and height of the texture when defining the sprite, and the client area of the object that uses that sprite) using fixed values.
- Solution: A sprite object can be retrieved by its name, same as a control object, and its properties read (particularly its size properties). These can be referred to when defining the size of the control (see Relational Coordinates).
Change History
Note: See
TracTickets for help on using
tickets.
