OnDgsElementRender

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This event is triggered every time after a dgs element renders with property renderEventCall.

Parameters

None

Source

The source is the dgs element that renders.

Example

DGS = exports.dgs
window = DGS:dgsCreateWindow(200,200,500,200,"test",false)
dgsSetProperty(window,"renderEventCall",true)

function drawAboveWindow ()
	local x,y = DGS:dgsGetPosition(window,false)
	dxDrawRectangle(x,y,500,200,tocolor(0,0,0,200),true) -- POSTGUI is always set to true
end
addEventHandler ( "onDgsElementRender", window, drawAboveWindow )

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