Duilib中button与 option按下时图片显示问题

button按钮设置按压的图片时:

下面是错误的

<Button name="signature_btn" text = "签名内容" float="true" pos="150,100,0,0," width="70" height="55" textcolor="ff008000" pushedtextcolor="#FFFF0000" disabledtextcolor="#FFA7A6AA" align="center" selectedimage="pushedimage.png"/>

原因:1.对于button按钮 按钮的图标再选中时 为
pushedimage="pushed.png"
而不是selectedimage="pushedimage.png"
并且,selectedimage中名字也错了
Duilib中button与 option按下时图片显示问题_第1张图片

、option按钮 设置按下图片时

<Option name = "fxshell"  text = "加壳" textcolor = "00FFFFFF" float = "true" pos = "20 30 0 0" width = "70"  height = "55" pushedtextcolor="#FFFF0000" disabledtextcolor="#FFA7A6AA" align="center" group = "cno" selectedimage="selected.png" selected = "true"/>

你可能感兴趣的:(Duilib)