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

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

11. 文本-字数限制 [ 84%]

...Laya.stage.height - inputText.height >> 1; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; inputText.maxChars = 5; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Laya.Sta...

来源: Laya_示例 发布时间: 20251130

12. 文本-单行输入 [ 83%]

... inputText.prompt = "Type some word..."; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya....

来源: Laya_示例 发布时间: 20251130

13. 文本-字数限制 [ 83%]

...Laya.stage.height - inputText.height >> 1; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; inputText.maxChars = 5; } } new Text_MaxChars();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Brow...

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

14. 文本-禁止编辑 [ 83%]

...但可复制"; inputText.editable = false; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Lay...

来源: Laya_示例 发布时间: 20251130

15. 文本-单行输入 [ 83%]

... inputText.prompt = "Type some word..."; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; } } new Text_InputSingleline();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser;...

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

16. 文本-禁止编辑 [ 83%]

...但可复制"; inputText.editable = false; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; } } new Text_Editable();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Browser = Laya.Browser; impo...

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

17. UI-TextArea [ 82%]

... 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"; var scaleFactor = Browser.pixelRatio; Laya.stage.addChild(ta); } })();module laya { import Stage = Laya.Stage; import TextArea = ...

来源: Laya_示例 发布时间: 20251130

18. UI-TextArea [ 82%]

... 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; import B...

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

19. laya.utils.FontInfo [ 82%]

...ontInfoInheritanceFontInfo ObjectPublic Properties PropertyDefined By  _bold : Boolean = falseFontInfo  EMPTY : FontInfo[static] FontInfo  _family : String = ArialFontInfo  _font : String = 14px ArialFontInfo  _id : uintFontInfo  _italic : Boolean = falseFontInfo  _size : int = 14Font...

来源: Laya2.0_api 发布时间: 20190513

20. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 82%]

...e ITextFormat { /** * 背景色 */ bgColor?: string; /** * 是否加粗 */ bold?: number; /** * 文本框背景色 */ borderColor?: string; /** * 文本颜色 */ color?: string; /** * 字体 */ font?: string; /** * 字体大小 */ fontSize?: number; /** * 是否为斜体 */ italic?: number; /** * ...

来源: Laya_社区 发布时间: 20171226