大约有 517 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0038 秒)
... Laya.stage.bgColor = "#ffffff"; mLabelSprite = new Sprite(); Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(E...
来源: Laya2.0_示例 发布时间: 20241117
...; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#fff"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing...
来源: Laya2.0_示例 发布时间: 20241117
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); } createMap() { const TiledMap = Laya.TiledMap; let tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height),...
来源: Laya2.0_示例 发布时间: 20241117
...eeDimen/scene/PBRScene/Demo.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.scre...
来源: Laya_示例 发布时间: 20241117
...)(); function setup() { initMatter(); initWorld(); Laya.stage.on("resize", this, onResize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render...
来源: Laya_示例 发布时间: 20241117
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } createTexts() { this.createText('left', null, 100, 10); this.createText('center', "#00BFFF", 155, 150); this.createText('right', "#FF7F50", 210, 290); } createText(align, underlineColor, x, y) { const Te...
来源: Laya2.0_示例 发布时间: 20241117
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; let ...
来源: Laya2.0_示例 发布时间: 20241117
...角空格,全角空格翻译成h5后会导致程序报错(类似/*no*/this. "3"/*no*/this. :"2")。建议手动将全角空格全部用半角空格替换或者删除。 2015-11-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hali...
来源: Laya_社区 发布时间: 20151123
...own.png", "res/ui/vscroll$up.png"); Laya.loader.load(skins, Handler.create(this, this.onSkinLoadComplete)); } onSkinLoadComplete() { this.placeHScroller(); this.placeVScroller(); } placeHScroller() { const HScrollBar = Laya.HScrollBar, Handler = Laya.Handler; let hs = new HScrollBar(); Laya.stage.ad...
来源: Laya2.0_示例 发布时间: 20241117
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createParagraph(); // 代码创建 this.showExternalHTML(); // 使用外部定义的html } createParagraph() { const HTMLDivElement = Laya.HTMLDivElement; let p = new HTMLDivElement(); Laya.stag...
来源: Laya2.0_示例 发布时间: 20241117