大约有 3,979 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0101 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...使用HTMLDivElement,宽度被固定为180了,这个怎末改,求救 var HTMLDivElement = Laya.HTMLDivElement; var textfiled = new HTMLDivElement(); this.addChild(textfiled); textfiled.pos(10, 10); textfiled.width = 890; textfiled.style.color = "#10922a"; textfiled.style.font = "黑体"; textf...
来源: Laya_社区 发布时间: 20190222
...undifine public function update():void { Utils.removeAll(panelHeroInfo); var heros:Array = GameMain.mainModel.heros.Heros; //获取 MainModel里的武将信息 var leng:int = heros.length; var item:HeroResolveItem; var heroInfo:SHeroInfo; for (var i:int = 0; i < leng; i++) { heroInfo = heros[i]; ...
来源: Laya_社区 发布时间: 20170321
照着官方文档写的 Dialog 报错? var LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, ...
来源: Laya_社区 发布时间: 20200924
...te(this, this.onSkinLoadComplete)); } private onSkinLoadComplete(): void { var dialog: Dialog = new Dialog(); var bg: Image = new Image(this.assets[0]); dialog.addChild(bg); var button: Button = new Button(this.assets[1]); button.name = Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WID...
来源: Laya2.0_示例 发布时间: 20250224
纹理截取后内存释放不了 private var oriDBArr:Array = null;//位图源 var tex:Texture = Laya.loader.getRes(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posO...
来源: Laya_社区 发布时间: 20170224
...,大家有兴趣的看看 正常渲染效果 alpha遮罩 用法: var texture: Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); La...
来源: Laya_社区 发布时间: 20170606
... if (index!==this.length){ var end=this.elements[this.length]; // @xd added, 添加end是存存在判断 if(end){ this.elements[index]=end; ...
来源: Laya_社区 发布时间: 20190618
...port laya.utils.Byte; import laya.webgl.WebGL; public class Game { private var socket:Socket; private var byte:Byte; public function Game() { //初始化引擎 Laya.init(600, 400,WebGL);// this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new S...
来源: Laya2.0_文档 发布时间: 20210715
....webgl.WebGL; public class UI_Clip { /***控制器按钮资源***/ private var buttonSkin:String = "../../../../res/ui/button-7.png"; /***切片资源***/ private var clipSkin:String = "../../../../res/ui/num0-9.png"; /***背景资源***/ private var bgSkin:String = "../../../../res/ui/coutDown.png"...
来源: Laya2.0_文档 发布时间: 20210714
...: public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private func...
来源: Laya_社区 发布时间: 20171011