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

大约有 276 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0033 秒)

251. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 41%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { var list = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.h...

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

252. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 40%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var list: List = new List(); list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list....

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

253. 区块地图-滚动地图 [ 40%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Event.MOUSE_UP, this, this.mouseUp); Stat.show(); } // 创建地图 createMap() { const Til...

来源: Laya2.0_示例 发布时间: 20241124

254. 鼠标交互-双指旋转(多点触控) [ 40%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = 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); } createSpr...

来源: Laya2.0_示例 发布时间: 20241124

255. 骨骼动画-Spine事件 [ 40%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; 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"; mFact...

来源: Laya2.0_示例 发布时间: 20241124

256. 鼠标交互-Hold [ 40%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(apePath, Handler.create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.lo...

来源: Laya2.0_示例 发布时间: 20241124

257. 屏幕适配的缩放模式详解(ActionScript-2D基础篇(AS3)-屏幕适配) [ 39%]

...置适配模式为"showall"         Laya.stage.scaleMode = Stage.SCALE_SHOWALL;         //设置舞台背景色         Laya.stage.bgColor  = "#ffff99";               //实例一个背景         var bg:Image = new Image();         bg.skin...

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

258. 滤镜-颜色滤镜 [ 39%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } normalizeApe() { let originalApe = this...

来源: Laya2.0_示例 发布时间: 20241124

259. 鼠标交互-双指缩放(多点触控) [ 38%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, th...

来源: Laya2.0_示例 发布时间: 20241124

260. Sprite-新手引导 [ 38%]

...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createPage(); } createPage() { const Sprite = Laya.Sprite; // 绘制底图 gameContainer = new Sprite(); Laya.stage.addChild(gameContainer); gameContainer.loadImage("res/gui...

来源: Laya2.0_示例 发布时间: 20241124