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

大约有 4 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0016 秒)

1. UI-Tree [ 100%]

...("res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; // 设置 selectBox 的name 为“selectBox”时,将被识别为树结构的项的背景。2帧:悬停时背景、选中时背景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); le...

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

2. 鼠标交互-修正交互区域 [ 94%]

...CoralRect(); this.createDeepSkyblueRect(); this.createDarkOrchidRect(); // 设置舞台 Laya.stage.name = "暗灰色舞台" Laya.stage.on(Event.MOUSE_DOWN, this, this.onDown); } createCoralRect() { const Sprite = Laya.Sprite, Event = Laya.Event; let coralRect = new Sprite(); coralRect.graphics.drawR...

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

3. 加载-销毁Texture使用的图片资源 [ 60%]

...应函数 * @param evt */ onMouseUp(evt) { if (this.isDestroyed) { //通过设置 visible=true ,来触发渲染,然后引擎会自动恢复资源 this.spBg.visible = true; this.aniFly.visible = true; this.isDestroyed = false; this.txt.text = "销毁"; } else { //通过设置 visible=false ,来...

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

4. UI-RefreshList [ 59%]

...moveLimit, distance= 0, time= 2000){ if (eventName === "dragTopLimit") { //设置下拉的最大橡皮筋高度,只有在启用了停止滚动的功能后有效 this.refreshList.scrollBar.topMoveLimit = moveLimit; } else if (eventName === "dragBottomLimit") { this.refreshList.scrollBar.bottomMoveLim...

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