大约有 1,419 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0071 秒)
... constructor() { super(...arguments); this.relativeX = 0; this.relativeY = 0; this.isAloneObject = false; this.isHaveAnimation = false; this.drawImageNum = 0; this._map = nul...
来源: Laya_社区 发布时间: 20220627
... = console.log; console.warn = console.log; console.error = console.log; } this._message = new Message(); this._package = new Package(); this.socket = null; this.callbacks = {}; this.handlers = {}; // Map from request id to route this.routeMap = {}; this.heartbeatInterval = 0; this.heartbeatTimeout ...
来源: Laya_社区 发布时间: 20180119
...构, 也就是柱状顶点绘制 __proto.recreateResource=function(){ this._numberVertices=(this._slices+1+1)+(this._slices+1)*2+(this._slices+1+1); this._numberIndices=3 *this._slices+6 *this._slices+3 *this._slices; var vertexDeclaration=VertexPositionNormalTexture.vertexDeclaration; var vertex...
来源: Laya_社区 发布时间: 20180113
...m visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font) : this.fo...
来源: Laya_社区 发布时间: 20180417
...序入口 class GameMain{ constructor() { Laya.init(600,400); var that = this; Laya.loader.load([{"url":"res/playerKpiFont.json","type":Laya.Loader.JSON}, {"url":"res/playerKpiFont.png","type":Laya.Loader.IMAGE}],new Laya.Handler(that,function(){ var jsonData = Laya.loader.getRes("res/playerKpiFont....
来源: Laya_社区 发布时间: 20161014
...ngel.level; // 构造 function IsLand() { // 初始化 IsLand.__super.call(this); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 this.ball = ...
来源: Laya_社区 发布时间: 20170720
...者 标签崩溃问题 解决方法 HTMLElemen类中 var words = this._getWords(); if (words == null && (!this._children || this._children.length == 0)) return false; if (words) { for (var i = 0, n ...
来源: Laya_社区 发布时间: 20200724
...sh(m_MapImgUrl); Laya.loader.load(urls,Handler.create(this,loadResourceComplated)); } private function loadResourceComplated(e:*=null):void { //开始异步加载资源 Laya.loader.load(m_MapImgU...
来源: Laya_社区 发布时间: 20170921
...cene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.camera.sky = this.skyBox; this.skyBox.textureCube = Lay...
来源: Laya_社区 发布时间: 20170323
... laya 引擎是2.5的 Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{ let tur:Laya.Texture = Laya.loader.getRes(cg_url); if(tur)img_cg.graphics.drawImage(tur) }),null,Laya.Loader.IMAGE); 这段代码, 当 cg_...
来源: Laya_社区 发布时间: 20201130