大约有 310 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
Laya_社区(147) Laya2.0_文档(45) Laya_示例(35) Laya2.0_示例(32) Laya3.0_文档(17) Laya3.0_api(16) Laya2.0_api(11) laya_api(7)
...n test():void { var text:Text; text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text); text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.font = "remember"; text.pos(100, 200); Laya....
来源: Laya_社区 发布时间: 20191211
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); this.showLogger(); } connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.CO...
来源: Laya2.0_示例 发布时间: 20251130
...ceFillTextCmd Object 绘制文字 Public Properties PropertyDefined By color : String 定义文本颜色,比如"#ff0000"。 FillTextCmd font : String 定义字号和字体,比如"20px Arial"。 FillTextCmd text : String 在画布上输出的文本。 FillTextCmd textAlign : String ...
来源: Laya2.0_api 发布时间: 20190513
...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#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...
来源: Laya_示例 发布时间: 20251130
... //设置舞台背景色 Laya.stage.bgColor = "#ffff99"; //实例一个背景 var bg = new Image(); bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); ...
来源: Laya2.0_文档 发布时间: 20200307
...odes; //设置舞台背景色 Laya.stage.bgColor = "#ffff99"; //实例一个背景 var bg = new Image(); bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); //...
来源: Laya2.0_文档 发布时间: 20200307
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } setup() { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FF...
来源: Laya2.0_示例 发布时间: 20251130
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; ...
来源: Laya2.0_示例 发布时间: 20251130
....init(1136, 640); var txt:Text = new Text(); txt.text = "hello_world"; txt.color = "#ffffff"; Laya.stage.addChild(txt); } } } ``` 这个时候我们就可以看到txt已经添加到舞台上了,显示了txt中 白色的hello_world。 接着我们给我们的文本添加一些其他的字体样式...
来源: Laya2.0_文档 发布时间: 20210714
...TFIT; //设置舞台背景色 Laya.stage.bgColor = "#ffff99"; //实例一个背景 var bg:Image = new Image(); bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); ...
来源: Laya2.0_文档 发布时间: 20200307