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

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

141. 绘制直线与折线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 67%]

... constructor()         {             Laya.init(500, 300, WebGL);             this.drawSomething();         }           private drawSomething(): void {             this.sp = new Sprite();             Laya.stage.addChild...

来源: Laya2.0_文档 发布时间: 20210714

142. 绘制直线与折线(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 67%]

...ite_DrawShapes()         {             Laya.init(500, 300, WebGL);             drawSomething();         }           private function drawSomething():void         {             sp = new Sprite();             Laya....

来源: Laya2.0_文档 发布时间: 20210714

143. LayaAirIDE中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 67%]

...台,默认背景色是黑色的             Laya.init(600, 300);             var txt:Text = new Text();                           //设置文本内容             txt.text = "Hello Layabox";                    ...

来源: Laya2.0_文档 发布时间: 20210715

144. 如何用代码控制panel的vscroll滚动幅度 [ 67%]

...置宽高,否则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

145. 计时器-延迟执行 [ 67%]

...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_示例 发布时间: 20251130

146. Sprite-新手引导 [ 66%]

...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_示例 发布时间: 20251130

147. 计时器-延迟执行 [ 66%]

...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_示例 发布时间: 20251130

148. JS进度条加载问题 [ 66%]

...) { 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

149. Sprite-新手引导 [ 66%]

..., { 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_示例 发布时间: 20251130

150. js进度,进度,js场景进度效果 [ 66%]

... (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