大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0053 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
...layoutSecond.visible = false; } //点击切换状态 private change(state: number, e: Laya.Event) { e.stopPropagation(); this.state = state; this.layoutSecond.visible = (state === 0); this.btnFirst.visible = (state !== 0); } } 2.定义一个界面,界面上放一个Panel(因为要滑动) clas...
来源: Laya_社区 发布时间: 20180810
...omplete));//加载资源。 } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * this.SPACING + this.Y_OFFSET; } } private...
来源: Laya2.0_示例 发布时间: 20260106
...(背景音乐或音效)的音量。 */ static setSoundVolume(volume: number, url: string = null): void { if (url) { SoundManager._setVolume(url, volume); } else { SoundManager.soundVolume = volume; for (let i = SoundManager._channels.length - 1; i >= 0; i--) { let channel = SoundManager._chan...
来源: Laya3.0_文档 发布时间: 20251010
...ART:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,BarCell.WID); private var pos:int = BarCell.WID*0.5; private var endTime:int; private var cdTime:int; public var isCd:Boolean = fal...
来源: Laya_社区 发布时间: 20171124
...04 20:55:27.386: I/cr_LibraryLoader(7884): Expected native library version number "52.0.2743.100", actual native library version number "52.0.2743.100" 07-04 20:55:27.407: V/WebViewChromiumFactoryProvider(7884): Binding Chromium to main looper Looper (main, tid 1) {a21da91} 07-04 20:55:27.407: I/cr_...
来源: Laya_社区 发布时间: 20190704
...templet:SpineTempletBinary; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动...
来源: Laya2.0_文档 发布时间: 20210715
...gColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite = this.createCharacter("res/cartoonCharacters/2.png"); charact...
来源: Laya2.0_示例 发布时间: 20260106
...数据,模拟树状列表数据,拼接列表的数据源 for (let i: number = 0; i < 5; i++) { //拼接目录数据结构(item标签这里可以自己定义标签名,用什么开头就用什么结束,但是title这里,一定要对应列表渲染单元的label文本节点name) treeData...
来源: Laya3.0_文档 发布时间: 20251010
...按我理解的,clear 即会停止掉该行为的执行 [i] } public b(i:number) { console.log("b " + i); }[/i] 然后我看了一下源码 laya.core.js 中 Timer 类中的相关函数, clear函数只清楚了一个Handler,并没有把其他相同Handler一起清除。 相关源码如下:[i]...
来源: Laya_社区 发布时间: 20200819
...te(): void { // 组装tree的数据 var treeData: string = ""; for (var i: number = 0; i "; for (var j: number = 0; j "; } treeData += ""; } treeData += ""; // 解析tree的数据 var xml:any = Utils.parseXMLFromString(treeData); var tree: Tree = new Tree(); tree.scrollBarSkin = "../../res/ui/vscrol...
来源: Laya_示例 发布时间: 20260106