大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0022 秒)
...LayaAirIDE让项目开发更高效。let prevX = 0, prevY = 0; class Text_Scroll { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage...
来源: Laya2.0_示例 发布时间: 20241118
...xt.VISIBLE; t1.pos(10, 10); let t2 = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); let t3 = this.createText(); t3.overflow = Text.HIDDEN; t3.pos(10, 210); } createText() { const Text = Laya.Text; let txt = new Text(); txt.text = "Layabox是HTML5引擎技术提供商与优秀的游...
来源: Laya2.0_示例 发布时间: 20241118
...Script三种开发语言、LayaAirIDE让项目开发更高效。class Text_Scroll { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stag...
来源: Laya2.0_示例 发布时间: 20241118
...:{color:"#ff0000",text:"Hello LayaAir"} this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}}; //list赋值,先获得一个数据源数组 var arr = []; for (var i = 0; i /// import test = game.ui.test.TestPageUI; ...
来源: Laya2.0_示例 发布时间: 20200319
...标滚轮滚动"); break; } } appendText(value) { txt.text += value; txt.scrollY = txt.maxScrollY; } /**添加提示文本*/ createLogger() { const Text = Laya.Text; txt = new Text(); txt.overflow = Text.SCROLL; txt.text = "请把鼠标移到到矩形方块,左右键操作触发相应事件\n"; txt....
来源: Laya2.0_示例 发布时间: 20241118