DrawLayerFix.zh
Overview
Creator:
Moosh
Added: 15 Feb 2018
Tags:
Library
Downloads: 54
|
View Script
Download Package (889.77 KB) |
Information
This isn't a very exciting one. Just some functions that fix a certain quirk ZQuest has with layers.
Description Setup Reviews Comments
Anywhere in a script where there's a draw function, you can just delete the Screen-> pointer and the draws will be shifted to an appropriate layer if the screen flag is checked.
In addition there's two more functions included:
void DrawTileC(int layer, int x, int y, int tile, int blockw, int blockh, int cset, int xscale, int yscale, int rx, int ry, int rangle, int flip, bool transparency, int opacity){
and
void DrawComboC(int layer, int x, int y, int combo, int blockw, int blockh, int cset, int xscale, int yscale, int rx, int ry, int rangle, int frame, int flip, bool transparency, int opacity){
These work the same as regular DrawTile() and DrawCombo(), but use the center of the tile block for positioning, scaling, and rotation.
Requires std.zh.
In addition there's two more functions included:
void DrawTileC(int layer, int x, int y, int tile, int blockw, int blockh, int cset, int xscale, int yscale, int rx, int ry, int rangle, int flip, bool transparency, int opacity){
and
void DrawComboC(int layer, int x, int y, int combo, int blockw, int blockh, int cset, int xscale, int yscale, int rx, int ry, int rangle, int frame, int flip, bool transparency, int opacity){
These work the same as regular DrawTile() and DrawCombo(), but use the center of the tile block for positioning, scaling, and rotation.
Requires std.zh.