OnDgsStopSizing: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
Line 4: Line 4:


==Parameters==  
==Parameters==  
*'''isFinished''': A bool indicates whether the animation is finished or stopped by [[dgsStopSizing]].
*'''isFinished''': A bool indicates whether the animation has finished or been stopped by [[dgsStopSizing]].


==Source==
==Source==

Latest revision as of 16:43, 16 June 2021

This event is triggered when a dgs element stops the aninimation which was started by dgsSizeTo

Parameters

  • isFinished: A bool indicates whether the animation has finished or been stopped by dgsStopSizing.

Source

The source of this event is the dgs element which stopped its animation.

Example

DGS = exports.dgs
window = DGS:dgsCreateWindow(200,100,400,400,"DGS Parent Window",false)	--Create a window
DGS:dgsSizeTo(window,400,200,false,false,"OutQuad",2000)  --Set Animation
addEventHandler("onDgsStopSizing", window, function() 
   outputChatBox("Window has stopped resizing")
end)

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