XUIPercentageList()

Methods

Cleardata()

一次性输入所有数据

SetAttackDataBgColor(strColor)

攻方数值背景色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
AttackDataBgColor Color "0xff64276F"

SetAttackDataColor(strColor)

攻方数值色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
AttackDataColor Color "0xffF52648"

SetAttackIcon(strImg)

攻方icon
Parameters:
Name Type Description
strImg ImageProp 图片
Properties:
Name Type Description
AttackIcon ImageProp "websiteCase/XUIPercentageList/images/icon_gongji.png"

SetAttackSignColor(strColor)

攻方标记色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
AttackSignColor Color "0xffFF99B1"

SetBgColor(strColor)

单元背景颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
BgColor Color "0x00000000"

SetBgImg(strImg)

单元背景图
Parameters:
Name Type Description
strImg ImageProp 图片
Properties:
Name Type Description
BgImg ImageProp "websiteCase/XUIPercentageList/images/bg_gongfang.png"

SetDefenseDataBgColor(strColor)

守方数值背景色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
DefenseDataBgColor Color "0xff64276F"

SetDefenseDataColor(strColor)

攻方数值色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
DefenseDataColor Color "0xff4674FF"

SetDefenseIcon(strImg)

守方icon
Parameters:
Name Type Description
strImg ImageProp 图片
Properties:
Name Type Description
DefenseIcon ImageProp "websiteCase/XUIPercentageList/images/icon_dunpai.png"

SetDefenseSignColor(strColor)

守方标记色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
DefenseSignColor Color "0xffB6C8FF"

SetDrawBgColor(bDraw)

是否绘制单元背景色
Parameters:
Name Type Description
bDraw Boolean true背景色,false背景图
Properties:
Name Type Description
DrawBgColor Boolean false

SetTextColor(strColor)

文字颜色
Parameters:
Name Type Description
strColor String 颜色
Properties:
Name Type Description
TextColor Color "0xffffffff"

SetTextSize(nSize)

文字大小
Parameters:
Name Type Description
nSize Number 颜色
Properties:
Name Type Description
TextSize Number 14