大约有 168 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
...项目开发更高效。// 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = f...
来源: Laya_示例 发布时间: 20260929
...用了socket.io,进入页面的时候代码如下: _proto.onlineClick = function(){ var gold = StorageHelper.getUserGold(); if(gold > 500){ Online.joinGame().then(function(data){ console.log(data); StorageHelper.setDeskNo(data.desk.deskNo); StorageHelper.setDeskSeat(data.ownSeatNo); Laya.stage....
来源: Laya_社区 发布时间: 20171219
...ya.Event; var Layer = Laya.Layer; var Rectangle = Laya.Rectangle; function layaSlot(info){ layaSlot.__super.call(this); this.size(200,200); this.graphics.drawRect(0,0,200,200,'#123456'); var viewPort = new Rectangle(0,0,200,200); this.vi...
来源: Laya_社区 发布时间: 20170323
...shader.ParticleShader extends laya.webgl.shader.Shader var ParticleShader=(function(_super){ function ParticleShader(){ ParticleShader.__super.call(this,ParticleShader.vs,ParticleShader.ps,"ParticleShader"); } __class(ParticleShader,'laya.particle.shader.Par...
来源: Laya_社区 发布时间: 20171109
...删掉所有的声音channel */ __proto._onAniSoundStoped=function(force){ var _channel; for (var len=this._soundChannelArr.length,i=0;i < len;i++){ _channel=this._soundChannelArr; if (_channel.isStopp...
来源: Laya_社区 发布时间: 20190827
...如何使我的自定义类UIDropBox继承Laya.Sprite? var UIDropBox = (function () { var Sprite = Laya.Sprite; var Text = Laya.Text; function UIDropBox() { UIDropBox.super(this); this.txt = this.getTextFeild(); this.txt.y = 50; this.txt.text = 'aasassa'; console.log(this.addChild);//undefined con...
来源: Laya_社区 发布时间: 20161226
... { private var _templet:Templet; public function CombatRole() { super(); initView(); } private function initView():void { _templet ...
来源: Laya_社区 发布时间: 20170204
...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Text = Laya.Text; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var Sprite = Laya.Sprite; var Animation = Laya.Animation; // Class Character function Character(images) { Character.supe...
来源: Laya_示例 发布时间: 20260929
3Ddemo加载Unity导出场景报错resou._removeReference is not a function import { ui } from "./../ui/layaMaxUI"; /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本...
来源: Laya_社区 发布时间: 20190426
...问题: 修改GraphicsAni类中的构造函数,代码如下: public function GraphicsAni() { super(); if (Render.isConchNode) { this["drawSkin"] = function(skin:*):void { skin.transform || (skin.transform = Matrix.EMPTY); __JS__("this._addCmd([skin])"); this.setSkinMesh&&this.setSkinMe...
来源: Laya_社区 发布时间: 20180416