Jump to content

ShouldUseCellDrawer: Difference between revisions

From ModEnc²
en>TAK02
m added discussion link
Rain-Islet (talk | contribs)
m [bot] Batch update {{Bugs}} templates.
 
(13 intermediate revisions by 4 users not shown)
Line 3: Line 3:
|files={{Categ|art(md).ini}}
|files={{Categ|art(md).ini}}
|values={{Values|boolean}}
|values={{Values|boolean}}
|default=unknown
|default=yes
|types={{Categ|Animations}}
|types={{Categ|Animations}}
|ts=yes
|ts=yes
|fs=yes
|fs=yes
|ets=yes
|ra2=yes
|ra2=yes
|yr=yes
|yr=yes
|rp=yes
}}
}}
Most objects like [[BuildingTypes|buildings]] normally use the same palette to draw attached animations as for the base object. If <tt>ShouldUseCellDrawer=false</tt> is set on an [[Animations|animation]], then it will force the animation [[palette]] (ANIM.PAL) to be used where it otherwise wouldn't.


If {{f|ShouldUseCellDrawer|false|link}} is set on an animation then that animation will always use the animation palette.
In cases where the animation palette should not be used, such as [[TileSets]] animation which uses the terrain palette (ISOxxx.PAL), like the waterfalls, setting <tt>ShouldUseCellDrawer=true</tt> will force the palette used by the cell.


== See Also ==
=={{Bugs}}==
*[[AltPalette]]
[[Ares]] provides the option of using <tt>CustomPalette=</tt> to specify a palette for the building animation that is independent of the building itself, but you must first disable <tt>ShouldUseCellDrawer</tt>. See: http://ares-developers.github.io/Ares-docs/new/customanimationandprojectilepalettes.html
*https://ppmforums.com/topic-48165/anim-palette-problem
 
==See Also==
[[AltPalette]] - for Anims
 
[[AnimPalette]] - for Projectiles
 
[[TerrainPalette]] - for Units/Buildings
 
[[Palette]] - for Buildings

Latest revision as of 17:50, 2 July 2025

Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: ShouldUseCellDrawer
File(s): art(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: yes
Applicable to: Animations


Most objects like buildings normally use the same palette to draw attached animations as for the base object. If ShouldUseCellDrawer=false is set on an animation, then it will force the animation palette (ANIM.PAL) to be used where it otherwise wouldn't.

In cases where the animation palette should not be used, such as TileSets animation which uses the terrain palette (ISOxxx.PAL), like the waterfalls, setting ShouldUseCellDrawer=true will force the palette used by the cell.

Bugs/Side-Effects/Unexpected Limitations

Ares provides the option of using CustomPalette= to specify a palette for the building animation that is independent of the building itself, but you must first disable ShouldUseCellDrawer. See: http://ares-developers.github.io/Ares-docs/new/customanimationandprojectilepalettes.html

See Also

AltPalette - for Anims

AnimPalette - for Projectiles

TerrainPalette - for Units/Buildings

Palette - for Buildings