DgsIsMoving

From Multi Theft Auto: Wiki

This function allow us to check whether the position of dgs element is being changed by dgsMoveTo.

Syntax

table dgsIsMoving ( element dgsElement )

Required Arguments

  • dgsElement: The DGS element to check.

Returns

Returns a table with animation data if succeed, false otherwise.

Example

DGS = exports.dgs

parent = DGS:dgsCreateWindow(200,100,400,400,"DGS Parent Window",false)	--Create a window
DGS:dgsMoveTo(parent,400,200,false,false,"OutQuad",2000)  --Set Animation
setTimer(function()
	if DGS:dgsIsMoving(parent) then
		outputChatBox("Window is in motion!",0,255,0)
	else
		outputChatBox("Window is at rest!",255,0,0)
	end
end,1000,3)

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Arrow List

Browser

Button

Check Box

Combo Box

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D