大约有 350 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0038 秒)
Laya_社区(97) Laya_示例(78) Laya2.0_示例(68) Laya3.0_api(55) Laya2.0_文档(35) Laya3.0_文档(6) laya_api(6) Laya2.0_api(5)
...ass Tween_EaseFunctionsDemo { private character: Sprite; private duration: number = 2000; private tween: Tween; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode =...
来源: Laya_示例 发布时间: 20240930
parseInt FlashBuilder 报错。咋整? parseInt 一个 Number时 2018-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 w1114367261 赞同来自: 上传下你的错误信息和问题代码的截图我看下...
来源: Laya_社区 发布时间: 20180428
...eateLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor...
来源: Laya2.0_示例 发布时间: 20240930
...ller 赞同来自: class Item extends Laya.Box { public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image; //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image(); //...
来源: Laya_社区 发布时间: 20180507
...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.pn...
来源: Laya_示例 发布时间: 20240930
...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...
来源: Laya_示例 发布时间: 20240930
...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_示例 发布时间: 20240930
...Gravity: Laya.AccelerationInfo, rotationRate: Laya.RotationInfo, interval: number): void { this.info.text = 'acceleration:(' + acceleration.x.toFixed(3) + ', ' + acceleration.y.toFixed(3) + ', ' + acceleration.z.toFixed(3) + ')\n' + 'accelerationIncludingGravity:(' + accelerationIncludingGravity.x.t...
来源: Laya3.0_文档 发布时间: 20230303
...Gravity: Laya.AccelerationInfo, rotationRate: Laya.RotationInfo, interval: number): void { this.info.text = 'acceleration:(' + acceleration.x.toFixed(3) + ', ' + acceleration.y.toFixed(3) + ', ' + acceleration.z.toFixed(3) + ')\n' + 'accelerationIncludingGravity:(' + accelerationIncludingGravity.x.t...
来源: Laya2.0_文档 发布时间: 20210715