大约有 159 项符合查询结果, 库内数据总量为 30,956 项。 (搜索耗时: 0.0043 秒)
...haracter(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); animation.interval = 70; animation.play(0); this.ad...
来源: Laya_示例 发布时间: 20250404
...' var htmlC:HTMLCanvas = btn_edit.drawToCanvas(btn_edit.width, btn_edit.height, 0, 0); var interceptT:Texture = new Texture(htmlC); var img:Sprite = new Sprite; img.graphics.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img); 如图和代码(一个按钮...
来源: Laya_社区 发布时间: 20190422
...// 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); } connect() { const Socket = Laya.Soc...
来源: Laya2.0_示例 发布时间: 20250404
...e var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); this.texture = renderTexture; //将当前渲染的结果拷贝到创建好的RenderTexture buf.blitScreenTriangle(null,renderTexture); //获得模...
来源: Laya3.0_文档 发布时间: 20240910
...list:List; public function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=...
来源: Laya_社区 发布时间: 20170626
...ter.WIDTH) this.x = -Character.WIDTH; } } Character.WIDTH = 110; Character.HEIGHT = 110; new PerformanceTest_Cartoon2();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import Animation = Laya.Animation; import Sprite = Laya.Sprite...
来源: Laya2.0_示例 发布时间: 20250404
...e var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); this.texture = renderTexture; //将当前渲染的结果拷贝到创建好的RenderTexture buf.blitScreenTriangle(null,renderTexture); //获得模...
来源: Laya2.0_文档 发布时间: 20210715
...果。 var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; text-shadow: 0...
来源: Laya3.0_文档 发布时间: 20240910
...tmap"; _colorSpr.pos((1024 - _colorTex.width) >> 1, (768 - _colorTex.height) >> 1); _colorSpr.size(_colorTex.width, _colorTex.height); Laya.stage.addChild(_colorSpr); _initPixelCount = getPixel(_colorTex); addEvent(); } private function addEvent():void { _colorSpr.on(Event.MOUSE_MOVE, th...
来源: Laya_社区 发布时间: 20180302
... {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24", "name": "selectBox", "skin": "ui/clip_selectBox.png", "right": "0", "clipY": "2"}}, {"type": "Clip", "props": {"y": "4", "x": "14", "name": "folder", "clipX": "1", "skin": "ui/clip_tree_folder.png", "clipY": "3...
来源: Laya2.0_文档 发布时间: 20210715