DgsIsAlphaing

From Multi Theft Auto: Wiki

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

Syntax

table dgsIsAlphaing ( 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:dgsSetAlpha(parent,0)
DGS:dgsAlphaTo(parent,1,false,"OutQuad",2000)  --set alpha with animation effect.
setTimer(function()
	if DGS:dgsIsAlphaing(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