大约有 1,539 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1228) Laya2.0_文档(80) Laya3.0_api(75) Laya_示例(42) Laya2.0_示例(40) Laya3.0_文档(33) Laya2.0_api(22) laya_api(19)
...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._ski...
来源: Laya_社区 发布时间: 20170516
...下述示例演示了如何通过代码创建HScrollBar,并通过一个Text组件显示滚动条的value值。开发者可以自己通过代码设置HScrollBar,创建出符合自己需要的HScrollBar。 示例代码: const { regClass, property } = Laya; @regClass() export class UI_HScrollBar ...
来源: Laya3.0_文档 发布时间: 20251010
...? <!--封装了html动态排版功能--> <script type="text/javascript" src="libs/laya.html.js"></script> <!--粒子类库--> <script type="text/javascript" src="libs/laya.particle.js"></script> <!--提供tileMap解析支持--> ...
来源: Laya_社区 发布时间: 20170115
...下述示例演示了如何通过代码创建VScrollBar,并通过一个Text组件显示滚动条的value值。开发者可以自己通过代码设置VScrollBar,创建出符合自己需要的VScrollBar。 示例代码: const { regClass, property } = Laya; @regClass() export class UI_VScrollBar ...
来源: Laya3.0_文档 发布时间: 20251010
...添加了脚本。同时在舞台上添加另一个方便显示输出的`Text`文本。 脚本类: ```typescript //重写脚本中的onUpdate方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的tou...
来源: Laya2.0_文档 发布时间: 20210715
...添加了脚本。同时在舞台上添加另一个方便显示输出的`Text`文本。 脚本类: ```typescript //重写脚本中的onUpdate方法 onUpdate() { var touchCount = this._scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的tou...
来源: Laya2.0_文档 发布时间: 20210715
...dayInput, passwordInput]); function showLabel(label,x,y){ var t = new Laya.Text(); t.height = this.rowHeight; t.valign = "middle"; t.fontSize = 15; t.font = "SimHei"; t.text = label; t.pos(x, y); this.form.addChild(t); } function createInputElement(){ var input = Laya.Browser.createElement("input");...
来源: Laya_示例 发布时间: 20260303
...题 空工程中代码如下: Main.js: const Sprite = Laya.Sprite; const Text = Laya.Text; const Texture = Laya.Texture; Laya.init(800, 600); var txt = new Text(); txt.pos(200, 200); txt.color = "#FFFFFF"; txt.text = "000000"; Laya.stage.addChild(txt); var spr = new Sprite(); spr.size(50, 50...
来源: Laya_社区 发布时间: 20190401
textArea滚动条异常问题 textArea在设置为可编辑(editable = true)、自动换行的情况下,即使输入足够多换行,也是无法显示滚动条皮肤,皮肤路径没有问题。 而且测试过,在项目中运行中(在输入足够多字数后)动态修改textArea的...
来源: Laya_社区 发布时间: 20170812
...ad property 'length' of undefined for (var i = 0; i < text.length; i++) { ^^ TypeError: Cannot read property 'length' of undefined at conchTextCanvas.measureText (apploader.js:338:34) ...
来源: Laya_社区 发布时间: 20190829