大约有 892 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0067 秒)
Laya_社区(516) Laya_示例(65) Laya3.0_api(65) Laya2.0_api(62) Laya2.0_文档(60) laya_api(57) Laya2.0_示例(51) Laya3.0_文档(16)
....Vector; var LayaRender = window.LayaRender; var Sprite = Laya.Sprite; var Stage = Laya.Stage; //var Render = Laya.Render; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var stageWidth = 800; var stageHeight = 600; Laya.init(stageWidth, stageHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya...
来源: Laya_社区 发布时间: 20170728
...3; import laya.utils.Handler; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; public class LayaSample { private var _stateMachine:StateMachine; public function Laya...
来源: Laya_社区 发布时间: 20190416
...设置为true后,会变灰并且禁用鼠标。UIComponent displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像...
来源: Laya2.0_api 发布时间: 20190513
...} return sg_index; })(ui.sg_indexUI); Laya.init(1350,760,Laya.WebGL); Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignH = "center"; Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = "horizontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,La...
来源: Laya_社区 发布时间: 20170725
...log = new NormalDialog(context); this.normalDialog.popup(true, true); Laya.stage.addChild(this.normalDialog); } } // 弹窗代码 class NormalDialog extends ui.normalDialogUI { constructor( text: string ) { super(); // 设置label文字 this.context.text = text; this.btn_close.on(Laya.E...
来源: Laya_社区 发布时间: 20181216
...s文件的全部代码。module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; import Event = Laya.Event; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.a...
来源: Laya_社区 发布时间: 20170425
...具体用法:package { import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private func...
来源: Laya_社区 发布时间: 20151106
...ublic function Main() { Laya.init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/i...
来源: Laya_社区 发布时间: 20180302
...视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledMap地图 this.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoad...
来源: Laya3.0_文档 发布时间: 20240910
...设置为true后,会变灰并且禁用鼠标。UIComponent displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像...
来源: Laya2.0_api 发布时间: 20190513