大约有 12 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0025 秒)
...ider.width = 5; collider.height = 5; this.count++; } eventListener() { let label = this.label = Laya.Laya.stage.addChild(new Laya.Label("双击屏幕,将会产生100个新的小刚体")); label.top = 20; label.right = 20; label.fontSize = 16; label.color = "#e69999"; Laya.Laya.stage.on(Laya.Event....
来源: Laya2.0_示例 发布时间: 20251130
...peScript三种开发语言、LayaAirIDE让项目开发更高效。class UI_Label { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Lay...
来源: Laya2.0_示例 发布时间: 20251130
... 2; Laya.stage.addChild(tree); } } const Box = Laya.Box, Clip = Laya.Clip, Label = Laya.Label; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "right": "0", "clipY": "2"}...
来源: Laya2.0_示例 发布时间: 20251130
...utton; this.controller = new Button(buttonSkin, "暂停"); this.controller.labelBold = true; this.controller.labelColors = "#FFFFFF,#FFFFFF,#FFFFFF,#FFFFFF"; this.controller.size(84, 30); this.controller.on('click', this, this.onClipSwitchState); this.controller.x = (Laya.stage.width - this.controll...
来源: Laya2.0_示例 发布时间: 20251130
...marker = new BMap.Marker(new BMap.Point(0,0)); map.addOverlay(marker); let label = new BMap.Label("当前位置", { offset: new BMap.Size(-15, 30) }); marker.setLabel(label); } createInfoText() { const Text = Laya.Text; infoText = new Text(); Laya.stage.addChild(infoText); infoText.fontSize = 50; in...
来源: Laya2.0_示例 发布时间: 20251130
...htDelta = this.rowSpacing + this.rowHeight; // 显示左侧标签 this.showLabel("邮箱", 0, rowHeightDelta * 0); this.showLabel("出生日期", 0, rowHeightDelta * 1); this.showLabel("密码", 0, rowHeightDelta * 2); // 显示右侧输入框 let emailInput = this.createInputElement(); let birthday...
来源: Laya2.0_示例 发布时间: 20251130
...ya.timer.frameOnce(120, this, function () { newBall.destroy(); }); }); let label = this.label = Laya.Laya.stage.addChild(new Laya.Label("单击屏幕产生新的小球刚体,击向bridge的随机位置")); label.top = 20; label.right = 20; label.fontSize = 16; label.color = "#e69999"; } dispose() ...
来源: Laya2.0_示例 发布时间: 20251130
...ound); musicButton.on(Event.CLICK, this, this.onPlayMusic); } createButton(labelText) { let w = 110, h = 40; const Sprite = Laya.Sprite; let btn = new Sprite(); Laya.stage.addChild(btn); btn.size(w, h); btn.graphics.drawRect(0, 0, w, h, "#FF7F50"); btn.graphics.fillText(labelText, w / 2, 8, "24px Si...
来源: Laya2.0_示例 发布时间: 20251130
... this.button2.on(Event.CLICK, this, this.onDecreaseAlpha2); } createButton(label) { const Sprite = Laya.Sprite; let w = 300, h = 60; let button = new Sprite(); Laya.stage.addChild(button); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.size(w, h); button.graphics.fillText(label, w / 2, 17, ...
来源: Laya2.0_示例 发布时间: 20251130
...trongInOut'); easeFunctionsList.array = data; } renderList(item) { item.setLabel(item.dataSource); } onEaseFunctionChange(list) { const Tween = Laya.Tween, Ease = Laya.Ease; character.pos(100, 50); tween && tween.clear(); tween = Tween.to(character, { x: 350, y: 250 }, duration, Ease[list.selectedIt...
来源: Laya2.0_示例 发布时间: 20251130