大约有 229 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0165 秒)
Laya_社区(174) Laya2.0_示例(20) Laya_示例(18) Laya2.0_文档(9) Laya3.0_api(3) Laya3.0_文档(3) laya_api(1) Laya2.0_api(1)
...r(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new Laya.HTMLDivElement(); this.htmlTxt.style.fontSize = 20; this.htmlTxt.style.width = 200; this.htmlTxt.style.borderColor = '#000'; this.htmlTxt.style...
来源: Laya_社区 发布时间: 20210107
...面弄,而不是代码模式,代码模式我知道可以用sp.graphics.drawRect,但是在设计模式里面要操作呢,创建了sprite或panel,但是在属性栏里面并没有找到设置背景色或边框的属性! Laya_Aaron • 2018-07-02 10:56 拖一个sprite ,然后再矢量图...
来源: Laya_社区 发布时间: 20180629
...= 490, h = 770; bimgBox.graphics.drawRect(0, 0, w, h, "#FF7F50"); var rect = new Rectangle(0,0,200,200); bimgBox.scrollRect = rect; bimgBox.optimizeScrollRect = true; 这是我的调用方法,麻...
来源: Laya_社区 发布时间: 20170526
... Laya.stage.addChild(ctn); let drawSp = new Laya.Sprite(); drawSp.graphics.drawRect(0, 0, 100, 100, `#ffcc00`); drawSp.x = 200; drawSp.y = 200; //由 20 个项目(排列成 4 x 5 矩阵)组成的数组,灰图 var grayscaleMat: any[] = [0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0...
来源: Laya_社区 发布时间: 20250929
...=100; sp.height=100; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.MOUSE_OVER,this,onMouse); sp.on(Event.MOUSE_OUT,this,onMouse); Laya.stage.addChild(sp); Stat.sho...
来源: Laya_社区 发布时间: 20170920
...ya.stage.addChild(reference); reference.size(640, 960); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this,...
来源: Laya_社区 发布时间: 20180119
...: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.mouseThrough = false; Laya.stage.addChild(maskArea); 2018-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20180911
...ayaAirTest() { Laya.init(550,400); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(1000,100); sp.on(Event.CLICK,this,onClick); } private function onClick():void { Browser.window.location.href="https://www.baidu.com"; } 2016-12-15 0 0 分享 ...
来源: Laya_社区 发布时间: 20161215
...id { this.nsp=new Laya.Sprite(); this.nsp.graphics.drawRect(0,0,1600,1600,"#ff0000"); this.nsp.mouseThrough=true; Laya.stage.addChild(this.nsp); this.nsp.on(Laya.Event.CLICK,this,this.drawImg,null) } drawImg(e:Event=null):void{ ...
来源: Laya_社区 发布时间: 20220809
... var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } function onPlayMusic(e) { console.log("播放音乐"); SoundManager...
来源: Laya_社区 发布时间: 20170527