ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

YDrawOffset: Difference between revisions

From ModEnc
Jump to navigation Jump to search
No edit summary
Crimsonum (talk | contribs)
No edit summary
Line 2: Line 2:
|name={{PAGENAME}}
|name={{PAGENAME}}
|files={{Categ|Art(md).ini}}
|files={{Categ|Art(md).ini}}
|values=signed integers
|values={{Values|int}}
|default=0
|default=0
|types=any art entry
|types=Any [[TechnoType]] art entry
|ts=yes
|ts=yes
|fs=yes
|fs=yes
Line 12: Line 12:
|ares=yes
|ares=yes
}}
}}
This is a quite useful tag that can be applied to any entry in the {{Categ|Art(md).ini}} file (except infantry sequences, of course).<br>
This is a quite useful flag that can be applied to any entry in the {{Categ|Art(md).ini}} file (except infantry sequences, of course).<br>
Using this tag, you can - like its name suggests - adjust the Y draw offset, which basicly means that you can move your image (preferedly animations) up or down on the screen.
Using this flag, you can like its name suggests adjust the image's Y-draw offset, which basically means that you can move your image (preferably animations) up or down on the screen.


Note that<br>
Note that<br>
Line 19: Line 19:
'''negative''' values move the image '''up'''.
'''negative''' values move the image '''up'''.


The values are measured in [[lepton]]s.
The values are measured in pixels.


You can avoid having to edit your SHP files in order to "move" them up or down simply by using this tag.  
You can avoid having to edit your SHP files in order to "move" them up or down simply by using this flag . However, note that this will also affect how the image is layered with others. Moving the image up will cause it to be rendered on a "higher" layer (closer to the screen), and vice versa.


==See also==
==See also==
* [[ZAdjust]]
* [[ZAdjust]]

Revision as of 08:55, 10 November 2018

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: YDrawOffset
File(s): Art(md).ini
Values: Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767.
Default: 0
Applicable to: Any TechnoType art entry


This is a quite useful flag that can be applied to any entry in the Art(md).ini file (except infantry sequences, of course).
Using this flag, you can – like its name suggests – adjust the image's Y-draw offset, which basically means that you can move your image (preferably animations) up or down on the screen.

Note that
positive values move the image down, while
negative values move the image up.

The values are measured in pixels.

You can avoid having to edit your SHP files in order to "move" them up or down simply by using this flag . However, note that this will also affect how the image is layered with others. Moving the image up will cause it to be rendered on a "higher" layer (closer to the screen), and vice versa.

See also