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

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

181. ProgressBar 代码问题 [ 61%]

...popup并且模拟进度条加载 按钮代码: this.testLoadingBar_anim.on(Event.CLICK,this,()=>{     var loading : Onloading = new Onloading();     loading.popup(true);     Laya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onl...

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

182. 关闭指定定时器timer [ 61%]

...器还在继续调用回调,并没有报错。this.StartToRound.on(Laya.Event.CLICK,null,function(){ Laya.timer.loop(10,this,round);//10ms 一秒100次 }); //转动逻辑 function round(){ tlate.rotation+=roundTurnChange(1); console.log(tlate.rotation); } //转动变量变化 function roundTurnCha...

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

183. worldroot [ 61%]

...hildAt(root, 0);   Laya.Physics.I.worldRoot = root;   Laya.stage.on(Laya.Event.CLICK, this, () => { Laya.Physics.I.worldRoot.x -= 50; });   设置worldRoot = 一个新的sprite后, 移动world root ,物理世界不会跟着一起移动 2018-11-26 添加评论 免费帖 --> 分享 微博 QZ...

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

184. 类似于list下的按钮监听 !如何去做。 [ 61%]

...2018-06-28 23:26 给 Sprite 中 按键设置name ,然后通过 Sprite.on(Event.CLICK,this,yfqian_GameUi); public function yfqian_GameUi(e:Event):void{ trace("Sprite:",e.target.name) }

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

185. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 61%]

...ss VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.addEventListene...

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

186. [LayaAir3]list.selectHandler [ 61%]

...e.log(this.btn.selected); }break; shiyang • 2024-10-28 09:48 可以判断event.type == click执行你的逻辑 学思无涯 • 2024-10-28 10:43 @shiyang:赞赞赞

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

187. layaair怎么实现界面跳转 [ 61%]

layaair怎么实现界面跳转 this.headImg.on(Laya.Event.CLICK, this, this.myCenterClick); //跳转到百度 public myCenterClick(): void { 这里面怎么写 } 2017-10-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

188. 区块地图-PerspectiveWall [ 61%]

...WALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle; this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/perspective_walls.json", new Rectangle(0...

来源: Laya2.0_示例 发布时间: 20251130

189. 使用loadImage加载一个图片后的点击事件 [ 61%]

...300, 60, 60, Laya.Handler.create(this, function(){         ape.on(Laya.Event.CLICK, this, function(){         console.log(111)     }) }));使用这段代码加载了一个60x60大小的图片(下图中骑马的那个人物),并且在加载完成的回调给这个图片添加点击事...

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

190. 鼠标右键监听无效 [ 61%]

...。 是在谷歌浏览器运行的,没有调用test方法 Laya.stage.on(Event.RIGHT_CLICK,this,test) 2019-10-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 李友涛 赞同来自: 你好,问题解决了吗 ...

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