大约有 770 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)
Laya_社区(448) Laya_示例(132) Laya2.0_示例(116) Laya2.0_文档(65) Laya3.0_api(3) laya_api(2) Laya2.0_api(2) Laya3.0_文档(2)
... Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new S...
来源: Laya_社区 发布时间: 20170826
... class GameMain { constructor() { Laya.init(500, 1000, WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATL...
来源: Laya_社区 发布时间: 20180810
....stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var gap: numb...
来源: Laya_社区 发布时间: 20201203
...as Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图http://layaair.ldc.layabox.com/api/ function createMa...
来源: Laya_社区 发布时间: 20171205
...ass GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; static sceneRoot:string=""; static debug:boolean=false; static ...
来源: Laya_社区 发布时间: 20181014
...ya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; //设置适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //设置横竖屏 Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; //显示帧频信息 Laya.Stat.show(); //预加载 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAsse...
来源: Laya_社区 发布时间: 20170803
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createParagraph(); // 代码创建 showExternalHTML(); // 使用外部定义的html } function createParagraph() { var p = new HTMLDivEl...
来源: Laya_社区 发布时间: 20170515
...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.skin, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb...
来源: Laya2.0_文档 发布时间: 20210715
...下边代码 Laya.init(1000,600,Laya.WebGL); Laya.Stat.show(); Laya.stage.scaleMode = "showall"; var sp1=new Laya.Sprite(); sp1.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, 110, 5, 5], ["lineTo", 110, 55], [&qu...
来源: Laya_社区 发布时间: 20171127
...onstructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动画模板 this.templet = new SpineTempletBinary(); this.templet.loadAni(this.aniPath); thi...
来源: Laya2.0_文档 发布时间: 20210715