-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Palettes and Remaps
OpenRA loads native ra/cnc palettes which are a list of 256 colors in a custom format (TODO: explain the color format).
Certain color indices have hard-coded meanings as transparent or shadow colors. Index 0 is mapped to transparent. If the Transparent flag (explained below) is true, indices 1 and 3 will be mapped to a light shadow color and index 4 to a darker shadow color.
Palettes must be defined with a trait before they can be used ingame. The Name field is used both by internal palette lookups, and by custom palette overrides on unit Render* traits.
The following traits can be added to the World actor:
PaletteFromFile@chrome:
Name: <string> # Internal palette name
Filename: <string> # Filename to load
Tileset: <string, default null> # If defined, load the palette only for this tileset
Transparent: <bool, default true> # Map indices 1,3,4 to shadow if true
This is the most basic palette definition. The file temperat.pal is loaded without modifications (aside from the
PaletteFromCurrentTileset:
Name: terrain
foo
Players ๐ฒ
- FAQ โ
- Installation ๐ฆ
- Game Content ๐ฟ
- Hotkeys and Stances ๐ฎ
- Strategies ๐
- Settings ๐ง
- Dedicated Server โพ
- RaspberryPi ๐
- Badges & Icons ๐ฅ
- Changelog ๐
Modders โ๏ธ
- Audio guide ๐
- Traits ๐
- Palettes and Remaps ๐จ
- World Coordinate System ๐
- Map scripting
- Lua-API ๐
- Conditions ๐
- Mapping ๐ง
- Pixelart ๐
Developers ๐ง
- Contributing โค๏ธ
- Compiling
- Hacking
- Coding Standard ๐
- Branches and Releases ๐
- Release Checklist โ
- Sequences
- Glossary
- Reverse engineering ๐
- License ยฉ๏ธ