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

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

1. 屏幕适配-屏幕适配 [ 100%]

... let boy2 = new Image(); boy2.skin = "res/cartoonCharacters/2.png"; boy2.bottom = 0; boy2.right = 0; boy2.on("click", this, this.onBoyClick); Laya.stage.addChild(boy2); //侦听点击事件,输出坐标信息 Laya.stage.on("click", this, this.onClick); Laya.stage.on("resize", this, this.onResize);...

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

2. UI-RefreshList [ 97%]

...hLoading = new Box(); this.refreshLoading.pos(133, 0); this.refreshLoading.bottom = 10; this.refreshLoading.visible = false; this.baseBox.addChild(this.refreshLoading); // 加载动画 this.loadingAni = new Animation(); this.loadingAni.loadAnimation("res/ui/refreshList/ani/Refresh.ani"); this.loadin...

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

3. Sprite-屏幕截图 [ 83%]

...owser.clientHeight/2); Laya.stage.addChild(this.drawImage); this.drawImage.bottom = this.drawImage.right = 0; this.drawSp = new Sprite(); Laya.stage.addChild(this.drawSp); this.drawSp.size(Browser.clientWidth/2,Browser.clientHeight/2); this.drawSp.y = Browser.clientHeight/2; this.drawSp.graphics.dra...

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