SmerfApi Documentation

Home

Getting Started

*Defaults
All Gadget have a default setting. Setting default colors,sizes and positions for gadget Can save time when creating new gadgets. For example, A if the defaut color for a Api_Commands is set to blue all Api_Commandss will be set with the color blue when created. Defaults are not part of the api language because it is much quicker to edit each type indevidually. The #include. File named "Default can be edited manually."

GetApi_CommandsBgImage(ID)

Returns Background ID or -1.

GetApi_CommandsHeight(ID)

Returns Height.

GetApi_CommandsWidth(ID)

Returns Width.

SetApi_CommandsBgColor(ID,Color)

`Accepts color from makecolor(),Sets Background color of sprite, Accepts Alpha value.

SetApi_CommandsBGImage(ID,ImageID)

`Accepts Integer, Sets Background image.

SetApi_CommandsBorderWidth(ID,Width)

`Accepts Integer, Sets Border Width.

SetApi_CommandsDragAndDrop(ID,Bool)

` Accepts Integer 1-0, 1 enalbes Api_Commands to be dropped onto other gadgets, 0 false.

SetApi_CommandsHoverState(ID)

Returns 1 if Api_Commands is being hovered, else 0.

SetApi_CommandsVisible(ID,Boolean)

`Sets Api_Commands visible or hidden 1 visible, 0 hidden.

GetApi_CommandsText(ID)

Returns Text String or -1

SetApi_CommandsDepth(ID,Depth)

Accepts Integer, Forces Api_Commands to add or subtract depth to its depth sorting.

SetApi_CommandsHeight(ID,Height)

`Accepts integer sets the height.

SetApi_CommandsWidth(ID,Width)

Accepts integer sets the width.

SetApi_CommandsSize(ID,Width,Height)

Accepts integer sets the width and height.

SetApi_CommandsPaddingWidth(ID,Width)

`Accepts Integer, Sets Padding Width.

SetApi_CommandsPaddingColor(ID,Color)

`Accepts color from makecolor(),Sets Padding color of sprite, Accepts Alpha value.

SetApi_CommandsBorderColor(ID,Color)

`Accepts color from makecolor(),Sets Border color of sprite, Accepts Alpha value.

SetApi_CommandsColor(ID,Integer)

`Accepts color from makecolor(), Sets entire sprite to specified color.

SetApi_CommandsAlpha(ID,AlphaValue)

`Accepts integer 0-255, Sets entire Sprite to the specified alpha value

SetApi_CommandsEditMode(ID,Bool)

`Accepts Integer 1-0, overides settings enables all api features,"Api_Commands action will be disabled while in edit mode"

SetApi_CommandsToolTip(ID,String)

Accepts String, Sets Api_Commands to generate and destroy a tooltip preview on hover. Hover Must be enabled see SetApi_CommandsActivateHover(ID,Bool)

SetApi_CommandsDrag(ID,Bool)

`Accepts integer 0-1,Enables Dragging

SetApi_CommandsResize(ID,Bool)

`Accepts integer 0-1,Enables Resizing

SetApi_CommandsActivateMode(ID,Bool)

`Accepts integer 0-1, (1) Enables Hover to activate, "0" Default Behavior

SetApi_CommandsHighlight(ID,Bool)

`Accepts Integer 1-0, Enables Highlighting