Dgs3DImageIsAttached: Difference between revisions
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 23: | Line 23: | ||
This example is making export function to check weather the player is talking or not: | This example is making export function to check weather the player is talking or not: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
dgs = exports.dgs | |||
function isPlayerTalking(player) | function isPlayerTalking(player) | ||
local player = player or localPlayer; | local player = player or localPlayer; | ||
Line 30: | Line 32: | ||
==See Also== | ==See Also== | ||
{{ | {{DGS 3D Image Functions}} |
Revision as of 02:18, 12 August 2022
This functions checks whether or not 3DImage element is attached to another element.
Syntax
bool isElementAttached ( dgsElement the3DImageElement )
OOP Syntax Help! I don't understand this!
- Method: element:isAttached(...)
Required Arguments
- the3DImageElement : The element to check for attachment.
Returns
Returns true if the specified element is attached to another element, false if it is not attached or nil if an improper argument was passed.
Example
This example is making export function to check weather the player is talking or not:
dgs = exports.dgs function isPlayerTalking(player) local player = player or localPlayer; return dgs:dgs3DImageIsAttached(icons[player]); -- this table inside another client file . end
See Also
- dgsCreate3DImage
- dgs3DImageSetSize
- dgs3DImageGetSize
- dgs3DImageSetImage
- dgs3DImageGetImage
- dgs3DImageAttachToElement
- dgs3DImageIsAttached
- dgs3DImageDetachFromElement
- dgs3DImageSetAttachedOffsets
- dgs3DImageGetAttachedOffsets
- dgs3DImageGetNativeSize
- dgs3DImageSetUVPosition
- dgs3DImageGetUVPosition
- dgs3DImageSetUVSize
- dgs3DImageGetUVSize