大约有 1,377 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)
Laya_社区(1072) Laya2.0_文档(80) Laya3.0_api(75) Laya_示例(42) Laya2.0_示例(40) Laya3.0_文档(27) Laya2.0_api(22) laya_api(19)
...种情况 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
...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
... 下面演示获取旋转方位信息: ```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
...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
...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
...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
...示获取旋转方位信息: 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
...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
文本的颜色随按钮状态改变这是啥情况? sprite里放了个Text和Button,当鼠标移动或按下按钮是,按钮文字颜色变了,这没毛病,可为啥Text的颜色也一起变了? Text和Label都试了,一个样子 2018-01-13 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20180113
...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