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

大约有 4,095 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0080 秒)

661. DialogManager怎么添加遮罩层 [ 91%]

...大礼包通用素材/通用素材/背景黑色蒙版.png",0,0,1600,1080); this.scTipsPg= new ScTpisUI(); console.log(this.scTipsPg.manager); this.scTipsPg.manager=dialogManager; this.scTipsPg.manager.maskLayer=sprite1; this.scTipsPg.popupCenter=false; this.scTipsPg.top=60; this.scTipsPg.right=-510;...

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

662. TiledMap.moveViewPort(x,y) 为嘛要传入负数 [ 91%]

...0,-100 这是为啥? 我强行加入了 -  就可以了  let tmapsp=this.tMap.mapSprite();         tmapsp.zOrder=1;         this.tMap.changeViewPort(-((Laya.stage.width-this.tMap.width)/2),-((Laya.stage.height-this.tMap.height)/2),this.tMap.width,this.tMap.height);      ...

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

663. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 91%]

...大家。  //首先是加载资源 Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false));      /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.drawPie(216, 216,...

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

664. UI-ColorPicker [ 91%]

...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onColorPickerSkinLoaded)); })(); function onColorPickerSkinLoaded() { var colorPicker = new ColorPicker(); colorPicker.selectedColor = "#ff0033"; colorPicker.skin = skin; colorPicker.pos(100, 100); colorPicker.changeHan...

来源: Laya_示例 发布时间: 20251209

665. List组件拖动浏览时item会出现重叠的现象 [ 91%]

...可做的操作 list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); // 滚动条的橡皮筋操作:回弹时间及弹性距离 list.scrollBar.elasticBackTime = 200; list.scrollBar.elasticDistance = 5; Laya.stage.addChild(list); // 设置数据项为对应图片的路...

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

666. DialogManager怎么添加遮罩层 [ 91%]

...大礼包通用素材/通用素材/背景黑色蒙版.png",0,0,1600,1080); this.scTipsPg= new ScTpisUI(); console.log(this.scTipsPg.manager); this.scTipsPg.manager=dialogManager; this.scTipsPg.manager.maskLayer=sprite1; this.scTipsPg.popupCenter=false; this.scTipsPg.top=60; this.scTipsPg.right=-510;...

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

667. graphics透明度设置详细步骤 [ 91%]

... save;alpha;draw;restore;  比如://画一个半透明屎黄色区域 this.graphics.save(); this.graphics.alpha(0.5); this.graphics.drawRect(-40, -110, 80, 110, "#ffcc00"); this.graphics.restore(); //再画一个红色小半透明区域 this.graphics.save(); this.graphics.alpha(0.7); this.graphi...

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

668. HttpRequest感觉没有发成功 [ 91%]

...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com","","get","text"); function processHandler(data){ console.log(data); console.log("pro...

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

669. 关于protobuf读取的问题,js的lists.toArrayBuffer() 该如何读取? [ 91%]

...,js的lists.toArrayBuffer() 该如何读取? 根据官方的例子: this.byte.writeByte(1);//写入一个字节 this.byte.writeInt16(20);//写入一个int16的数据 然后依次读取 var a:int = this.byte.getByte(); var b:int = this.byte.getInt16(); 那么如果我这样: this.byte.writeIn...

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

670. drawToTexture截大图有问题,会丢失 [ 91%]

...题,会丢失 private nsp:Laya.Sprite;     init(): void {         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...

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