大约有 1,054 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0045 秒)
Laya_社区(387) Laya2.0_api(241) laya_api(189) Laya2.0_文档(81) Laya_示例(65) Laya2.0_示例(51) Laya3.0_api(32) Laya3.0_文档(8)
...it(","); var split:String = url.indexOf("/") >= 0 ? "/" : "\\"; var idx:int = url.lastIndexOf(split); var folderPath:String = idx >= 0 ? url.substr(0, idx + 1) : ""; for (var i:int = 0, len:int = toloadPics.length; i < len; i++) { toloadPics[i] = folderPath + toloadPics[i]; } } else { //不...
来源: Laya_社区 发布时间: 20180830
...maxWith = max( maxWith, im.width) maxHeight = max( maxHeight, im.height) print im.width, im.height length=len(pngs) maxHeight += 2 if length > 0: finalHeight = maxHeight*length outIm = Image.new('RGBA',(maxWith, finalHeight), (0,0,0,0)) index=0 for im in pngs: left = (maxWith - im.width)*0.5 top ...
来源: Laya_社区 发布时间: 20180721
... */ public function stageShake(callBack:Function = null, times:uint = 2, offset:uint = 12, speed:uint = 32):void { if(_isShake) return; _isShake = true; var num:int = 0; var offsetArr:Array = [0, 0]; var point:Point = new Point(this.x, this.y); ...
来源: Laya_社区 发布时间: 20170823
...ation = new Animation(); this.animation.loadImages(images); this.animation.interval = 70; this.animation.play(0); this.addChild(this.animation); } createBloodBar() { const Sprite = Laya.Sprite; this.bloodBar = new Sprite(); this.bloodBar.loadImage("res/cartoon2/blood_1_r.png"); this.bloodBar.x = 20;...
来源: Laya2.0_示例 发布时间: 20241125
... var tempResouList:Vector.<Resource> = resouList.slice(); for (var i:int, n:int = tempResouList.length; i < n; i++) { res = tempResouList[i]; if (!res.lock && res._referenceCount === 0) res.destroy(); } } } else { for (var k:String in _idResourcesMap) { res = _idResourcesMap[k]; if ...
来源: Laya_社区 发布时间: 20190126
...50; var phoenixHeight = 400; var bgColorTweener = new Tween(); var gradientInterval = 2000; var bgColorChannels = { r: 99, g: 0, b: 0xFF }; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(phoenixWidth * 2, phoenixHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.al...
来源: Laya_示例 发布时间: 20241125
...PropertyDefined By angle : Number发射角度。ConeShape emitType : int发射类型,0为Base,1为BaseShell,2为Volume,3为VolumeShell。ConeShape enable : Boolean是否启用。BaseShape length : Number椎体长度。ConeShape radius : Number发射器半径。ConeShape randomDirection...
来源: laya_api 发布时间: 20170929
...PropertyDefined By angle : Number发射角度。ConeShape emitType : int发射类型,0为Base,1为BaseShell,2为Volume,3为VolumeShell。ConeShape enable : Boolean是否启用。BaseShape length : Number椎体长度。ConeShape radius : Number发射器半径。ConeShape randomDirection...
来源: Laya2.0_api 发布时间: 20190513
...eMain.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]; if (_heroItemList[i] == null) { item = new HeroResolveItem(this.onSelectedHeroChange); _heroIt...
来源: Laya_社区 发布时间: 20170321
...尔值类型 "boolean" 也可以用Boolean来标记该类型 整数类型 "int" 等价于 { type: Number, fractionDigits: 0 } 正整数类型 "uint" 等价于 { type: Number, fractionDigits: 0 , min: 0 } 多行字符串文本类型 "text" 等价于 { type: string, multiline: true } 任意类型 "any...
来源: Laya3.0_文档 发布时间: 20241014