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

大约有 240 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

221. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 40%]

...我翻倍的增加,如何解决 _proto.room_xinxi=function(){ this.roombg=new Laya.Image($mj.Curr_Game_ImagePath + "hall/room_bg.png"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan.png"); button.pos(300...

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

222. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 40%]

...m {     export class GmPanelUI extends Laya.Base {         public bg:Laya.Sprite;         public input:Laya.TextInput;         public btnSend:Laya.Button;         public btnClose:Laya.Button;         constructor(){ super()}         createChildren():void {  ...

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

223. laya.ui.ProgressBar [ 39%]

... Sprite  bar : Image[read-only] 获取进度条对象。 ProgressBar  bg : Image[read-only] 获取背景条对象。 ProgressBar blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(...

来源: laya_api 发布时间: 20170929

224. 报无法找到资源,未升级ide之前不报错 [ 39%]

...{ let resArr: Array<any> = [ { url: "resources/UI/images/dsgame/bgImage2.jpg", type: Laya.Loader.IMAGE }, { url: "resources/UI/images/dsgame/index_bg.jpg", type: Laya.Loader.IMAGE }, { url: "resources/UI/images/dsgame/say_right2.png", type: Laya.Loader.IMAGE }, { ...

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

225. laya.ui.ProgressBar [ 39%]

... Sprite  bar : Image[read-only] 获取进度条对象。 ProgressBar  bg : Image[read-only] 获取背景条对象。 ProgressBar blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(...

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

226. 用laya自带的ui编辑器 编辑了一个ui界面,怎么加载啊? 怎么写代码让这个ui界面, 在程序运行时,显示出来啊? [ 37%]

...urn this.uiView={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,"height":37,"sizeGrid":"4,4,4,4","var":"btn"},"type":"Button"},{"prop...

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

227. laya.ui.TextInput [ 34%]

...Bounds方法获取。设置为true,对性能有一定影响。 Sprite  bg : AutoBitmap 表示此对象包含的文本背景 AutoBitmap 组件实例。 TextInput bgColor : String 文本背景颜色,以字符串表示。 Label blendMode : String指定要使用的混合模式。目前只支持"...

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

228. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 32%]

... false]; private init() { // 设置背景色为场景高度 this.box_color_bg.height = Laya.stage.height; } onEnable() { this.init(); // 判定是注册还是忘记密码 if (GameData.I.isReg) { this._regMode(); } else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK,...

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

229. laya.net.LoaderManager [ 29%]

...ader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg"); clearUnLoaded()method  public function clearUnLoaded():void 清理当前未完成的加载,所有未加载的内容全部停止加载。create()method  public function create(url:*, complete:Handler = null, prog...

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

230. Laya中Button等组件lose skin的问题 [ 28%]

...源也都进行了预加载。 //程序入口 Laya.init(852, 480, Laya.WebGL);  let resArr = [              {url:"wxlocal/enemy.png",type:Laya.Loader.IMAGE},              {url:"wxlocal/bg2.jpg",type:Laya.Loader.IMAGE} ];  Laya.loader.load(resArr, Laya.Handler.create(null, o...

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