大约有 1,781 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1430) Laya3.0_api(102) Laya2.0_文档(77) Laya2.0_api(64) Laya2.0_示例(37) Laya_示例(36) Laya3.0_文档(26) laya_api(9)
...= Laya.WebGL; var SPACING = 100; var INPUT_WIDTH = 300; var INPUT_HEIGHT = 50; var Y_OFFSET = 50; var skins; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stag...
来源: Laya_示例 发布时间: 20241118
...目开发更高效。let SPACING = 100, INPUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800...
来源: Laya2.0_示例 发布时间: 20241118
...同来自: class Main { constructor() { //初始化舞台 Laya.init(1334,750,Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 this.createImg(100,50); //红色滤镜 this.creteRedFilter(); //灰色滤镜 this.createGrayFilter(); } /**创建位图**/ private createIm...
来源: Laya_社区 发布时间: 20200522
...his.createCharacter("res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; let characterB = this.createCharacter("res/cartoonCharacters/2.png"); characterB.pivot(34, 50); characterB.y = 250; Laya.stage.graphics.drawLine(terminalX, 0, terminalX, Laya.stage.height, "#FFFFFF");...
来源: Laya2.0_示例 发布时间: 20241118
... Report temperature: [ap] temp :49 report_threshold:1 08-14 10:57:48.525 5024-6040/? D/ThermalStateManager: Thermal type: 0 cur_temperature:49 08-14 10:57:48.623 22228-22268/? I/YWTJ*****: 1534212988ahwzdht5 08-14 10:57:48.623 22228-22268/? I/YWTJ----: data_type=2&unique_id=1534212988ahwzdht5&...
来源: Laya_社区 发布时间: 20180814
...kin = "new/textinput.png"; input.x = 256; input.y = 128; input.sizeGrid = "50, 50, 50, 50"; input.fontSize = 60; input.size(256, 128); input.align = "center"; input.color = "#ff0000"; input.overflow = Laya.Text.SCROLL; input.wordWrap = false; input.maxChars = 10; 2017-08-20 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20170820
...t dd = new Laya.Sprite(); dd.graphics.drawTexture(this.img.texture, 0, 0, 750, 1334); dd.x = 50; dd.y = 50; this.addChild(dd); this.img 绝对不为空,我想用一个sprite来画它,请问什么画(不是拷贝)? 2018-01-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180124
...askSp = new Sprite(); maskSp.loadImage("../../res/mask.png"); maskSp.pivot(50, 50); //设置mask bg2.mask = maskSp; Laya.stage.on("mousemove", this, onMouseMove); } function onMouseMove() { bg2.x = -Laya.stage.mouseX * 2; bg2.y = -Laya.stage.mouseY * 2; maskSp.x = Laya.stage.mouseX; maskSp.y = Laya....
来源: Laya_示例 发布时间: 20241118
... new Laya.TextInput(); input.skin = "new/textinput.png"; input.sizeGrid = "50, 50, 50, 50"; input.fontSize = 80; input.size(128, 128); input.align = "center"; input.on(Laya.Event.INPUT, this, this.input, [input]); private input(input:Laya.TextInput, event:Event){ if(input.text.length > 2){ input....
来源: Laya_社区 发布时间: 20170820
...ew Sprite(); Laya.stage.addChild(sp); sp.alpha = 0.8; sp.graphics.drawRect(50,50,50,50,"#ff0000"); var sp1:Sprite = new Sprite(); sp1.alpha = 0.5; //Laya.stage.addChild(sp1); //画扇形 当这个扇形画的角度是 0-360度时 舞台上红色矩形不见了 sp1.graphics.drawPie(75,75,40,0,360,"#f...
来源: Laya_社区 发布时间: 20180111