Palette conversion algorithms for png images importing (if you want to customize the style and improve the quality).
Picture IDs from SCREEN.HQR in the vanilla LBA2 game.
Video file names for cutscenes in the vanilla LBA2 game (from VIDEO.HQR)
Replaces a vanilla game image with a custom image. This allows overriding existing game images from SCREEN.HQR with custom ones. The replacement happens in runtime only, no HQR file is changed.
The image size should be 640x480.
The ID of the game image to replace (0 to 38 for vanilla game files).
The name of the custom image file to use as replacement. Should be located in the mod's media/images folder, subfolders are allowed.
The game image ID if successful, or undefined if parameters are invalid.
Restores a previously replaced game image to its original state. This removes the custom image replacement for the specified game image ID.
The ID of the game image to restore to original.
Sets the current user image to be used in LifeOpcodes.LM_PCX and LifeOpcodes.LM_PCX_MESS_OBJ life commands. The image file should be located in the mod's media/images folder, subfolders are allowed.
The image size should be 640x480.
The name of the image file to use (without path). Should be a valid filename without backslashes.
The image ID that can be used to reference this image, or undefined if the image name is invalid.
Private_
The global image object provides methods to manage custom images in the mod.
It allows loading user images and replacing existing game images.