OnDgsRemoteImageLoad: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client event}} __NOTOC__ This event is called when the DGS QRCode is loaded. ==Parameters== <syntaxhighlight lang="lua"> element QRCode </syntaxhighlight> ==Example== <sy...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Client event}} | {{Client event}} | ||
__NOTOC__ | __NOTOC__ | ||
This event is called when the DGS | This event is called when the DGS Remote Image is loaded. | ||
==Parameters== | ==Parameters== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
element | element remoteImage | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 12: | Line 12: | ||
DGS = exports.dgs --get exported functions from dgs | DGS = exports.dgs --get exported functions from dgs | ||
local | local imageTexture = DGS:dgsCreateRemoteImage("https://wiki.multitheftauto.com/images/thumb/2/2b/DGS_Logo.png/800px-DGS_Logo.png") --Source Texture | ||
local image = DGS:dgsCreateImage( | local image = DGS:dgsCreateImage(0, 0, 400, 200, imageTexture, false) | ||
outputChatBox(DGS: | DGS:dgsCenterElement(image) -- center image | ||
addEventHandler(" | outputChatBox(DGS:dgsGetRemoteImageLoadState(imageTexture ) and "Loaded" or "Loading") | ||
outputChatBox(DGS: | addEventHandler("onDgsRemoteImageLoad",imageTexture ,function() | ||
outputChatBox(DGS:dgsGetRemoteImageLoadState(source) and "Loaded" or "Loading") | |||
end,false) | end,false) | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 12:32, 10 May 2020
This event is called when the DGS Remote Image is loaded.
Parameters
element remoteImage
Example
DGS = exports.dgs --get exported functions from dgs local imageTexture = DGS:dgsCreateRemoteImage("https://wiki.multitheftauto.com/images/thumb/2/2b/DGS_Logo.png/800px-DGS_Logo.png") --Source Texture local image = DGS:dgsCreateImage(0, 0, 400, 200, imageTexture, false) DGS:dgsCenterElement(image) -- center image outputChatBox(DGS:dgsGetRemoteImageLoadState(imageTexture ) and "Loaded" or "Loading") addEventHandler("onDgsRemoteImageLoad",imageTexture ,function() outputChatBox(DGS:dgsGetRemoteImageLoadState(source) and "Loaded" or "Loading") end,false)
See Also
General
- onDgsBlur
- onDgsCreate
- onDgsCursorTypeChange
- onDgsCursorStateChange
- onDgsDestroy
- onDgsElementRender
- onDgsElementMove
- onDgsElementSize
- onDgsElementEnter
- onDgsElementLeave
- onDgsFocus
- onDgsKey
- onDgsPositionChange
- onDgsPreRender
- onDgsRender
- onDgsElementScroll
- onDgsSizeChange
- onDgsTextChange
- onDgsWindowClose
- onDgsPropertyChange
Check Box
Combo Box
Drag'N Drop
Edit
Grid List
Menu
Selector
Mouse
- onDgsMousePreClick
- onDgsMouseClick
- onDgsMouseClickDown
- onDgsMouseClickUp
- onDgsMouseDrag
- onDgsMouseDoubleClick
- onDgsMouseDoubleClickDown
- onDgsMouseDoubleClickUp
- onDgsMouseDown
- onDgsMouseHover
- onDgsMouseEnter
- onDgsMouseLeave
- onDgsMouseMultiClick
- onDgsMouseMove
- onDgsMouseStay
- onDgsMouseUp
- onDgsMouseWheel
Radio Button
Switch Button
Tab
Animation
Plugin
Media
- onDgsMediaPlay
- onDgsMediaPause
- onDgsMediaStop
- onDgsMediaLoaded
- onDgsMediaTimeUpdate
- onDgsMediaBrowserReturn
Color Picker
QRCode
Remote Image
This event is called when the DGS Remote Image is loaded.
Parameters
element remoteImage
Example
DGS = exports.dgs --get exported functions from dgs local imageTexture = DGS:dgsCreateRemoteImage("https://wiki.multitheftauto.com/images/thumb/2/2b/DGS_Logo.png/800px-DGS_Logo.png") --Source Texture local image = DGS:dgsCreateImage(0, 0, 400, 200, imageTexture, false) DGS:dgsCenterElement(image) -- center image outputChatBox(DGS:dgsGetRemoteImageLoadState(imageTexture ) and "Loaded" or "Loading") addEventHandler("onDgsRemoteImageLoad",imageTexture ,function() outputChatBox(DGS:dgsGetRemoteImageLoadState(source) and "Loaded" or "Loading") end,false)
See Also
General
- onDgsBlur
- onDgsCreate
- onDgsCursorTypeChange
- onDgsCursorStateChange
- onDgsDestroy
- onDgsElementRender
- onDgsElementMove
- onDgsElementSize
- onDgsElementEnter
- onDgsElementLeave
- onDgsFocus
- onDgsKey
- onDgsPositionChange
- onDgsPreRender
- onDgsRender
- onDgsElementScroll
- onDgsSizeChange
- onDgsTextChange
- onDgsWindowClose
- onDgsPropertyChange
Check Box
Combo Box
Drag'N Drop
Edit
Grid List
Menu
Selector
Mouse
- onDgsMousePreClick
- onDgsMouseClick
- onDgsMouseClickDown
- onDgsMouseClickUp
- onDgsMouseDrag
- onDgsMouseDoubleClick
- onDgsMouseDoubleClickDown
- onDgsMouseDoubleClickUp
- onDgsMouseDown
- onDgsMouseHover
- onDgsMouseEnter
- onDgsMouseLeave
- onDgsMouseMultiClick
- onDgsMouseMove
- onDgsMouseStay
- onDgsMouseUp
- onDgsMouseWheel
Radio Button
Switch Button
Tab
Animation
Plugin
Media
- onDgsMediaPlay
- onDgsMediaPause
- onDgsMediaStop
- onDgsMediaLoaded
- onDgsMediaTimeUpdate
- onDgsMediaBrowserReturn