Skip to end of metadata
Go to start of metadata
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.

 

 More details....

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:

handlebuttoncheckboxeditboxframesliderrendertargettable
onButtonDown(tick)(error)(error)(error)(error)(error)(error)
onButtonMouseOut(tick)(error)(error)(error)(error)(error)(error)
onButtonMouseOver(tick)(error)(error)(error)(error)(error)(error)
onButtonSelect(tick)(error)(error)(error)(error)(error)(error)
onCheckBoxMouseOut(error)(tick)(error)(error)(error)(error)(error)
onCheckBoxMouseOver(error)(tick)(error)(error)(error)(error)(error)
onCheckBoxSelect(error)(tick)(error)(error)(error)(error)(error)
onClick(tick)(tick)(error)(error)(error)(tick)(tick)
onDoubleClick(tick)(error)(error)(error)(error)(tick)(error)
onHide(error)(error)(error)(tick)(error)(error)(error)
onInteractiveElementChanged(error)(error)(error)(tick)(error)(error)(error)
onMouseDown(error)(error)(error)(error)(error)(tick)(error)
onMouseUp(error)(error)(error)(error)(error)(tick)(error)
onMiddleMouseDown(error)(error)(error)(error)(error)(tick)(error)
onMiddleMouseUp(error)(error)(error)(error)(error)(tick)(error)
onRightMouseDown(error)(error)(error)(error)(error)(tick)(error)
onRightMouseUp(error)(error)(error)(error)(error)(tick)(error)
onRowChanged(error)(error)(error)(error)(error)(error)(tick)
onScrollBarDown(error)(error)(error)(error)(tick)(error)(tick)
onScrollBarOver(error)(error)(error)(error)(tick)(error)(tick)
onScrollBarUp(error)(error)(error)(error)(tick)(error)(tick)
onScrollDown(error)(error)(error)(error)(error)(tick)(error)
onScrollUp(error)(error)(error)(error)(error)(tick)(error)
onTableMouseOut(error)(error)(error)(error)(error)(error)(tick)
onTableMouseOver(error)(error)(error)(error)(error)(error)(tick)
onUpdateText(error)(error)(tick)(error)(error)(error)(error)


 
 SetTopRow(tableID, row) 
   
   
 UnregisterEvent(eventName, scriptFunction) 

2 Comments

  1. Anonymous

    Can we have more docs on SetScript? Especially all handles it can register for different types of widgets.

    1. I've added some more details on the SetScript() function. Hope that helps a bit to get around how to use that function. If you have further question, just drop a note on this thread in the Forums: http://forum.egosoft.com/viewtopic.php?t=377587