Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

VersionFunctionNote
 ActivateEditBox(editboxID) 
 CallEventScripts(eventName, argument1) 
 CallHotkeyScripts(action) 
 CallUpdateScripts() 
 CallWidgetEventScripts(widget, eventName, ...) 
 CancelEditBoxInput(editboxID) 
 ConfirmEditBoxInput(editboxID) 
added in 4.00 Beta 1
DrawCircle(radiusx, radiusy, centerx, centery, z, color) 
added in 4.00 Beta 1
DrawRect(width, height, offsetx, offsety, angle, z, color) 
added in 4.00 Beta 1
DrawTriangle(width, height, offsetx, offsety, angle, z, color) 
 GetRenderTargetMousePosition(renderTargetID) 
 GetRenderTargetTexture(renderTargetID) 
 GetSliderValue(sliderID) 
 GetTopRow(tableID) 
 GetUsableTableWidth(width, offsetx, numColumns, hasScrollBar) 
added in 4.00 Beta 1
HideAllCircles() 
added in 4.00 Beta 1
HideAllRects() 
added in 4.00 Beta 1
HideAllShapes() 
added in 4.00 Beta 1
HideAllTriangles() 
added in 4.00 Beta 1HideCircle(id) 
added in 4.00 Beta 1
HideRect(id) 
added in 4.00 Beta 1
HideTriangle(id) 
added in 4.00 Beta 1
IsFullscreenWidgetSystem() 
 RegisterEvent(eventName, scriptFunction) 
 RemoveScript(widget, handle, scriptFunction) 
 SelectColumn(tableID, column) 
 SelectRow(tableID, row) 
 

SetScript([widget, ]handle, scriptFunction)
Sets a function to be called upon a triggering handle. If a widget element is specified, the function is called when the handle is triggered on the widget element.

If no widget element is specified the handle is a global handle.

The following global handles are supported:

  • onUpdate
    (triggers on a regular basis)
  • onHotkey
    ((warning)unsupported for mods)

In addition to the global handles the following widget element related handles are supported:

Widget Elementhandle
buttononButtonDown
buttononButtonMouseOut
buttononButtonMouseOver
buttononButtonSelect
checkboxonCheckBoxMouseOut
checkboxonCheckBoxMouseOver
checkboxonCheckBoxSelect
button, checkbox, rendertarget, tableonClick
button, rendertargetonDoubleClick
frameonHide
frameonInteractiveElementChanged
rendertargetonMouseDown
rendertargetonMouseUp
rendertargetonMiddleMouseDown
rendertargetonMiddleMouseUp
rendertargetonRightMouseDown
rendertargetonRightMouseUp
tableonRowChanged
table, slideronScrollBarDown
table, slideronScrollBarOver
slider, tableonScrollBarUp
rendertargetonScrollDown
rendertargetonScrollUp
tableonTableMouseOut
tableonTableMouseOver
editboxonUpdateText
 
 SetTopRow(tableID, row) 
 UnregisterEvent(eventName, scriptFunction) 
  • No labels