大约有 22 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0021 秒)
..."#232628"; this.setup(); } setup() { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel("#FFFFFF", "#00FFFF").pos(30, 150); this.cre...
来源: Laya2.0_示例 发布时间: 20241125
... Laya.Sprite(); Laya.stage.addChild(canvas); let path = []; path.push(0, -130); path.push(33, -33); path.push(137, -30); path.push(55, 32); path.push(85, 130); path.push(0, 73); path.push(-85, 130); path.push(-55, 32); path.push(-137, -30); path.push(-33, -33); canvas.graphics.drawPoly(Laya.stage.wi...
来源: Laya2.0_示例 发布时间: 20241125
...ent(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; let html = "使用"; html += "HTMLDivElement"; html += "创建的"; html += "HTML文本"; p.innerHTML = html; } showExternalHTML() { const HTMLIframeElement = Laya.HTMLIframeElement; let p = new HTMLIframeElement(); Laya....
来源: Laya2.0_示例 发布时间: 20241125
... triggered"); let text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触发了一次"; text.size(Laya.stage.width, Laya.stage.height); text.wordWrap = true; text.valign = "middle"; text.align = "center"; Laya.stage.addCh...
来源: Laya2.0_示例 发布时间: 20241125
...ild(ani); ani.loadAtlas(aniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ani.play(); // 播放图集动画 // 获取动画的边界信息 let bounds = ani.getGraphicBounds(); ani.pivot(bounds.width / 2, bounds.heig...
来源: Laya2.0_示例 发布时间: 20241125
...2,item3,item4,item5"); Laya.stage.addChild(comboBox); comboBox.labelSize = 30; comboBox.itemSize = 25; comboBox.selectHandler = new Handler(this, this.onSelect, [comboBox]); return comboBox; } onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } } new UI_ComboBox();module laya { import ...
来源: Laya2.0_示例 发布时间: 20241125
... { const Text = Laya.Text; let t = new Text(); t.text = text; t.fontSize = 30; t.color = "white"; t.bold = true; t.pivot(t.width / 2, t.height / 2); t.pos(x, y); Laya.stage.addChild(t); return t; } animateTimeBased() { this.rotateTimeBasedText.rotation += 1; } animateFrameRateBased() { this.rotateFr...
来源: Laya2.0_示例 发布时间: 20241125
...Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(550, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } createTexts() { this.createLabel("...
来源: Laya2.0_示例 发布时间: 20241125
...wLogger() { const Text = Laya.Text; logger = new Text(); logger.fontSize = 30; logger.color = "#FFFFFF"; logger.align = 'center'; logger.valign = 'middle'; logger.size(Laya.stage.width, Laya.stage.height); logger.text = "等待响应...\n"; Laya.stage.addChild(logger); } onHttpRequestError(e) { cons...
来源: Laya2.0_示例 发布时间: 20241125
...wLogger() { const Text = Laya.Text; logger = new Text(); logger.fontSize = 30; logger.color = "#FFFFFF"; logger.align = 'center'; logger.valign = 'middle'; logger.size(Laya.stage.width, Laya.stage.height); logger.text = "等待响应...\n"; Laya.stage.addChild(logger); } onHttpRequestError(e) { cons...
来源: Laya2.0_示例 发布时间: 20241125