OnDgsPreRender

From Multi Theft Auto: Wiki
Revision as of 13:39, 20 January 2018 by Thisdp (talk | contribs) (Thisdp moved page OnClientDgsDxPreRender to OnDgsPreRender)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered every time before dgs renders.

Parameters

None

Source

The source of this event is the client's root element.

Example

This example shows that we can draw a rectangle under dgs gui.

DGS = exports.dgs
edit = DGS:dgsCreateEdit(200,200,500,200,"test",false)

function drawAboveDGS ()
	dxDrawRectangle(150,150,600,300,tocolor(0,0,0,200),true) -- POSTGUI is always set to true
end
addEventHandler ( "onDgsPreRender", root, drawAboveDGS )

See Also

DGS events

General

Check Box

Combo Box

Drag'N Drop

Edit

Grid List

Menu

Selector

Mouse

Radio Button

Switch Button

Tab

Animation

Plugin

Media

Color Picker

QRCode

Remote Image

Client event functions