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

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

461. 文本-单行输入 [ 75%]

... 移动端输入提示符 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.Stag...

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

462. 文本-字数限制 [ 75%]

...th >> 1; inputText.y = 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 = ...

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

463. 文本-禁止编辑 [ 75%]

...文本不可编辑,但可复制"; 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;...

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

464. UI编辑器里是否只能导入.jpg .png文件 [ 75%]

...暂命名为battle1/battle2。。。。】拖入【资源】栏 2.在拖入字体文件夹【内含.fnt .png文件】后,其他文件再无法拖入 3.删除这个字体文件夹后能正常将resource拖入 问题:UI编辑器是否只能拖入.jpg .png文件       2016-12-12 添加评论 免...

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

465. textInput的单行输入&多行输入(ActionScript-LayaAir基础篇(AS3)-文本) [ 75%]

...put 的文本自动换行。 textInput.fontSize = 30;//设置 textInput 的字体大小。 textInput.x = 0;//设置 textInput 对象的属性 x 的值,用于控制 textInput 对象的显示位置。 textInput.y = 0;//设置 textInput 对象的属性 y 的值,用于控制 textInput 对象的显...

来源: Laya2.0_文档 发布时间: 20210715

466. 文本-单行输入 [ 75%]

... 移动端输入提示符 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; impor...

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

467. LayaAir App打包提示:download ttf error问题仍旧未修复 [ 75%]

...编辑提示error TS5023: Unknown option 'p' 微信小游戏如何使用ttf字体? 关于近期iOS提交,因违反苹果3.1.1导致APP上架被拒的说明 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target 用了第三方socket类 项目在IDE...

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

468. 文本-禁止编辑 [ 75%]

...文本不可编辑,但可复制"; 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...

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

469. laya.ui.FontClip [ 74%]

...lipInheritanceFontClip Clip UIComponent Sprite Node EventDispatcher Object 字体切片,简化版的位图字体,只需设置一个切片图片和文字内容即可使用,效果同位图字体 使用方式:设置位图字体皮肤skin,设置皮肤对应的字体内容sheet(如果多行...

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

470. Label如何监听overflow事件? [ 74%]

...9:36 浏览: 908 关注: 3 人 koake • 2017-02-23 19:50 想让Label内的字体超过规定显示的范围之后字体变小,依旧在规定的显示范围内

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