OnDgsCursorTypeChange: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client event}} __NOTOC__ This event is fired when the DGS cursor type changes. ==Parameters== None ==Source== The source of this event is t...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
__NOTOC__  
__NOTOC__  
This event is fired when the DGS cursor type changes.
This event is fired when the DGS cursor type changes.
Available cursor type are as follows:
*'''arrow'''
*'''sizing_ns'''
*'''sizing_ew'''
*'''sizing_nwse'''
*'''sizing_nesw'''
*'''text'''
*'''move'''
*'''pointer'''


==Parameters==  
==Parameters==  

Latest revision as of 13:47, 13 February 2021

This event is fired when the DGS cursor type changes.

Available cursor type are as follows:

  • arrow
  • sizing_ns
  • sizing_ew
  • sizing_nwse
  • sizing_nesw
  • text
  • move
  • pointer

Parameters

None

Source

The source of this event is the root element.

Example

DGS = exports.dgs

function onCursorTypeChange(oldType,newType)
	outputChatBox("Cursor: "..oldType.." -> "..newType)
end
addEventHandler("onDgsCursorTypeChange",getRootElement(),onCursorTypeChange)

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

Shared