大约有 237 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0043 秒)
...加的内容: 1. 可绑定内容的骨骼动画 export default class BindSkeleton extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; } /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.i...
来源: Laya_社区 发布时间: 20190805
...t1 */ var t2 = (function (_super) { function t2() { t2.super(this); } Laya.class(t2,'t2',_super); t2.prototype.a = function(){ console.log('2222'); } return t2; }(t1)); gls_laybox • 2018-01-04 11:35 额,你可能没仔细看我的代码,我的那个是自己写的类,如果是继承官方的...
来源: Laya_社区 发布时间: 20180104
... (function (_super) { function CommonDlg() { CommonDlg.super(this); } Laya.class(CommonDlg, "CommonDlg", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on close effect"...
来源: Laya_社区 发布时间: 20171107
....__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物品 _proto.ad...
来源: Laya_社区 发布时间: 20160728
...把demo发来我看一下 xdkaka • 2017-12-13 17:03 没办法发图了 class Main { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "...
来源: Laya_社区 发布时间: 20171213
...I.Button; import laya.ui.Image; /** * ... * @author Caixiansheng */ public class HProgressSlider extends HSlider { /**@private */ protected var _progress:Image protected var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():v...
来源: Laya_社区 发布时间: 20170327
...x、y和z方向上分别移动距离1,示例代码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; // 平移距离 private translate: Laya.Vector3 = new Laya.Vector3(1, 1, 1); cons...
来源: Laya3.0_文档 发布时间: 20240910
...ck); // 初始化 UI 界面显示 this.reset(); } // 注册 Start 类 Laya.class(Start,"Start",_super); var _proto = Start.prototype; // 初始化 UI 界面显示 _proto.reset = function(){ } _proto.onBeginClick = function(){ dialog.close(); restart(); } _proto.onLinkClick = function(){ alert("***")...
来源: Laya_社区 发布时间: 20180130
...var start = (function(_super){ function start(){ start.super(this); } Laya.class(start,"start",_super); //var _proto = Game.prototype; return start; })(ui.startUI) 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20181220
...0, 0, 0); function CmpScript() { CmpScript.super(this); this.x = 0; } Laya.class(CmpScript, "CmpScript", Laya.Script) CmpScript.prototype._initialize = function (owner) { var _this = this; CmpScript.__super.prototype._initialize.call(this, owner); } CmpScript.prototype._update = function (state) { C...
来源: Laya_社区 发布时间: 20161126