The static class that loads images, creates bitmap objects and retains them.
Members
- The height of a face image
- The width of a face image
- The height of an icon
- The width of an icon
- The standard height of a face image
- Since:
- 1.9.0
- The standard width of a face image
- Since:
- 1.9.0
- The standard height of an icon
- Since:
- 1.9.0
- The standard width of an icon
- Since:
- 1.9.0
Methods
- Destroys all bitmap objects in the image cache
- Gets the face image size from database if possible, otherwise a default face size
- Since:
- 1.9.0
Returns:
Type Description number The face image width - Gets the icon size from database if possible, otherwise a default icon size
- Since:
- 1.9.0
Returns:
Type Description number The icon width - Check if the filename begins with a $ character
Name Type Description filename
string The filename to check Returns:
Type Description boolean True if the filename begins with $ - Check if the filename begins with a ! character
Name Type Description filename
string The filename to check Returns:
Type Description boolean True if the filename begins with ! - Check if there are any bitmaps loading
Returns:
Type Description boolean True if there are no bitmaps loading, false if any bitmap is still loading - Check if the filename begins with a ! character
Name Type Description filename
string The filename to check Returns:
Type Description boolean True if the filename begins with ! ImageManager.loadAnimation(filename)Bitmapstatic
- Loads an animation with given filename, from the animations folder
Name Type Description filename
string Filename of the animation to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadBattleback1(filename)Bitmapstatic
- Loads a battleback1 with given filename, from the battlebacks1 folder
Name Type Description filename
string Filename of the battleback1 to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadBattleback2(filename)Bitmapstatic
- Loads a battleback2 with given filename, from the battlebacks2 folder
Name Type Description filename
string Filename of the battleback2 to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadBitmap(folder, filename)Bitmapstatic
- Loads a bitmap from the given folder with given filename
Name Type Description folder
string Folder part of the path to the file, for example "img/titles2/" filename
string Filename of the image to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap. If no filename, returns empty bitmap ImageManager.loadBitmapFromUrl(url)Bitmapstatic
- Loads a bitmap from the given url
Name Type Description url
string The full folder + filename + extension path to the file Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadCharacter(filename)Bitmapstatic
- Loads a character with given filename, from the characters folder
Name Type Description filename
string Filename of the character sheet to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadEnemy(filename)Bitmapstatic
- Loads an enemy with given filename, from the enemies folder
Name Type Description filename
string Filename of the enemy to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadFace(filename)Bitmapstatic
- Loads a face with given filename, from the faces folder
Name Type Description filename
string Filename of the face sheet to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadParallax(filename)Bitmapstatic
- Loads a parallax with given filename, from the parallaxes folder
Name Type Description filename
string Filename of the parallax to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadPicture(filename)Bitmapstatic
- Loads a picture with given filename, from the pictures folder
Name Type Description filename
string Filename of the picture to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadSvActor(filename)Bitmapstatic
- Loads a side view actor sheet with given filename, from the sv_actors folder
Name Type Description filename
string Filename of the side view actor sheet to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadSvEnemy(filename)Bitmapstatic
- Loads a side view enemy with given filename, from the sv_enemies folder
Name Type Description filename
string Filename of the side view enemy to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadSystem(filename)Bitmapstatic
- Loads a system graphic with given filename, from the system folder
Name Type Description filename
string Filename of the system graphic to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadTileset(filename)Bitmapstatic
- Loads a tileset with given filename, from the tilesets folder
Name Type Description filename
string Filename of the tileset to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadTitle1(filename)Bitmapstatic
- Loads a title1 with given filename, from the titles1 folder
Name Type Description filename
string Filename of the title1 to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap ImageManager.loadTitle2(filename)Bitmapstatic
- Loads a title2 with given filename, from the titles2 folder
Name Type Description filename
string Filename of the title2 to load (no file extension) Returns:
Type Description Bitmap The image file as a bitmap - Throw a retry screen error when bitmap could not be loaded
Throws:
Retry screen error