XUIRBands()

new XUIRBands()

Methods

AddPicture(strPath)

添加一张图片
Parameters:
Name Type Description
strPath ImageProp 图片路径

DeleteImageByIndex(nIndex)

删除一个图片
Parameters:
Name Type Description
nIndex Number 索引
Properties:
Name Type Description
ByIndex Number 5

SetBgColor(strColor)

背景颜色
Parameters:
Name Type Description
strColor String 16进制颜色值
Properties:
Name Type Description
BgColor Color "0xfff11111"

SetBgImage(strPath)

背景图片
Parameters:
Name Type Description
strPath ImageProp 图片地址
Properties:
Name Type Description
BgImage ImageProp "common_3d/XUIRBands/img/case1.png"

SetGroundBgColor(strColor)

底部背景颜色
Parameters:
Name Type Description
strColor String 16进制颜色值
Properties:
Name Type Description
GroundBgColor Color "0xff333333"

SetGroundBgImage(strPath)

底部背景图片
Parameters:
Name Type Description
strPath String 图片地址

SetGroundBgShape()

设置底部样式形状为圆

SetGroundBgSize(nWidth, nHeight)

底部大小
Parameters:
Name Type Description
nWidth Number 宽度
nHeight Number 高度
Properties:
Name Type Description
GroundBgSize Collection [1,1]

SetImageGap(nGap)

间距大小
Parameters:
Name Type Description
nGap Number 间距
Properties:
Name Type Description
ModSpacing Number 180

SetImagePathByIndex(nIndex, strPath)

修改其中一个图片路径
Parameters:
Name Type Description
nIndex Number 索引
strPath String 图片路径
Properties:
Name Type Description
DrewPathByIndex Collection [3,"common_3d/XUIRbands/images/case1.png"]

SetImageSize(nWidth, nHeight)

图片大小
Parameters:
Name Type Description
nWidth Number 宽度
nHeight Number 高度
Properties:
Name Type Description
ImageSize Collection [120,170]

SetImageSizeByIndex(nIndex, nWidth, nHeight)

获取其中一个图片修改样式
Parameters:
Name Type Description
nIndex Number 索引
nWidth Number 宽度
nHeight Number 高度
Properties:
Name Type Description
FewDrawStyleByIndex Collection [2,150,180]

SetImgBorderColorByIndex(nIndex, strColor)

修改某一个图片的边框颜色
Parameters:
Name Type Description
nIndex Number 索引
strColor String 16进制颜色值
Properties:
Name Type Description
ImgBorderColorByIndex Collection [2,"0xffffffff"]

SetImgsBorderColor(strColor)

图片边框颜色
Parameters:
Name Type Description
strColor String 16进制颜色值
Properties:
Name Type Description
ImgsBorderColor Color "0xffffffff"

SetImgShadowByIndex(nIndex, strColor)

修改某一个图片的阴影颜色
Parameters:
Name Type Description
nIndex Number 索引
strColor String 16进制颜色值
Properties:
Name Type Description
ImgShadowByIndex Collection [1,"0xffffffff"]

SetImgShapeByIndex(nIndex)

设置其中一个图片形状为圆形
Parameters:
Name Type Description
nIndex Number 索引

SetImgsShape()

设置所有图片形状为圆形

SetIsDrag(bDrag)

是否可拖拽
Parameters:
Name Type Description
bDrag
Properties:
Name Type Description
bDrag Boolean true

SetIsScroll(bScroll)

是否有滚动事件
Parameters:
Name Type Description
bScroll Boolean
Properties:
Name Type Description
bScroll Boolean true

SetLaterContent(strContent)

底部文字内容
Parameters:
Name Type Description
strContent String 文字内容
Properties:
Name Type Description
LaterContent String "UIPower—界面设计"

SetLaterStyle(strColor, nFontSize)

底部文字样式
Parameters:
Name Type Description
strColor String 16进制颜色值
nFontSize Number 字体大小
Properties:
Name Type Description
LaterStyle Collection ["0xffff0000",15]

SetLaterVisible(bVisible)

底部文字是否可见
Parameters:
Name Type Description
bVisible Boolean true为显示 false为隐藏
Properties:
Name Type Description
LaterDisplay Boolean true

SetMaxRadius(nMax)

半径的最大值
Parameters:
Name Type Description
nMax Number
Properties:
Name Type Description
MaxRadius Number 450

SetPicsShadow(strColor)

图片的阴影颜色
Parameters:
Name Type Description
strColor String 16进制颜色值
Properties:
Name Type Description
PicsShadow Color "0xffffffff"

SetPlay(bPlay)

动画是否播放
Parameters:
Name Type Description
bPlay Boolean
Properties:
Name Type Description
Play Boolean true

SetRadius(nRadius)

文本半径
Parameters:
Name Type Description
nRadius Number
Properties:
Name Type Description
Radius Number 180

SetRotatingDirection(bForward)

是否正转
Parameters:
Name Type Description
bForward Boolean
Properties:
Name Type Description
RotatingDirection Boolean true

SetRotatingSleep(nSleep)

旋转速度
Parameters:
Name Type Description
nSleep Number
Properties:
Name Type Description
RotatingSleep Number 60