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

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

441. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 80%]

...种情况   this.label = new Label();             this.label.text = "王小二的摊位";             this.label.fontSize = 15;             this.label.color = "#7CFC00";             this.label.pos(500, 400);               this.label.width...

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

442. label赋值为0问题 [ 80%]

...04-01 11:40 浏览: 888 关注: 2 人 C_jx • 2017-04-01 11:43 this.label.text = 0;时是无法显示的,this.label.text = ‘0’;可以显示。如果改成!==则可以正常显示 cuixueying • 2017-04-01 16:52 text的值是字符串,不是数字类型的!

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

443. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 80%]

... 下面演示获取旋转方位信息: ```typescript private var info:Text;   public function Gyroscope_Sample()  {  Laya.init(550, 400);     info = new Text();  info.fontSize = 50;  info.color = "#FFFFFF";  info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChil...

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

444. 文本-字数限制 [ 80%]

...gColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#...

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

445. laya.html.dom.HTMLDivElement [ 80%]

...es HTMLIframeElement DIV标签 Public Properties PropertyDefined By  contextHeight : Number 实际内容的高 HTMLDivElement  contextWidth : Number 实际内容的宽 HTMLDivElement  height : Number[override] [read-only] 获取对象的高 HTMLDivElement  innerHTML : String[write-only] 设...

来源: laya_api 发布时间: 20170929

446. laya.html.XML_API3.0 [ 80%]

...XML Class XML Hierarchy XML Index Constructors constructor Properties name text Accessors attributes Methods elements getAttrBool getAttrFloat getAttrInt getAttrString getNode parse reset setAttribute Constructors constructor new XML(XmlString?: string): XML Defined in laya/html/XML.ts:9 Parameters ...

来源: Laya3.0_api 发布时间: 20231115

447. 陀螺仪与加速计 · LayaAir3.0文档 · LAYABOX [ 80%]

...示获取旋转方位信息: class Gyroscope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope...

来源: Laya3.0_文档 发布时间: 20230303

448. 文本-单行输入 [ 80%]

...gColor = "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 移动端输入提示符 inputText.prompt = "Type some word...";...

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

449. 文本的颜色随按钮状态改变这是啥情况? [ 80%]

文本的颜色随按钮状态改变这是啥情况? sprite里放了个Text和Button,当鼠标移动或按下按钮是,按钮文字颜色变了,这没毛病,可为啥Text的颜色也一起变了?   Text和Label都试了,一个样子 2018-01-13 添加评论 免费帖 --> 分享 微博...

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

450. 位图字体生效 [ 80%]

...this, onLoaded)); function onLoaded(){ mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(mFontName,mBitmapFont); let txt = new Laya.Text(); txt.text='手机号 +86'; txt.color='#FFFFFF'; txt.font = mFontName;//===============代码应该没问题 这句不要的话 就能显示原来的样...

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