chexiongsheng / xuui Goto Github PK
View Code? Open in Web Editor NEWxLua的mvvm框架,支持ugui,ngui,fairyGUI。。。
License: MIT License
xLua的mvvm框架,支持ugui,ngui,fairyGUI。。。
License: MIT License
两个module去bind同一个data的话,只有第一个生效
MultiFields 之前是用于什么功能的 翻项目里面 貌似没对这个字段的支持啊
例如背包系统,包含一个Scroll View, 其中每项是不复杂的Item , 怎么进行绑定呢?
看了下XUUI,按模块热重载的设计感觉很赞,配合FileSystemWatcher+lua可以实现做网页一样边改代码边看效果的体验了,不用重启在做UI方面能提升的效率是相当可观的
Adapter那块的设计不太理解,目前看起来是一个uGUI的组件对应一个Adapter?
以Image为例,可以实现一个类似ImageAdapterSprite:DataConsumer这样去绑定组件上的精灵,那么Image上的其他属性也这样实现的话,这个类的数量好像会爆炸...
在思路1里,在复杂UI界面GetComponentsInChildren的运行时开销可能会有点浪费?
而且一个gameObject上的MonoBehaviour挂多了,反序列化的时间也会变长吧。
思路2的话可以采用预生成+池回收的方式来管理各种RawAdapter,目前没想到有什么太大的问题
module之间可以嵌套吗,比如一个玩家列表,单个玩家的视图逻辑通常是作为组件重用的,用XUUI的话怎么做更优雅一些?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.