|
|
|
[原创]发一个自己的dui 库 demo
是啊 qt的确很好 有自己的一套脚本,主要是他自成一体,如果用qt 最好是全部用qt 迅雷那套 当初项目主管和我一起看的网上的文档 ,刚看到的时候很惊艳,在我们才发觉问题并决定解决的时候 迅雷已经有成熟的解决方案了,真是落后一个时代 幸亏不开源 要是开源我也不会想着自己写 现在摸索了几个月 磕磕碰碰的算是有个demo了 真要有实用价值估计还得有段时间 |
|
|
|
[原创]发一个自己的dui 库 demo
duilib主要已经没有维护了, 另外 有个需求是 无窗口UI 比如某些做游戏破解的 爱在游戏里放自己logo 那么如何嵌进游戏,duilib 我记得没错的话本质还是窗口子窗口 那么嵌入游戏特别是全屏模式就不合适了, 这就需要off screen了,这也是为什么 我提供位图的原因 只要把位图数据存到纹理中 再贴到d3d或者opengl中就可以,类似足球经理 内嵌浏览器就是拿浏览器位图贴进去 而不是从3d引擎内部 自己维护一个浏览器,这2者的复杂度天壤之别 从这个需求来讲 不能直接提供位图的UI框架是不行的, soui 代码没详细看,但它即使现在不能提供位图 略微做些修改就可以了 其他还有些写控件遇到一些问题 就不详细说了,正是基于这些问题 才尝试放弃传统的继承基类写自定义控件的方法, 示例代码里的 按钮其实是 area标签 text标签 shape标签组合出来的 而不是有个封装了C对象的lua对象,再有个button对象继承这个lua对象 怎么说呢 更类似于html css的p标签 img标签组合出一个按钮 在设计里 我更习惯称 基本标签为基础元素而 bolt称之为原子对象 单纯的写ui是一个非常简单的事情,如果够洒脱 直接用cocos2d来写就行了 |
|
[原创]发一个自己的dui 库 demo
效果图 直接下载附件在out目录下有编译好的exe 直接运行就可以 文档暂时没有 因为目前实现的功能太弱,未来的改动会比较大 现在写文档只能是为将来删文档 改文档做准备 但用法比较简单包含一个头文件 用XML创建节点就可以了 具体交互 看示例代码 |
|
[原创]发一个自己的dui 库 demo
怎么说呢 各有长处 写个UI是因为在实际开发中遇到了一些问题 这些问题迅雷bolt也同样遇到了,由于bolt不开源 才动心思写一个出来 仅仅写UI的话很简单 如何方便的写UI 才是我要寻找的东西 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值