大约有 206 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0064 秒)
Laya_社区(139) Laya2.0_文档(22) Laya3.0_api(16) Laya3.0_文档(11) Laya2.0_api(6) laya_api(6) Laya_示例(3) Laya2.0_示例(3)
请问layaide如何创建一个复合的Button 比如button里的内容是由图片和文字组合成的,可以先把这两个把组成box,然后怎么样让这个box有button组件的特性呢? 2016-06-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20160616
...vent = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var button1, button2; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage...
来源: Laya_示例 发布时间: 20241124
...; this.setup(); } setup() { const Event = Laya.Event; let vGap = 100; this.button1 = this.createButton("点我3秒之后 alpha - 0.5"); this.button1.x = (Laya.stage.width - this.button1.width) / 2; this.button1.y = (Laya.stage.height - this.button1.height - vGap) / 2; this.button1.on(Event.CLICK, th...
来源: Laya2.0_示例 发布时间: 20241124
Button文本位置错误 先设置anchor属性, 再设置skin属性, 最后设置label属性, 文本位置会在左上. let btn = new Button(); btn.anchorX = btn.anchorY = 0.5; btn.skin = 'https://layaair2.ldc2.layabox.com/demo2/h5/res/ui/button-1.png'; btn.labelSize = 22; btn.label = 'aaaa'; La...
来源: Laya_社区 发布时间: 20190907
...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_示例 发布时间: 20241124
...th":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp/clip_num.png","clipX":10,"var":"clip"},"type":"Clip"},{"props":{"x":220,"y":1...
来源: Laya_社区 发布时间: 20170330
...blic/Protected All Inherited Externals Only exported Menu Globals "laya/ui/Button" Button Class Button Button 组件用来表示常用的多态按钮。 Button 组件可显示文本标签、图标或同时显示两者。 * 可以是单态,两态和三态,默认三态(up,over,down)。 example 以...
来源: Laya3.0_api 发布时间: 20231115
...出选中状态: checkBox.selected = " + checkBox.selected); } } Hierarchy Button CheckBox Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWi...
来源: Laya3.0_api 发布时间: 20231115
...th":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"props":{"x":401,"y":56,"skin":"comp/clip_num.png","clipX":10,"var":"clip"},"type":"Clip"},{"props":{"x":220,"y":1...
来源: Laya_社区 发布时间: 20170330
...AirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Button = Laya.Button; var Clip = Laya.Clip; var Image = Laya.Image; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var buttonSkin = "../../res/ui/button-7.png"; var clipSkin = "../../res/ui/num0-9.png"; var bgSkin = "../...
来源: Laya_示例 发布时间: 20241124