Drawing Functions (ZScript)

From ZCWiki
Jump to: navigation, search

Script Drawing

NameSpace Screen

All drawing functions are part of the namespace Screen. THis means that when you call them, you must use the namespace, and an arrow operator, as follows:

Example:

Screen->DrawCircle(

Quest Rules

If the quest rule Subscreen Appears Above Sprites is enabled, then passing the layer argument as 7 will allow drawing on top of the passive subscreen.

Base Functions

PutPixel()

Spline()

Arc()

Line()

DrawTile()

FastTile()

DrawCombo()

FastCombo()

DrawString()

DrawCharacter()

DrawInteger()

DrawScreen()

DrawLayer()

Basic Shapes

Circle()

Rectangle()

Triangle()

Ellipse()

Quad()

Polygon()

3D Shapes

Quad3D()

Triangle3D()

Variables

Opacity, Transparency, Fill

XOR Mode

Scale

Rotation

Source Height, and Width

Destination Height, and Width

Layers

Arrays as Variables

Bitmaps

Using Bitmaps

Masks

If bool mask is set true, then all pixels in colour zero will be masked out as transparent.

Drawing Outside The Screen

Render Targets

Rendering Options

Drawing Back to The Screen