Table of Contents

Interface IViewPictures

Namespace
BSGameLib.UI
Assembly
BSGameLib.UI.dll

What an image's Source names, answered by the game for one view: a picture by a name the game gives meaning to, such as a key into its own art, never a file.

public interface IViewPictures

Remarks

Asked each time the image is drawn, so a picture the game has not loaded yet appears when it has, and one that moves (an animation's frame) moves. A view the game did not ship names its pictures only this way, so it can show nothing the game does not hand it.

Methods

TryGet(string, out ITexture, out Rectangle?)

The texture source names, and the part of it to draw (null for all of it).

bool TryGet(string source, out ITexture texture, out Rectangle? region)

Parameters

source string
texture ITexture
region Rectangle?

Returns

bool

False when it names nothing; the image then draws nothing.