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

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

1. 性能测试-虫子(慎入) [ 100%]

...yaAirIDE让项目开发更高效。let texturePath = "res/tinyMaggot.png", padding = 100, maggotAmount = 5000, tick = 0, maggots = [], wrapBounds, maggotTexture; class PerformanceTest_Maggots { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Ha...

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

2. UI-Dialog [ 94%]

...t DIALOG_WIDTH = 220, DIALOG_HEIGHT = 275, CLOSE_BTN_WIDTH = 43, CLOSE_BTN_PADDING = 5, assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; class UI_Dialog { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支...

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

3. 文本-多行输入 [ 79%]

...h >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; inputText.padding = [2,2,2,2]; // 移动端输入提示符 inputText.prompt = "Type some word..."; // 设置字体样式 inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; } } new Text_InputMultiline()...

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

4. UI-TextArea [ 78%]

....bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15); ta.size(375, 355); ta.padding = "70,8,8,8"; Laya.stage.addChild(ta); } } new UI_TextArea();module laya { import Stage = Laya.Stage; import TextArea = Laya.TextArea; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya....

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

5. 文本-字符限制 [ 74%]

...0"; input.bold = true; input.fontSize = 20; input.color = "#FFFFFF"; input.padding = [0, 4, 0, 4]; return input; } } new Text_Restrict();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class...

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

6. UI-Tree [ 57%]

...结构数据赋值。 label.fontSize = 20; label.color = "#FFFFFF"; label.padding = "6,0,0,13"; label.width = 150; label.height = 30; label.x = 33; label.y = 1; label.left = 33; label.right = 0; this.addChild(label); let arrow = new Clip("res/ui/tree/clip_tree_arrow.png", 1, 2); arrow.name = "arrow"...

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