AR_Engine_SDK
|
Functions | |
function XUIButton | Create () end |
function XUIButton | Create (strNormalTexture, eTextureType) end |
function XUIButton | new () end |
function XUIButton | Draw (pWorld, unParentFlags) end |
function XUIButton | SetContentSize (vContentSize) end |
function XUIButton | SetAnchorPoint (vAnchorPoint) end |
function XUIButton | SetCheckable (bCheckable) end |
function XUIButton | IsCheckable () end |
function XUIButton | SetChecked (bChecked) end |
function XUIButton | IsChecked () end |
function XUIButton | SetEnableAnim (bSet) end |
function XUIButton | IsEnableAnim () end |
function XUIButton | SetAnimScale (fScale) end |
function XUIButton | GetAnimScale () end |
function XUIButton | SetAnimTrans (vTrans) end |
function XUIButton | GetAnimTrans () end |
function XUIButton | IsEnableAudio () end |
function XUIButton | SetEnableAudio (bSet) end |
function XUIButton | GetAudioPath () end |
function XUIButton | SetAudioPath (strAudioPath) end |
function XUIButton | GetAudioTriggerType () end |
function XUIButton | SetAudioTriggerType (eType) end |
function XUIButton | PlayAudio () end |
function XUIButton | StopAudio () end |
function XUIButton | GetImage () end |
function XUIButton | LoadNormalTexture (strTexture, eTextureType) end |
function XUIButton | LoadPressedTexture (strTexture, eTextureType) end |
function XUIButton | LoadDisabledTexture (strTexture, eTextureType) end |
function XUIButton | LoadCheckedTexture (strTexture, eTextureType) end |
function XUIButton | GetNormalTexture () end |
function XUIButton | GetPressedTexture () end |
function XUIButton | GetDisabledTexture () end |
function XUIButton | GetCheckedTexture () end |
Variables | |
XUIButton = {} | |
function xes__HandEventListener Create | ( | ) |
创建并返回一个空的控件实例的指针
创建一个空的向导页组。
创建一个XUILayoutParameter实例,并返回
创建一个XUILayoutParameter实例,并返回
创建并返回一个空的控件实例的指针
创建并返回一个页头实例
创建并返回一个空的控件实例的指针
创建监听器
xes_FaceEventListener_Create00
xes_CVBodyEventListener_Create00
xes_CVObjectEventListener_Create00
xes_AccelerationEventListener_Create00
xes_AttitudeEventListener_Create00
xes_HandEventListener_Create00
function XUIButton Create | ( | strNormalTexture | , |
eTextureType | |||
) |
创建并返回一个控件实例
strNormalTexture | string 常态背景图片 |
eTextureType | number 相对路径/绝对路径 |
function XUIButton Draw | ( | pWorld | , |
unParentFlags | |||
) |
重写这个方法来绘制你自己的节点
pWorld | IXRenderSet 给定的世界指针 |
unParentFlags | number 渲染器标签 |
function XUIButton GetAnimScale | ( | ) |
XUIButton_GetAnimScale00
function XUIButton GetAnimTrans | ( | ) |
XUIButton_GetAnimTrans00
function XUIButton GetAudioPath | ( | ) |
XUIButton_GetAudioPath00
function XUIButton GetAudioTriggerType | ( | ) |
XUIButton_GetAudioTriggerType00
function XUIButton GetCheckedTexture | ( | ) |
XUIButton_GetCheckedTexture00
function XUIButton GetDisabledTexture | ( | ) |
获取禁用状态纹理
function XUIButton GetNormalTexture | ( | ) |
获取常态纹理
function XUIButton GetPressedTexture | ( | ) |
获取按下状态纹理
function XUIButton IsCheckable | ( | ) |
XUIButton_IsCheckable00
function XUIButton IsChecked | ( | ) |
XUIButton_IsChecked00
function XUIButton IsEnableAnim | ( | ) |
XUIButton_IsEnableAnim00
function XUIButton IsEnableAudio | ( | ) |
XUIButton_IsEnableAudio00
function XUIButton LoadCheckedTexture | ( | strTexture | , |
eTextureType | |||
) |
XUIButton_LoadCheckedTexture00
strTexture | string |
eTextureType | number |
function XUIButton LoadDisabledTexture | ( | strTexture | , |
eTextureType | |||
) |
加载禁用状态纹理
strTexture | string 禁用状态纹理的名字 |
eTextureType | number 纹理类型 |
function XUIButton LoadNormalTexture | ( | strTexture | , |
eTextureType | |||
) |
加载常态纹理
strTexture | string 正常状态纹理的名字 |
eTextureType | number 纹理类型 |
function XUIButton LoadPressedTexture | ( | strTexture | , |
eTextureType | |||
) |
加载按下状态纹理
strTexture | string 按下状态纹理的名字 |
eTextureType | number 纹理类型 |
function XUIButton PlayAudio | ( | ) |
XUIButton_PlayAudio00
function XUIButton SetAnchorPoint | ( | vAnchorPoint | ) |
设置锚点,用百分比表示。 一个锚点是所有的转换和定位操作发生的点。 它就像在节点上连接其父类的大头针。 锚点是标准化的,就像百分比一样。(0,0)表示左下角,(1,1)表示右上角。 但是你可以使用比(1,1,)更高的值或者比(0,0)更低的值。 默认的锚点是(0.5,0.5),因此它开始于节点的中心位置
vAnchorPoint | XVECTOR2 节点的锚点 |
function XUIButton SetAnimScale | ( | fScale | ) |
XUIButton_SetAnimScale00
fScale | number |
function XUIButton SetAnimTrans | ( | vTrans | ) |
XUIButton_SetAnimTrans00
vTrans | XVECTOR2 |
function XUIButton SetAudioPath | ( | strAudioPath | ) |
XUIButton_SetAudioPath00
strAudioPath | string |
XUIButton_SetAudioTriggerType00
eType | number |
function XUIButton SetCheckable | ( | bCheckable | ) |
XUIButton_SetCheckable00
bCheckable | boolean |
function XUIButton SetChecked | ( | bChecked | ) |
XUIButton_SetChecked00
bChecked | boolean |
function XUIButton SetContentSize | ( | vContentSize | ) |
设置不转换节点的大小。 contentSize依然是相同的,无论节点是缩放或者旋转。 所有的节点都有大小。图层和场景有相同的屏幕大小。
vContentSize | XVECTOR2 未转换节点的大小 |
function XUIButton SetEnableAnim | ( | bSet | ) |
XUIButton_SetEnableAnim00
bSet | boolean |
function XUIButton SetEnableAudio | ( | bSet | ) |
XUIButton_SetEnableAudio00
bSet | boolean |
function XUIButton StopAudio | ( | ) |
XUIButton_StopAudio00
XUIButton = {} |