大约有 533 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
...下面是processTimer类 package uiLogic.core { import laya.display.Sprite; import laya.maths.Size; import laya.ui.Image; public class ProcessTimer extends Sprite { public var img:Image; public var maskSp:Sprite; pu...
来源: Laya_社区 发布时间: 20180404
...oLoaded),null,true,true); } function showProgress() { progressBar=new Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg",50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; progressBar.changeHandler=new Handler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChi...
来源: Laya_社区 发布时间: 20170701
... 图片异常 使用钢体设置防穿后仍有几率会穿透 如何设置Sprite的宽高和点击区域? 关于同为object层,层级设置无效的问题 Laya3D里的material可以设置flat shading么 请问有人遇到oppo小游戏字体显示异常 1.7.20beta有bug,帧属性面板打不...
来源: Laya_社区 发布时间: 20200117
... package { import laya.display.Text; import laya.display.Sprite; import laya.utils.Handler; import laya.resource.Texture; public class LayaSample { private var img:Sprite ; private var index:int ; public functi...
来源: Laya_社区 发布时间: 20170918
... } },[this.items.shaizi]); 弹层的代码: this.prizeAlertLayer = new Sprite(); this.prizeAlertLayer.zOrder = 90; this.prizeAlertLayer.size(W, H); let bg = new Sprite(); bg.alpha = 0.8; bg.graphics.drawRect(0,0,W,H,"#000000"); this.prizeAlertLayer.addChild(bg); this.prizeAlertLayer.addChild(...
来源: Laya_社区 发布时间: 20180601
...18 0 0 分享 微博 QZONE 微信 shaouXie 赞同来自: var bg = new Laya.Sprite(); bg.loadImage("res/bg-480x720.jpg"); Laya.stage.on(Laya.Event.RESIZE,this,onResize); function onResize() { var scale,scaleX,scaleY; scaleX = Browser.clientWidth/480; scaleY = Browser.clientHeight...
来源: Laya_社区 发布时间: 20161118
...aleMode = 'fixedauto' Laya.stage.screenMode = 'vertical' let bg = new Laya.Sprite(); bg.loadImage("../res/image/interface/intro_bg.png",375,667,1500,1500); bg.pivot(750,750) bg.alpha = 1 bg.rotation = 10图片是正方形的 如上设置过pivot之后 并没有按 正方形中心点旋转 2018-05-19...
来源: Laya_社区 发布时间: 20180519
创建多个Sprite对象后,再次取出来的时候坐标全为0,0高宽跟创建时的也不一样 在创建的不同位置的Sprite并设置了不同坐标以及相同大小之后,再次根据getChildByName()获取出来时x,y坐标居然是0,0而且高度跟宽度也会变化很多,请问...
来源: Laya_社区 发布时间: 20180427
sprite加载图片,如果设置其高固定,宽等比? $pic.loadImage(_pic, 14, 192, 0, 0, Handler.create(this, function(){ $pic.height = 246; $pic.scaleX = $pic.scaleY; trace("$pic.width:" + $pic.width); })); 这样处理后,图片高度还是100%,并不是246啊 2017-0...
来源: Laya_社区 发布时间: 20170503
... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...
来源: Laya3.0_api 发布时间: 20231102