GUI - Retrievable Sprite Properties
- 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
(4)
Owner: |
set to gustav
|
Summary: |
Retrievable Sprite Properties → GUI - Retrievable Sprite Properties
|
Milestone: |
Multiplayer Demo
|
Milestone Multiplayer Demo deleted