大约有 4 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0014 秒)
...; Laya.stage.addChild(hs); hs.width = 300; hs.pos(50, 170); hs.min = 0; hs.max = 100; hs.value = 50; hs.tick = 1; hs.changeHandler = new Handler(this, this.onChange); } placeVSlider() { const VSlider = Laya.VSlider, Handler = Laya.Handler; let vs = new VSlider(); Laya.stage.addChild(vs); vs.skin = "...
来源: Laya2.0_示例 发布时间: 20241117
...in = "res/ui/hscroll.png"; hs.width = 300; hs.pos(50, 170); hs.min = 0; hs.max = 100; hs.changeHandler = new Handler(this, this.onChange); } placeVScroller() { const VScrollBar = Laya.VScrollBar, Handler = Laya.Handler; let vs = new VScrollBar(); Laya.stage.addChild(vs); vs.skin = "res/ui/vscroll.pn...
来源: Laya2.0_示例 发布时间: 20241117
...nMouseUp); } /**移到事件处理*/ onMouseMove(e) { this.button.x = Math.max(Math.min(Laya.stage.mouseX, endPosition), beginPosition); } /**抬起事件处理*/ onMouseUp(e) { const Event = Laya.Event, Tween = Laya.Tween; Laya.stage.off(Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.off(Eve...
来源: Laya2.0_示例 发布时间: 20241117
... null; 要删除的列表索引 */ /** 创建list模拟数据 * @paramthis.max = null; 最大生成数量 * @paramthis.msgTitle = null; 标题文本 */ // 不支持WebGL时自动切换至Canvas Laya.init(1334, 750, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...
来源: Laya2.0_示例 发布时间: 20241117