大约有 844 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0043 秒)
Laya_社区(556) Laya3.0_api(65) Laya2.0_api(58) Laya2.0_文档(55) laya_api(54) Laya2.0_示例(20) Laya3.0_文档(18) Laya_示例(18)
...台,默认背景色是黑色的 Laya.init(600, 300); var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox"; ...
来源: Laya2.0_文档 发布时间: 20210715
...置宽高,否则panel不显示 var panel:Panel=new Panel(); panel.size(300,300); panel.pos(100,100); panel.vScrollBarSkin='comp/vscroll.png'; panel.hScrollBarSkin='comp/hscroll.png'; Laya.stage.addChild(panel); //panel的子对象,,切忌要设置宽高,且宽高大于panel宽高 var bg:Spri...
来源: Laya_社区 发布时间: 20170719
...t.CLICK, this, onDecreaseAlpha2); } function createButton(label) { var w = 300, h = 60; var button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return button; } function onDecreaseA...
来源: Laya_示例 发布时间: 20241124
...8, y: 583, radius: 110, tip: "../../res/guide/help3.png", tipx: 900, tipy: 300 }]; var guideStep = 0; var hitArea; var interactionArea; (function() { Laya.init(1285, 727); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; //绘制一个蓝色方块,不被抠图 var ga...
来源: Laya_示例 发布时间: 20241124
...creaseAlpha2); } createButton(label) { const Sprite = Laya.Sprite; let w = 300, h = 60; let button = new Sprite(); Laya.stage.addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, "20px simHei", "#ffffff", "center"); return b...
来源: Laya2.0_示例 发布时间: 20241124
...) { progressBar=new Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg",50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; progressBar.changeHandler=new Handler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChild(progressBar); onchange(); } function onChange(v...
来源: Laya_社区 发布时间: 20170701
..., { x: 1128, y: 583, radius:110, tip:"res/guide/help3.png", tipx:900, tipy:300 } ], gameContainer, guideContainer, maskArea, interactionArea, hitArea, tipContainer, guideStep = 0; class Sprite_Guide { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Ca...
来源: Laya2.0_示例 发布时间: 20241124
... (num >= 1) { this.run(); } }); }; p.run = function() { Laya.timer.once(300, this, function() {//给一个延迟 1000ms进度场景 alert('进度加载完毕'); this.Progress.visible = false; this.Start = new Start(); this.Start.zOrder = 2;//由于UI[b]编辑不能这只层级·需要用代码打...
来源: Laya_社区 发布时间: 20170803
...e = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChild(bg); var button = new Laya.Button('comp/button.png'); button.label='Hello World!'; button.name = Laya.Dialog.CLOSE; button.width=260; but...
来源: Laya_社区 发布时间: 20190117
...unction HelloLayaBox() { Laya.init(600, 300); var txt:Text = new Text(); txt.text = "HelloLayaBox"; txt.color = "#ff0000"; txt.fontSize = 66; txt.bold = true; ...
来源: Laya_社区 发布时间: 20171025