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

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

1. 文本-字符限制 [ 100%]

...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_示例 发布时间: 20240929

2. UI-Input [ 98%]

...种开发语言、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_示例 发布时间: 20240929

3. 缓动-缓动函数演示 [ 97%]

...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_示例 发布时间: 20240929

4. DOM元素-表单输入 [ 93%]

...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_示例 发布时间: 20240929

5. 文本-字数限制 [ 92%]

...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_示例 发布时间: 20240929

6. 文本-单行输入 [ 92%]

...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_示例 发布时间: 20240929

7. 文本-禁止编辑 [ 92%]

...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_示例 发布时间: 20240929

8. 文本-多行输入 [ 91%]

...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_示例 发布时间: 20240929

9. IDE-显示IDE创建的界面 [ 81%]

...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

10. 网络和格式-Socket [ 53%]

...essage is ArrayBuffer) { trace(new Byte(message).readUTFBytes()); } socket.input.clear(); } private function onConnectError(e:Event=null):void { trace("error"); } } }

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