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

大约有 3 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0012 秒)

1. UI-TextArea [ 100%]

...et ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.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; i...

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

2. Sprite-绘制各种形状 [ 93%]

...边形 sp.graphics.drawPoly(264, 166, [0, 0, 60, 0, 78.48, 57, 30, 93.48, -18.48, 57], "#ffff00"); //画三角形 sp.graphics.drawPoly(400, 166, [0, 100, 50, 0, 100, 100], "#ffff00"); //画圆 sp.graphics.drawCircle(98, 332, 50, "#00ffff"); //画扇形 sp.graphics.drawPie(240, 290, 100, 10, 60, "#00...

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

3. UI-RefreshList [ 48%]

...reshList/img_hd.png"); this.avatar.addChild(this.redHot); this.redHot.pos(-18.5, -18.5); this.redHot.autoSize = true; // 列表item红点文字 this.redHotText = new Text(); this.redHot.addChild(this.redHotText); this.redHotText.text = "1"; this.redHotText.font = "Microsoft YaHei"; this.redHotText.f...

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