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

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

1. 文本-滚动文本 [ 100%]

...ff"; this.txt.on(Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ startScrollText(e) { const Event = Laya.Event; prevX = this.txt.mouseX; prevY = this.txt.mouseY; Laya.stage.on(Event.MOUSE_MOVE, this, this.scrollText); Laya.stage.on(Event.MOUSE_UP, this, this.finishScrollTex...

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

2. UI-RefreshList [ 90%]

...hList = null; /** 消息生成的当前最大id值 */ this.msgIdNow=1; /** 滚动条效果是否停止 */ this.scrollBarIsStop=false; /** 移动前的上次坐标位置 */ this.moveLastPos = null; /** 列表单元是否已打开 */ this.itemIsOpen=false; /**展开的单元格索引ID */ this.itemOpe...

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

3. 鼠标交互-鼠标交互 [ 83%]

...———"); break; case Event.MOUSE_WHEEL: this.appendText("\n鼠标滚轮滚动"); break; } } appendText(value) { txt.text += value; txt.scrollY = txt.maxScrollY; } /**添加提示文本*/ createLogger() { const Text = Laya.Text; txt = new Text(); txt.overflow = Text.SCROLL; txt.text = "请把鼠...

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