• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 279 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0052 秒)

91. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 73%]

... */ var effect; (function (effect) {     var GradientText = (function (_super) {         const style = {             DEFAULT: "default",             VERTICAL: "vertical",             HORIZONTAL: "horizontal",             TOP_LEFT: "topLeft",             TOP_RIGHT:...

来源: Laya_社区 发布时间: 20180824

92. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 73%]

...//背景 this.bg = null; //背景右边补丁 this.rightBg = null; Floor.__super.call(this); } //事件名称 //超过屏幕一定值出发新的floor事件 Floor.OUT_COMPLETE = "floor_out_complete"; //整个地板都不在屏幕里面事件 Floor.OUT_DIE = "floor_out_die"; //Floor 是一个显示...

来源: Laya_社区 发布时间: 20160801

93. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 73%]

...esource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this.offsetX=0; /**沿 Y 轴偏移量。*/ this.offsetY=0; /**原始宽度(包...

来源: Laya_社区 发布时间: 20180504

94. @regClass编译报错! [ 73%]

... var MachineCtrl = class extends CtrlBase {     constructor() {       super();     }   };   __name(MachineCtrl, "MachineCtrl");    // src/funcccccc.ts   var funzzzzz = class {     constructor() {     }     static run(callBack, caller, time) {       new MachineCtrl();     }   ...

来源: Laya_社区 发布时间: 20230608

95. viewport 的用法 [ 73%]

...ectangle = Laya.Rectangle;   function layaSlot(info){       layaSlot.__super.call(this);       this.size(200,200);       this.graphics.drawRect(0,0,200,200,'#123456');       var viewPort = new Rectangle(0,0,200,200);             this.viewport = viewPort;       var ccc = new Spr...

来源: Laya_社区 发布时间: 20170323

96. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 72%]

...题 import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite.loadImage("res/scene/1001/layer1/qiang.jpg", 100, 100, 100, 100); this.addChild(sprite); sprite = new Sprite(); sprite.graphics....

来源: Laya_社区 发布时间: 20180308

97. 粒子动画透明度问题 [ 70%]

...ticleShader extends laya.webgl.shader.Shader var ParticleShader=(function(_super){     function ParticleShader(){         ParticleShader.__super.call(this,ParticleShader.vs,ParticleShader.ps,"ParticleShader");     }      __class(ParticleShader,'laya.particle.shader.ParticleShade...

来源: Laya_社区 发布时间: 20171109

98. Button销毁时,未对_clickHandler进行回收 [ 70%]

...对_clickHandler进行回收 源代码: destroy(destroyChild = true) { super.destroy(destroyChild); this._bitmap && this._bitmap.destroy(); this._text && this._text.destroy(destroyChild); this._bitmap = null; this._text = null; this._clickHandler = null; this._labelColors = this._s...

来源: Laya_社区 发布时间: 20200514

99. 怎样复制bmf字体 [ 70%]

...字体。    class cloneLabel extends Laya.Label { constructor(_label) { super(); this.align = _label.align; this.x = _label.x; this.y = _label.y; this.width = _label.width; this.height = _label.height; this.fontSize = _label.fontSize; this.color = _label.color; this.font = _label.font; } } 2018-0...

来源: Laya_社区 发布时间: 20180517

100. 怎样获取父类? [ 70%]

...法,如何获取到上面那个父类呢? var TipsView = (function (_super){ function TipsView(params) { TipsView.super(this); this.sure.on(Laya.Event.MOUSE_UP,this,onSure); function onSure(params) { } } Laya.class(TipsView,"TipsView",TipsViewUI); return TipsView; })();   2017-10-17 添加评...

来源: Laya_社区 发布时间: 20171017