Management class for displaying sprites and images on 2D surfaces More...
Classes | |
class | NSpriteSprite |
sprite-based sprites (created with the sprite tool) | |
class | SpriteDef |
Sprite display information | |
Public Member Functions | |
SpriteManager () | |
void | Update () |
void | Draw (int minIndex, int maxIndex) |
void | Draw (int minIndex, int maxIndex, int priority) |
void | Hide (int p) |
void | Unload (int p) |
void | Move (int spIndex, float waitFrame, int x, int y) |
void | Move (int spIndex, int zoom, float waitFrame, Color color) |
void | Move (int spIndex, int zoomX, int zoomY, float waitFrame, Color color) |
void | Move (int spIndex, int zoom, float waitFrame, Color color, int x, int y) |
void | Move (int spIndex, int zoomX, int zoomY, float waitFrame, Color color, int x, int y) |
bool | GetPosition (int idx, out int x, out int y) |
void | ShowRect (int spIndex, int scaleX, int scaleY, Color rectColor, Color color, int x, int y) |
void | ShowText (int spIndex, string p, int x, int y) |
void | ShowText (int spIndex, string p, int zoom, Color color, int textAlign, int textEffect, bool isTelop) |
void | ShowText (int spIndex, string p, int zoom, Color color, int x, int y, int textAlign, int textEffect, bool isTelop) |
void | ShowPicture (int spIndex, Guid guid, int zoomX, int zoomY, Color color, int faceType, Common.Resource.Texture.SpriteOrigin origin=Common.Resource.Texture.SpriteOrigin.CENTER, int rotate=0) |
void | ShowSprite (int spIndex, Guid guid, int zoomX, int zoomY, Color color, string motionName) |
void | ShowSprite (int spIndex, Guid guid, int zoomX, int zoomY, Color color) |
void | ShowPicture (int spIndex, Guid guid, int zoomX, int zoomY, Color color, Common.Rom.Script.Attr type, int x=10000, int y=10000, Common.Resource.Texture.SpriteOrigin origin=Common.Resource.Texture.SpriteOrigin.CENTER, int rotate=0) |
void | Clear () |
bool | isMoving (int spIndex) |
Guid | GetImageGuid (int p) |
void | GetSpSize (int p, out int spSizeX, out int spSizeY) |
void | GetScale (int p, out int scaleX, out int scaleY) |
void | SetPosition (int idx, int x, int y) |
bool | isVisible (int spIndex) |
Color | GetColor (int spIndex) |
Vector2 | getScale (int spIndex) |
void | SetEffectTargetColor (int spIndex, Color color) |
Public Attributes | |
MapScene | owner |
SpriteFaceManager | face |
Static Public Attributes | |
const int | SYSTEM_SPRITE_INDEX = 1000 |
const int | TELOP_SPRITE_BG = 1020 |
const int | TELOP_SPRITE_TEXT = 1021 |
const int | MAX_SPRITE = 1022 |
Management class for displaying sprites and images on 2D surfaces
Yukar.Engine.SpriteManager.SpriteManager | ( | ) |
void Yukar.Engine.SpriteManager.Clear | ( | ) |
void Yukar.Engine.SpriteManager.Draw | ( | int | minIndex, |
int | maxIndex | ||
) |
void Yukar.Engine.SpriteManager.Draw | ( | int | minIndex, |
int | maxIndex, | ||
int | priority | ||
) |
Color Yukar.Engine.SpriteManager.GetColor | ( | int | spIndex | ) |
Guid Yukar.Engine.SpriteManager.GetImageGuid | ( | int | p | ) |
bool Yukar.Engine.SpriteManager.GetPosition | ( | int | idx, |
out int | x, | ||
out int | y | ||
) |
void Yukar.Engine.SpriteManager.GetScale | ( | int | p, |
out int | scaleX, | ||
out int | scaleY | ||
) |
Vector2 Yukar.Engine.SpriteManager.getScale | ( | int | spIndex | ) |
void Yukar.Engine.SpriteManager.GetSpSize | ( | int | p, |
out int | spSizeX, | ||
out int | spSizeY | ||
) |
void Yukar.Engine.SpriteManager.Hide | ( | int | p | ) |
bool Yukar.Engine.SpriteManager.isMoving | ( | int | spIndex | ) |
bool Yukar.Engine.SpriteManager.isVisible | ( | int | spIndex | ) |
void Yukar.Engine.SpriteManager.Move | ( | int | spIndex, |
float | waitFrame, | ||
int | x, | ||
int | y | ||
) |
void Yukar.Engine.SpriteManager.Move | ( | int | spIndex, |
int | zoom, | ||
float | waitFrame, | ||
Color | color | ||
) |
void Yukar.Engine.SpriteManager.Move | ( | int | spIndex, |
int | zoom, | ||
float | waitFrame, | ||
Color | color, | ||
int | x, | ||
int | y | ||
) |
void Yukar.Engine.SpriteManager.Move | ( | int | spIndex, |
int | zoomX, | ||
int | zoomY, | ||
float | waitFrame, | ||
Color | color | ||
) |
void Yukar.Engine.SpriteManager.Move | ( | int | spIndex, |
int | zoomX, | ||
int | zoomY, | ||
float | waitFrame, | ||
Color | color, | ||
int | x, | ||
int | y | ||
) |
void Yukar.Engine.SpriteManager.SetEffectTargetColor | ( | int | spIndex, |
Color | color | ||
) |
void Yukar.Engine.SpriteManager.SetPosition | ( | int | idx, |
int | x, | ||
int | y | ||
) |
void Yukar.Engine.SpriteManager.ShowPicture | ( | int | spIndex, |
Guid | guid, | ||
int | zoomX, | ||
int | zoomY, | ||
Color | color, | ||
Common.Rom.Script.Attr | type, | ||
int | x = 10000 , |
||
int | y = 10000 , |
||
Common.Resource.Texture.SpriteOrigin | origin = Common.Resource.Texture.SpriteOrigin.CENTER , |
||
int | rotate = 0 |
||
) |
void Yukar.Engine.SpriteManager.ShowPicture | ( | int | spIndex, |
Guid | guid, | ||
int | zoomX, | ||
int | zoomY, | ||
Color | color, | ||
int | faceType, | ||
Common.Resource.Texture.SpriteOrigin | origin = Common.Resource.Texture.SpriteOrigin.CENTER , |
||
int | rotate = 0 |
||
) |
void Yukar.Engine.SpriteManager.ShowRect | ( | int | spIndex, |
int | scaleX, | ||
int | scaleY, | ||
Color | rectColor, | ||
Color | color, | ||
int | x, | ||
int | y | ||
) |
void Yukar.Engine.SpriteManager.ShowSprite | ( | int | spIndex, |
Guid | guid, | ||
int | zoomX, | ||
int | zoomY, | ||
Color | color | ||
) |
void Yukar.Engine.SpriteManager.ShowSprite | ( | int | spIndex, |
Guid | guid, | ||
int | zoomX, | ||
int | zoomY, | ||
Color | color, | ||
string | motionName | ||
) |
void Yukar.Engine.SpriteManager.ShowText | ( | int | spIndex, |
string | p, | ||
int | x, | ||
int | y | ||
) |
void Yukar.Engine.SpriteManager.ShowText | ( | int | spIndex, |
string | p, | ||
int | zoom, | ||
Color | color, | ||
int | textAlign, | ||
int | textEffect, | ||
bool | isTelop | ||
) |
void Yukar.Engine.SpriteManager.ShowText | ( | int | spIndex, |
string | p, | ||
int | zoom, | ||
Color | color, | ||
int | x, | ||
int | y, | ||
int | textAlign, | ||
int | textEffect, | ||
bool | isTelop | ||
) |
void Yukar.Engine.SpriteManager.Unload | ( | int | p | ) |
void Yukar.Engine.SpriteManager.Update | ( | ) |
SpriteFaceManager Yukar.Engine.SpriteManager.face |
|
static |
MapScene Yukar.Engine.SpriteManager.owner |
|
static |
|
static |
|
static |