大约有 456 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0077 秒)
Laya_社区(192) Laya3.0_api(94) Laya2.0_api(63) laya_api(57) Laya2.0_文档(23) Laya3.0_文档(20) Laya_示例(5) Laya2.0_示例(2)
...nnerHtml赋值的时候带有<img> 标签。 但是<span>标签设置字体颜色和字体大小是有效的啊 Monica • 2018-01-06 18:03 @momo199059:使用HTMLDivElement显示图片的话是不会有问题的,你看下是否是这样用的https://ldc.layabox.com/doc/?nav=zh-as-8-0-1...
来源: Laya_社区 发布时间: 20180106
...tue = this.statue.getBounds(); var boundAngel = this.angel.getBounds(); // 设置位置 this.pos(42,399); this.tower.pos((boundBall.width - boundTower.width)/2+data.tower[towerLel].c1, -data.tower[towerLel].h+data.tower[towerLel].c2); this.aeroboat.pos((boundBall.width - boundTower.width)/2+data.tow...
来源: Laya_社区 发布时间: 20170720
...经报错过的项目再把这些参数加上,也还是报错 而没有设置out参数的项目FB编译导出的目录是bin/h5目录,而且h5目录中只有3个文件,而且报错的内容是Laya.stage是null,找到“Main.max.js”文件,发现其中设置了Laya.stage=null,如下: /...
来源: Laya_社区 发布时间: 20200426
...显示异常。(通常电脑上显示正常,在一些移动端因缺少设置的字体而显示异常)。 example package { import laya.display.Text; public class Text_Example { public function Text_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "...
来源: Laya3.0_api 发布时间: 20231115
...tion_Example { public function Animation_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation...
来源: Laya3.0_api 发布时间: 20231115
...prite asPassword : Boolean 本API已弃用。使用type="password"替代设置asPassword, asPassword将在下次重大更新时删去。 指定文本字段是否是密码文本字段。 如果此属性的值为 true,则文本字段被视为密码文本字段,并使用星号而不是实际字...
来源: laya_api 发布时间: 20170929
...hSlider:HSlider; public function HSlider_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 ...
来源: Laya3.0_api 发布时间: 20231115
...vSlider:VSlider; public function VSlider_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vslider.png", "resource/ui/vslider$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 ...
来源: Laya3.0_api 发布时间: 20231115
... example 以下示例代码,创建了一个新的 ProgressBar 实例,设置了它的皮肤、位置、宽高、网格等信息,并添加到舞台上。 package { import laya.ui.ProgressBar; import laya.utils.Handler; public class ProgressBar_Example { private var progressBar:ProgressBar; publi...
来源: Laya3.0_api 发布时间: 20231115
...内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显...
来源: laya_api 发布时间: 20170422