大约有 615 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0044 秒)
Laya_社区(376) laya_api(53) Laya3.0_api(48) Laya2.0_文档(47) Laya2.0_示例(31) Laya_示例(28) Laya3.0_文档(24) Laya2.0_api(8)
... Laya.Tween; var WebGL = Laya.WebGL; //swipe滚动范围 var TrackLength = 200; //触发swipe的拖动距离 var TOGGLE_DIST = TrackLength / 2; var buttonPosition, beginPosition, endPosition; var button; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.c...
来源: Laya_示例 发布时间: 20241124
...esponseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObje...
来源: Laya2.0_文档 发布时间: 20210714
...esponseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObje...
来源: Laya2.0_文档 发布时间: 20210714
...次 onAwake(): void { let radio: Laya.Radio = new Laya.Radio(); radio.pos(200, 200); radio.size(160, 64); radio.stateNum = 3; radio.selected = false; radio.skin = "atlas/comp/radio.png"; radio.label = "LayaAir"; radio.labelSize = 20; radio.labelBold = true; radio.labelVAlign = "top"; this.owner.addC...
来源: Laya3.0_文档 发布时间: 20241014
...nt,yy:int):Sprite { var btn:Sprite=new Sprite(); btn.graphics.drawRect(0,0,200,50,"#FF0000"); btn.pos(100,400); var text:Text=new Text(); text.text="Draw"; btn.addChild(text); Laya.stage.addChild(btn); btn.size(200,50); return btn; } //点击DrawToCanvas按钮,进行截屏 private function onClick...
来源: Laya_社区 发布时间: 20170822
...kin = "../../../../res/ui/vscroll.png"; //设置高度 vScrollBar.height = 200; //设置位置 vScrollBar.pos(400, 200); //最低滚动位置数字 vScrollBar.min = 0; //最高滚动位置数字 vScrollBar.max = 100; //滚动变化事件回调 vScrollBar.changeHandler = new Handler(this, onChange); ...
来源: Laya2.0_文档 发布时间: 20210715
...LayaAirIDE让项目开发更高效。//swipe滚动范围 let TrackLength = 200; //触发swipe的拖动距离 let TOGGLE_DIST = TrackLength / 2; let buttonPosition, beginPosition, endPosition; let button; class Interaction_Swipe { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stag...
来源: Laya2.0_示例 发布时间: 20241124
...商,面向AS/JS/TS开发者提供HTML5开发技术方案!"; txt.size(200, 100); txt.x = Laya.stage.width - txt.width >> 1; txt.y = Laya.stage.height - txt.height >> 1; txt.borderColor = "#FFFF00"; txt.fontSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); txt.on(Event.MOUSE_DOWN, this, ...
来源: Laya_示例 发布时间: 20241124
...uctor(){ super(); var panel = new Laya.Panel(); panel.pos(0,0); panel.size(200,50); this.addChild(panel); var panelChild = new Laya.Sprite(); panelChild.pos(0,0); panelChild.size(200,50); panel.addChild(panelChild); } } new GameMain(); 附件有demo! 备注:引擎版本为1.7.9及其以上。...
来源: Laya_社区 发布时间: 20170829
...vot = [0, 8 * this.scale]; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.Laya.stage.scaleMode = L...
来源: Laya2.0_示例 发布时间: 20241124