大约有 176 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0044 秒)
Laya_社区(90) Laya3.0_api(61) Laya2.0_文档(7) Laya2.0_示例(6) Laya_示例(5) Laya3.0_文档(5) laya_api(1) Laya2.0_api(1)
...299行, _dt() { var g = this.tips._graphics; g.clear(); g.fillText(this._tips[this.prei], -26, 0, this.fontstr, this.fc, "center"); g.fillText("(" + this.p + "%)", 1 / 2 * this._len[this.prei] - 26,...
来源: Laya_社区 发布时间: 20170518
... // 保证customRender必定执行 this.frameLoop(1, this, () => { this.graphics.clear(); this.graphics.drawLine(0, 0, 1, 0, '#000'); }); this.customRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webGLContext = context.ctx as Laya.WebGLCon...
来源: Laya_社区 发布时间: 20180728
...ask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.Tween.to(this.img, {x:100}...
来源: Laya_社区 发布时间: 20190722
...gin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font...
来源: Laya_社区 发布时间: 20180417
...ask则正常显示。 let bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.Tween.to(this.img, {x:100}...
来源: Laya_社区 发布时间: 20190722
...l[angelLel].y, data.angel[angelLel].w , data.angel[angelLel].h); this.ball.graphics.drawTexture(tBall, 0,0,548,305); this.tower.graphics.drawTexture(tTower, 0, 0, data.tower[towerLel].w , data.tower[towerLel].h); this.aeroboat.graphics.drawTexture(tAeroboat,0,0, data.aeroboat.w, data.aeroboat.h); th...
来源: Laya_社区 发布时间: 20170720
... = rect; pos = bian * 0.5; } public function set360(value:int):void { this.graphics.clear(); if(value == -1){ return; } this.graphics.drawPie(pos,pos,r,START+(360 - value), 270 , COLOR ,null,0); } private function ef():void { if( TheGame.GetServerTime() > endTime ){ this.stop(); return; } var now...
来源: Laya_社区 发布时间: 20171124
...Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ //创建一个实例 this.img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(this.img); //显示初始化绘制的图片 this.switchImg();...
来源: Laya_社区 发布时间: 20180226
...点3d射线碰撞和UI点击穿透的问题 event自定义事件的问题 graphics alpha 问题 (此问题已经无效) 问题状态 最新活动: 2018-08-06 10:43 浏览: 1025 关注: 2 人
来源: Laya_社区 发布时间: 20180802
...aya.Sprite(); Laya.stage.addChild(sp); //画曲线 if(x<100){ x++; } sp.graphics.clear(); sp.graphics.drawCurves(10, 58, [x, 0, 19, -100, 39, 0], "#ff0000", 3); } } new Scene(); 附件 : --> 2019-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20190520