大约有 1,377 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1072) Laya2.0_文档(80) Laya3.0_api(75) Laya_示例(42) Laya2.0_示例(40) Laya3.0_文档(27) Laya2.0_api(22) laya_api(19)
...语言、LayaAirIDE让项目开发更高效。let map, marker, mapDiv, infoText; class InputDevice_Map { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Geolocation = Laya.Geolocation; // 不支持WebGL时自动切换至...
来源: Laya2.0_示例 发布时间: 20240930
...图字体; */ class BPFont extends Laya.Sprite { // 文本内容 private _text: string; // 水平排列方式 private _align: string; // 资源前缀 private resFix: string; // 间距 private _padding: number; // 位图集合 private chars: Laya.Sprite = ; // 回收池 private static fontPool: Laya....
来源: Laya_社区 发布时间: 20180302
# textInput的单行输入&多行输入 文本输入框是我们游戏中经常会用到的一个UI组件,任何时候我们需要输入的时候都要使用到textInput这个类,我们先看一下TextInput这个类的API。 Laya.ui.textInput中所有的API参数: ![image.png](http://ldc.layab...
来源: Laya2.0_文档 发布时间: 20210715
...下述示例演示了如何通过代码创建HScrollBar,并通过一个Text组件显示滚动条的value值。开发者可以自己通过代码设置HScrollBar,创建出符合自己需要的HScrollBar。 示例代码: const { regClass, property } = Laya; @regClass() export class UI_HScrollBar ...
来源: Laya3.0_文档 发布时间: 20230911
...下述示例演示了如何通过代码创建VScrollBar,并通过一个Text组件显示滚动条的value值。开发者可以自己通过代码设置VScrollBar,创建出符合自己需要的VScrollBar。 示例代码: const { regClass, property } = Laya; @regClass() export class UI_VScrollBar ...
来源: Laya3.0_文档 发布时间: 20230911
...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Text_InputSingleline { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebG...
来源: Laya2.0_示例 发布时间: 20240930
...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
...? <!--封装了html动态排版功能--> <script type="text/javascript" src="libs/laya.html.js"></script> <!--粒子类库--> <script type="text/javascript" src="libs/laya.particle.js"></script> <!--提供tileMap解析支持--> ...
来源: Laya_社区 发布时间: 20170115
...添加了脚本。同时在舞台上添加另一个方便显示输出的`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