大约有 10 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0021 秒)
...ateTexts() { this.createLabel("只允许输入数字:").pos(50, 20); let input = this.createInput(); input.pos(50, 50); input.restrict = "0-9"; this.createLabel("只允许输入字母:").pos(50, 100); input = this.createInput(); input.pos(50, 130); input.restrict = "a-zA-Z"; this.createLabel("...
来源: Laya2.0_示例 发布时间: 20241124
...种开发语言、LayaAirIDE让项目开发更高效。let SPACING = 100, INPUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时...
来源: Laya2.0_示例 发布时间: 20241124
...m]); } createDurationCrontroller() { const Event = Laya.Event; let durationInput = this.createInputWidthLabel("Duration:", '2000', 400, 10); durationInput.on(Event.INPUT, this, function() { duration = parseInt(durationInput.text); }); } createInputWidthLabel(label, prompt, x, y) { const Text = Laya....
来源: Laya2.0_示例 发布时间: 20241124
...wLabel("密码", 0, rowHeightDelta * 2); // 显示右侧输入框 let emailInput = this.createInputElement(); let birthdayInput = this.createInputElement(); let passwordInput = this.createInputElement(); birthdayInput.type = "date"; passwordInput.type = "password"; Laya.stage.on(Laya.Event.RESIZE, t...
来源: Laya2.0_示例 发布时间: 20241124
...caleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.heigh...
来源: Laya2.0_示例 发布时间: 20241124
...Script三种开发语言、LayaAirIDE让项目开发更高效。class Text_InputSingleline { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); ...
来源: Laya2.0_示例 发布时间: 20241124
...caleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.heigh...
来源: Laya2.0_示例 发布时间: 20241124
...Script三种开发语言、LayaAirIDE让项目开发更高效。class Text_InputMultiline { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); L...
来源: Laya2.0_示例 发布时间: 20241124
...lo 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; import Label = Laya.Label; ...
来源: Laya2.0_示例 发布时间: 20200319
...essage is ArrayBuffer) { trace(new Byte(message).readUTFBytes()); } socket.input.clear(); } private function onConnectError(e:Event=null):void { trace("error"); } } }
来源: Laya2.0_示例 发布时间: 20241124