OnDgsElementRender: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client event}}  
{{Client event}}  
This event is triggered every time after a dgs element renders with property [[DGS_General_Basic_Properties#renderEventCall]].
This event is triggered every time after a dgs element renders with property [[DGS_General_Basic_Properties#renderEventCall|renderEventCall]].


==Parameters==
==Parameters==

Latest revision as of 05:32, 16 October 2018

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