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

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

31. UI-Clip [ 77%]

...、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。let buttonSkin = "res/ui/button-7.png", clipSkin = "res/ui/num0-9.png", bgSkin = "res/ui/coutDown.png", currFrame; class UI_Clip { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya....

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

32. button支持点击的时候放大吗 [ 77%]

button支持点击的时候放大吗 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 1、你可以把button的第二态的皮肤做成放大效果,当点击的时候button会...

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

33. 关于list里注册事件和移除事件 [ 76%]

...“兑换”按钮点击事件,在刷新list数据源时,怎么清除Button的点击事件?还是不用清除点击事件?private updateItem(cell: Laya.Box, index: number): void { let btn: Laya.Button = cell.getChildByName("btn") as Laya.Button; btn.on(Laya.Event.CLICK, this, this.on_test); ...

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

34. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 76%]

...up() { var gap = 10; //创建一个Sprite充当音效播放按钮 var soundButton = createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton); //创建一个Sprite...

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

35. Button自定义属性 [ 76%]

Button自定义属性 是不是不能给button绑定自定义属性,或者赋自定义值,用来给后面点击button获取对应的值 2018-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞...

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

36. sound manager在MOUSE_OVER事件中无法播放 [ 75%]

...建一个Sprite充当音效播放按钮             var soundButton: Sprite = this.createButton("播放音效");             soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2;             soundButton.y = (Laya.stage.height - so...

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

37. Button control 的skin图片如何切割? [ 75%]

Button control 的skin图片如何切割? 我们想自定义制作Button的skin图片,图片里面应该包括三个小图(分别对应button三种状态--正常,havor,click), 我想请问Laya是怎么切分这三个图片的尼 ? 是根据button所设置的height,width及它们比 ...

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

38. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 74%]

...   export default class LoginScene extends Laya.Scene{ public btnReg:Laya.Button; public btnLogin:Laya.Button;  constructor(){ super();  this.btnLogin.on(Laya.Event.CLICK,this,()=>{ console.log('btnLogin click') }) }  createChildren(){ super.createChildren(); this.loadScene('LoginScene'); } ...

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

39. 分享:销毁龙骨动画! [ 74%]

...t); Laya.stage.bgColor = "#ffffff"; Stat.show(); var DesBtn:Sprite = createButton("销毁动画"); DesBtn.x = 50; DesBtn.y = 50; Laya.stage.addChild(DesBtn); //创建一个Sprite充当音乐播放按钮 var addBtn:Sprite = createButton("添加动画"); addBtn.x = 250; addBtn.y = 50; Laya.stage.addCh...

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

40. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 74%]

... gap: number = 10;  //创建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton);  //创...

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