• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.1425 秒)

1. 请问如何给ui下所有的button加一个点击监听事件? [ 100%]

....stage.on(Laya.Event.CLICK, this, function(res:Laya.Event){ if (res.target instanceof Laya.Button){ // click button } }) 2018-12-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 183*****288 相关问题 两个对象new了一个相同的...

来源: Laya_社区 发布时间: 20180706

2. Laya中Button等组件lose skin的问题 [ 72%]

...oreCache===void 0)&& (ignoreCache=false);         if ((url instanceof Array))return this._loadAssets(url,complete,progress,type,priority,cache,group);         var content=Loader.getRes(url);         if (content !=null){             Laya.timer.frameOnce(1,n...

来源: Laya_社区 发布时间: 20191122

3. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 66%]

...完成之后的回调函数 if (item.onComplete && item.onComplete instanceof Laya.Handler) { item.onComplete.runWith(content); } if (!content) success = false; if (loadedCount === itemCount && complete) { complete.runWith(success); } } function loadProgress(item, value) { if (progre...

来源: Laya_社区 发布时间: 20171226