World of Warcraft Forever API · SimpleSliderAPI.md, for your AI
SimpleSliderAPI (widget methods)
19 functions, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
Disable
self:Disable()
Enable
self:Enable()
GetMinMaxValues
minValue, maxValue = self:GetMinMaxValues()
Returns
minValue | number | |
|---|---|---|
maxValue | number |
GetObeyStepOnDrag
isObeyStepOnDrag = self:GetObeyStepOnDrag()
Returns
isObeyStepOnDrag | bool |
|---|
GetOrientation
orientation = self:GetOrientation()
Returns
orientation | Orientation |
|---|
GetStepsPerPage
stepsPerPage = self:GetStepsPerPage()
Returns
stepsPerPage | number |
|---|
GetThumbTexture
texture = self:GetThumbTexture()
Returns
texture | SimpleTexture |
|---|
GetValue
value = self:GetValue()
Returns
value | number |
|---|
GetValueStep
valueStep = self:GetValueStep()
Returns
valueStep | number |
|---|
IsDraggingThumb
isDraggingThumb = self:IsDraggingThumb()
Returns
isDraggingThumb | bool |
|---|
IsEnabled
enabled = self:IsEnabled()
Returns
enabled | bool |
|---|
SetEnabled
self:SetEnabled(enabled)
Arguments
enabled | bool |
|---|
SetMinMaxValues
self:SetMinMaxValues(minValue, maxValue)
Arguments
minValue | number | |
|---|---|---|
maxValue | number |
SetObeyStepOnDrag
self:SetObeyStepOnDrag(obeyStepOnDrag)
Arguments
obeyStepOnDrag | bool |
|---|
SetOrientation
self:SetOrientation(orientation)
Arguments
orientation | Orientation |
|---|
SetStepsPerPage
self:SetStepsPerPage(stepsPerPage)
Arguments
stepsPerPage | number |
|---|
SetThumbTexture
self:SetThumbTexture(asset)
Arguments
asset | TextureAsset |
|---|
SetValue
self:SetValue(value, [treatAsMouseEvent])
Arguments
value | number | |
|---|---|---|
treatAsMouseEvent | bool default false |
SetValueStep
self:SetValueStep(valueStep)
Arguments
valueStep | number |
|---|