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 Slider is set to blue all Sliders 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."

GetSliderBgImage(ID)

Returns Background ID or -1.

GetSliderHeight(ID)

Returns Height.

GetSliderWidth(ID)

Returns Width.

SetSliderBgColor(ID,Color)

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

SetSliderBGImage(ID,ImageID)

`Accepts Integer, Sets Background image.

SetSliderBorderWidth(ID,Width)

`Accepts Integer, Sets Border Width.

SetSliderDragAndDrop(ID,Bool)

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

SetSliderHoverState(ID)

Returns 1 if Slider is being hovered, else 0.

SetSliderVisible(ID,Boolean)

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

GetSliderText(ID)

Returns Text String or -1

SetSliderDepth(ID,Depth)

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

SetSliderHeight(ID,Height)

`Accepts integer sets the height.

SetSliderWidth(ID,Width)

Accepts integer sets the width.

SetSliderSize(ID,Width,Height)

Accepts integer sets the width and height.

SetSliderPaddingWidth(ID,Width)

`Accepts Integer, Sets Padding Width.

SetSliderPaddingColor(ID,Color)

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

SetSliderBorderColor(ID,Color)

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

SetSliderColor(ID,Integer)

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

SetSliderAlpha(ID,AlphaValue)

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

SetSliderEditMode(ID,Bool)

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

SetSliderToolTip(ID,String)

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

SetSliderDrag(ID,Bool)

`Accepts integer 0-1,Enables Dragging

SetSliderResize(ID,Bool)

`Accepts integer 0-1,Enables Resizing

SetSliderActivateMode(ID,Bool)

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

SetSliderHighlight(ID,Bool)

`Accepts Integer 1-0, Enables Highlighting