• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 976 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0062 秒)

631. 事件绑定不触发bug [ 68%]

...  = Laya.Event;         var Sprite  = Laya.Sprite;         var Stage   = Laya.Stage;         var Texture = Laya.Texture;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var WebGL   = Laya.WebGL;         var sp;            ...

来源: Laya_社区 发布时间: 20161128

632. laya.ui.CheckBox [ 68%]

...,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以...

来源: laya_api 发布时间: 20170929

633. laya.ui.Dialog [ 67%]

...,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以...

来源: laya_api 发布时间: 20170929

634. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 67%]

...kin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.Stage; var List    = Laya.List; var Handler = Laya.Handler; var WebGL   = Laya.WebGL;     (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL);   Laya.stage.alignV = Stage...

来源: Laya_社区 发布时间: 20180731

635. laya.ui.Dialog [ 67%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

来源: Laya2.0_api 发布时间: 20190513

636. laya.ui.Button_API3.0 [ 67%]

... Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成...

来源: Laya3.0_api 发布时间: 20231115

637. layabox与java交互 [ 67%]

...400); let hh = new Laya.Text(); hh.text = "laya安卓项目2"; hh.pos(Laya.stage.width / 2 , Laya.stage.height / 2); hh.fontSize = 20; hh.color = "red"; Laya.stage.addChild(hh); } } new GameMain(); var sData={type:"test"}; window.conchMarket.login(JSON.stringify(sData),function(data){ console.log(da...

来源: Laya_社区 发布时间: 20171129

638. WebGL 绘制图形报错 [ 67%]

...e = new Sprite(); mask.graphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。   附件 : --> 2017-02-16 添加评论 免费帖 --> 分享 微博 QZON...

来源: Laya_社区 发布时间: 20170216

639. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 67%]

...unction LayaSample() { //初始化引擎 Laya.init(640, 1136, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; //Stage.SCREEN_HORIZONTAL,Stage.SCREEN_VERTICAL Laya.stage....

来源: Laya_社区 发布时间: 20180705

640. 照着官方文档写的 Dialog 报错? [ 67%]

...source.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.ini...

来源: Laya_社区 发布时间: 20200924