API FadeLookup

From Vendetta Lua
Jump to: navigation, search

FadeLookup

Definition:
FadeLookup(userdata control) -> table fi
Description:
Get a fade info table of a control that is currently being faded.
Arguments:
control faded iup control
Returns
fi fade info table or nil if the given control isn't currently being faded
fi.timetofade time to fade in seconds
fi.startalpha alpha value before fading (0-1)
fi.endalpha alpha value after fading(0-1)
fi.endfunc function to call when done
fi.endfuncargs table with arguments for fi.endfunc
fi.counter elapsed fade time
fi.control control that is being faded
Example:
see Fadecontrol