Skip to content

Textures

Mark7625 edited this page Apr 30, 2024 · 2 revisions

Pack Textures

This task is responsible for packing texture definitions into an OSRS game cache.

Usage

Parameters:

  • textureDirectory: A File object pointing to the directory that contains the toml Definitions.
  PackTextures(File("")),

Texture Configuration Properties:

  • id: The Unique identifier for the configuration.
  • isTransparent: Indicates if the sprite should be treated as having transparency. Default is false.
  • fileIds: A mutable list of file identifiers. Default is an empty list. You need to input at least 1 value for this if not inherited
  • combineModes: A mutable list of combine modes used for rendering. Default is an empty list.
  • field2440: A mutable list specific to the configuration (function or usage must be defined elsewhere). Default is an empty list.
  • colourAdjustments: A mutable list of color adjustment identifiers that affect the rendering. Default is an empty list.
  • averageRgb: Stores the average RGB value of the sprite. Default is 0. (Also calculates automatically)
  • animationDirection: Direction of the animation (if applicable). Typically this is an integer where specific values correlate to directions. Default is 0.
  • animationSpeed: Speed of the animation. Measured in frames per interval or another unit depending on the system. Default is 0.
  • inherit: ID of another configuration this one should inherit properties from. Default is -1. Optional.

Example

id = 24
inherit = 10
animationDirection = 3
animationSpeed = 3
fileIds = [454]

Documentation

Clone this wiki locally