大约有 132 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0035 秒)
Laya_社区(81) laya_api(12) Laya2.0_api(12) Laya3.0_文档(10) Laya2.0_文档(6) Laya_示例(6) Laya2.0_示例(4) Laya3.0_api(1)
...、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
button支持点击的时候放大吗 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 1、你可以把button的第二态的皮肤做成放大效果,当点击的时候button会...
来源: Laya_社区 发布时间: 20170626
...“兑换”按钮点击事件,在刷新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
...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
Button自定义属性 是不是不能给button绑定自定义属性,或者赋自定义值,用来给后面点击button获取对应的值 2018-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞...
来源: Laya_社区 发布时间: 20181024
...建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - so...
来源: Laya_社区 发布时间: 20201203
Button control 的skin图片如何切割? 我们想自定义制作Button的skin图片,图片里面应该包括三个小图(分别对应button三种状态--正常,havor,click), 我想请问Laya是怎么切分这三个图片的尼 ? 是根据button所设置的height,width及它们比 ...
来源: Laya_社区 发布时间: 20180319
... 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
...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
... 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