大约有 168 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0055 秒)
...wGridList顺序,这样在调整zorder时是调整不到的__proto.render=function(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑似bug,麻...
来源: Laya_社区 发布时间: 20180412
...2-31 0 0 分享 微博 QZONE 微信 gaowei2024 赞同来自: var Loadings=(function(_super) { function Loadings(){ Loadings.super(this); var Stage = Laya.Stage; var ProgressBar = Laya.ProgressBar; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var progressBar; Laya.init(1024, 600,WebGL); Laya.s...
来源: Laya_社区 发布时间: 20171230
..., laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且...
来源: Laya_社区 发布时间: 20160722
...个版本修复, chaincollider的 方法 override protected function getDef():* { if (!_shape) { _shape = new window.box2d.b2ChainShape(); _setShape(false); } ...
来源: Laya_社区 发布时间: 20181116
... 提交 2 个回复 cuixueying 赞同来自: gls_laybox var IndexView = (function(_super){ this.angle; this.draw; this.box; this.circle; function IndexView(){ IndexView.super(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.bo...
来源: Laya_社区 发布时间: 20170807
...e((resolve, reject) => { Laya.Scene.load(url, Laya.Handler.create(this, function (scene) { // setLoadingPage为null 是为了避免引擎加载完场景自动关闭loadingPage Laya.Scene.setLoadingPage(null) resolve(scene) }), progress) }) } _promiseHandler() { return new Promise((resolve, reject...
来源: Laya_社区 发布时间: 20181124
...片32x48 this.Role.pos(100, 200); Role.js基础代码: var Role = ( function ( _super ) { function Role () { Role._super.call(this); /***一些基础信息***/ } Laya.class( Role , "Role" , Sprite ); var _proto_ = Role.prototype; /******/ return Role; })(); 2018-10-12 添加评论 免费帖 -->...
来源: Laya_社区 发布时间: 20181012
...l=null; this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) { function GameInfo() { GameInfo.super(this); // this.infoLabel.text = "abc"; 这个也报异常应该是找不到infoLabel // 注册按钮点击事件 点击后暂...
来源: Laya_社区 发布时间: 20171118
...* this class is a extension of texts with gradient color */ var effect; (function (effect) { var GradientText = (function (_super) { const style = { DEFAULT: "default", VERTICAL: "vertical", HORIZONTAL: "horizontal", ...
来源: Laya_社区 发布时间: 20180824
...这是官方提供的代码 微信主域代码: Laya.timer.once(400,this,function():void{ var rankTexture:Texture = new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,rankTe...
来源: Laya_社区 发布时间: 20180504