AR_Engine_SDK
|
#include <XUISlider.h>
函数 | |
function XUISlider | Create () end |
function XUISlider | Create (strBarTexture, strBallNormalTexture, eTexType) end |
function XUISlider | new () end |
function XUISlider | GetBarImage () end |
function XUISlider | GetProgressBarImage () end |
function XUISlider | GetBallImage () end |
function XUISlider | LoadBarTexture (strBarTexture, eTexType) end |
function XUISlider | LoadProgressBarTexture (strProgressBarTexture, eTexType) end |
function XUISlider | LoadBallNormalTexture (strBarNormalTexture, eTexType) end |
function XUISlider | LoadBallPressedTexture (strBarPressedTexture, eTexType) end |
function XUISlider | LoadBallDisabledTexture (strBarDisabledTexture, eTexType) end |
function XUISlider | GetBarTexture () end |
function XUISlider | GetProgressBarTexture () end |
function XUISlider | GetBallNormalTexture () end |
function XUISlider | GetBallPressedTexture () end |
function XUISlider | GetBallDisabledTexture () end |
function XUISlider | SetPercent (nPercent) end |
function XUISlider | GetPercent () end |
function XUISlider | SetMaxPercent (nMaxPercent) end |
function XUISlider | GetMaxPercent () end |
function XUISlider | AddEventListener (callback) end |
function XUISlider | SetBallSize (vSize) end |
function XUISlider | GetBallSize () end |
function XUISlider | PercentChangedEvent (event) end |
变量 | |
XUISlider = {} | |
XUISlider | XUI_ON_PERCENTAGE_CHANGED = 0 |
XUISlider | XUI_ON_SLIDEBALL_DOWN = 0 |
XUISlider | XUI_ON_SLIDEBALL_UP = 0 |
XUISlider | XUI_ON_SLIDEBALL_CANCEL = 0 |
function XUISlider AddEventListener | ( | callback | ) |
@manual xelua_XEngine_XUISlider_AddEventListener_manual XUISlider_AddEventListener_manual
callback | std::function<void(XUINode*, EventType)> |
function XUISlider Create | ( | strBarTexture | , |
strBallNormalTexture | , | ||
eTexType | |||
) |
根据传入的纹理创建一个滑块实例,并返回
strBarTexture | string 滑竿纹理路径 |
strBallNormalTexture | string 滑块球纹理路径 |
eTexType | number 纹理类型 |
function XUISlider GetBallDisabledTexture | ( | ) |
获取滑块球禁用纹理
function XUISlider GetBallNormalTexture | ( | ) |
获取滑块球常态纹理
function XUISlider GetBallPressedTexture | ( | ) |
获取滑块球按下状态纹理
function XUISlider GetBarTexture | ( | ) |
获取滑竿纹理路径名
function XUISlider GetMaxPercent | ( | ) |
获取进度最大百分比
function XUISlider GetPercent | ( | ) |
获取进度百分比
function XUISlider GetProgressBarTexture | ( | ) |
获取进度条纹理路径名
function XUISlider LoadBallDisabledTexture | ( | strBarDisabledTexture | , |
eTexType | |||
) |
加载滑块球禁用态纹理图片
strBarDisabledTexture | string 纹理路径 |
eTexType | number 纹理类型 |
function XUISlider LoadBallNormalTexture | ( | strBarNormalTexture | , |
eTexType | |||
) |
加载滑块球常态纹理图片
strBarNormalTexture | string 纹理路径 |
eTexType | number 纹理类型 |
function XUISlider LoadBallPressedTexture | ( | strBarPressedTexture | , |
eTexType | |||
) |
加载滑块球按下状态纹理图片
strBarPressedTexture | string 纹理路径 |
eTexType | number 纹理类型 |
function XUISlider LoadBarTexture | ( | strBarTexture | , |
eTexType | |||
) |
加载滑竿纹理图片
strBarTexture | string 纹理路径 |
eTexType | number 纹理类型 |
function XUISlider LoadProgressBarTexture | ( | strProgressBarTexture | , |
eTexType | |||
) |
加载进度条纹理图片
strProgressBarTexture | string 纹理路径 |
eTexType | number 纹理类型 |
function XUISlider PercentChangedEvent | ( | event | ) |
进度条被改变的事件响应函数,不需要手动调用。
event | number |
function XUISlider SetMaxPercent | ( | nMaxPercent | ) |
设置进度最大百分比
nMaxPercent | number |
function XUISlider SetPercent | ( | nPercent | ) |
设置进度百分比,取值1-100
nPercent | number |
XUISlider XUI_ON_PERCENTAGE_CHANGED = 0 |
XUISlider XUI_ON_SLIDEBALL_CANCEL = 0 |
XUISlider XUI_ON_SLIDEBALL_DOWN = 0 |
XUISlider XUI_ON_SLIDEBALL_UP = 0 |
XUISlider = {} |