DgsGetMouseEnterGUI

From Multi Theft Auto: Wiki

This function gets the DGS Dx GUI element that the cursor is hovering on.

Syntax

element dgsGetMouseEnterGUI ( )

Returns

Returns a DGS element if the cursor is hovering on a clickable DGS element, false otherwise.

Example

DGS = exports.dgs
-- create our button
button = DGS:dgsCreateButton( 0.7, 0.1, 0.2, 0.1, "Output!", true )

addEventHandler("onClientRender",root,function()
	local str = "Current Entered DGS Dx GUI Type :"
	local theType = "None"
	local dxgui = DGS:dgsGetMouseEnterGUI ( )
	if isElement(dxgui) then
		theType = DGS:dgsGetType(dxgui)
	end
	dxDrawText(str..theType,400,400)
end)

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Selector

Switch Button

Tab Panel

Window

Plugin

Blur Box

Color Picker

Canvas

Effect 3D

Media Browser

Mask

Nine Slice

Object Preview Supports

Paste Handler

QRCode

Remote Image

Rounded Rectangle