大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0076 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...unction(force){ var _channel; for (var len=this._soundChannelArr.length,i=0;i < len;i++){ _channel=this._soundChannelArr; if (_channel.isStopped || force){ !_channel.isStopped &&...
来源: Laya_社区 发布时间: 20190827
...0% 打印了下,loadingView.prototype.loading = function (value) { if (this.bridge) { if (this.sOS == "Conch-ios") { this.bridge.call("loading:", value); } else if (this.sOS == "Conch-android") { this.bridge.call("loading", value); } console.log("loadingView.prototype.loading=" + value); } }; ...
来源: Laya_社区 发布时间: 20190724
...leFilter:ColorFilter = new ColorFilter(grayscaleMat); this.filters = [grayscaleFilter]; 2、按键松开时,清除这个颜色变化, this.filters = null; 按键的位置莫名其妙的移到屏幕正中间?这个怎么解决?谢谢! 2017-05-26 添加评...
来源: Laya_社区 发布时间: 20170526
...Image; //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image(); //this.text = new Laya.Label(); this.addChild(this.img); //this.addChild(this.text); } public setImg(src: string): vo...
来源: Laya_社区 发布时间: 20180507
...加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mouseHandler(e:laya.events.Event):void { var touches: Array<an...
来源: Laya_社区 发布时间: 20181102
...要如何写,如下: btnclick.js 如下: onAwake(){ this.btn = this.owner; this.btn.on(Laya.Event.CLICK,this,this.cli) } cli(){ /// how to 获得text 对象,并改变text的值??? ...
来源: Laya_社区 发布时间: 20200412
...添加一个页面TipsView为子类 ... ... var tipView = new TipsView(); this.addChild(tipView); function enterNextScene() { } ... ... //这个是TipsView.js类,我想在这个类里调用上面那个父类里enterNextScene的方法,如何获取到上面那个父类呢? var TipsVie...
来源: Laya_社区 发布时间: 20171017
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Text = Laya.Text; let t1 = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); let t2 = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); let t3 = this.creat...
来源: Laya2.0_示例 发布时间: 20250226
...现渐变填充对象呀? 请问LayaAir如何绘制一个渐变矩形? this.graphics.drawRect(0, 0, 500, 350, "#ffffff") drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 参数fillColor:* — 填充颜色,或者填充绘图...
来源: Laya_社区 发布时间: 20180904
....stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.loadFont(); } loadFont() { const BitmapFont = Laya.BitmapFont, Handler = Laya.Handler; Laya.loader.load([{ url: ['res/bitmapFont/test.fnt'], type: Laya.Loader.FONT }], Handler.create(this, () => { ...
来源: Laya_社区 发布时间: 20190221