2014-09-11 这是第一篇博客,纪念那些逝去的日子。
以下是从DuiLib内总结出来的Image属性以及说明
<IMAGE>
<Attribute name="name" default="" type="STRING" comment="标识名"/>
<Attribute name="restype" default="" type="STRING" comment="资源类型,为零情况下使用file属性,非零则是Exe内的资源,使用res属性"/>
<Attribute name="mask" default="" type="COLOR" comment="屏蔽颜色"/>
</IMAGE>
<IMAGE_EX parent="IMAGE" comment="图片格式">
<Attribute name="image" default="" type="BOOL" comment="图片类型:2014-09-03 'gif'==GIF图片:玛德专用字段"/>
<Attribute name="corner" default="0,0,0,0" type="RECT" comment="UI内绘制区的缩放的九宫格边距,左上右下"/>
<Attribute name="dest" default="0,0,0,0" type="RECT" comment="应该是在UI内的目标绘制区,以UI的左上坐标为起点"/>
<Attribute name="file" default="" type="STRING" comment="图片文件名:磁盘位置,一般是相对路径"/>
<Attribute name="fade" default="0XFF" type="INT" comment="应该是图片的透明度"/>
<Attribute name="hole" default="false" type="BOOL" comment="是否绘制中间部分,false绘制,true不绘制"/>
<Attribute name="res" default="" type="STRING" comment="Exe资源ID"/>
<Attribute name="source" default="0,0,0,0" type="RECT" comment="应该是资源图片的那部分区域要绘制到UI上"/>
<Attribute name="xtiled" default="false" type="BOOL" comment="X轴平铺?"/>
<Attribute name="ytiled" default="false" type="BOOL" comment="Y轴平铺?"/>
</IMAGE_EX>
玛德 MDui_EditImage的主要作用就是使用MDui提供的界面和Lua逻辑来编辑这些属性,并且直观的呈现给你。帮助你快速上手。
获取可执行程序请加QQ群[371989312]群共享下载。
MDuiLib玛德界面交流
371989312