大约有 142 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0048 秒)
Laya_示例(52) Laya2.0_示例(35) Laya_社区(26) Laya2.0_文档(14) Laya3.0_api(7) Laya3.0_文档(3) Laya2.0_api(3) laya_api(2)
...prototype.createNameLabel = function() { nameLabel = new Text(); nameLabel.color = "#FFFFFF"; nameLabel.text = "Default"; nameLabel.fontSize = 13; nameLabel.width = Character.WIDTH; nameLabel.align = "center"; this.addChild(nameLabel); } Character.prototype.setSpeed = function(value) { this.speed = ...
来源: Laya_示例 发布时间: 20240930
...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("res/cartoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); text = new Text(); text.zOrder = 10000; text.fo...
来源: Laya2.0_示例 发布时间: 20240930
...ize:20px; line-height:38px; font-family:"微软雅黑"; color:#000; text-align:justify; text-justify:inter-ideograph; -webkit-text-align-last:justify;/*chrome 20+*/ -moz-text-align-last:justify;/*ff*/ } 2018-01-03 0 0 分享 微博 QZONE 微信 Lay...
来源: Laya_社区 发布时间: 20180103
...文本内容 txt.text = "hello_world"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); yaorao • 2018-03-30 11:39 @qian:看了下 lib目录的文件有6M左右。会是因为加载这个目录导致的嘛? qian • 2018-03-30 11:54 不确定 但是你可...
来源: Laya_社区 发布时间: 20180330
...ransform.d)}); } } } 会报错: Uncaught TypeError: Cannot read property '_color' of null at WebGLContext2D.__proto.stroke (laya.js:17440) at RenderContext._drawLine (laya.js:4738) at GraphicsGL.__proto._renderAll (laya.js:987) at RenderSprite3D.__proto._graphics (laya.js:5234) at RenderSprite3D.Ren...
来源: Laya_社区 发布时间: 20171214
...tage.height); txt.pos(10, 10); txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var test:Object = JSON.parse('{"id": 0, "name": "Chen"}'); traceMsg(test['id']); traceMsg(test['name']); var jsonURL:String = "res/json/config.json"; traceMsg("加载: " + jsonURL)...
来源: Laya_社区 发布时间: 20180227
...p; (this._bitmap.source=this._sources[index]); if (this.label){ this._text.color=this._labelColors[index]; if (this._strokeColors)this._text.strokeColor=this._strokeColors[index]; } } __proto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); r...
来源: Laya_社区 发布时间: 20170516
... Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createInput(); } private function createInput():void { panel = new Panel(); ...
来源: Laya_社区 发布时间: 20180612
...ction LayaUISample() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来...
来源: Laya2.0_文档 发布时间: 20210715
...。 export interface IGUIUtils { /** * 编辑器默认的背景颜色 */ bgColor: gui.Color; /** * 编辑器默认的分割线颜色 */ lineColor: gui.Color; /** * 编辑器默认的文字颜色 */ textColor: gui.Color; createButton(autoSize?: boolean): gui.Button; createIconButton(flat?: boolean): ...
来源: Laya3.0_文档 发布时间: 20240918