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

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

341. 关于下拉列表的选择触发 [ 94%]

关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....

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

342. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 94%]

...abled="true"                          mouseOver="/*trace(this);*/currentCabinet=this;"                           >                     </mx:Canvas>                                  <mx:Canvas x="4" y="578" width=...

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

343. ReferenceError: Loading_fly is not defined [ 94%]

...ading_fly = function (_super) { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0.85; UIConfig.closeDialogOnSide = false; this.diango = new Laya...

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

344. timer.once(100,this,this.play,[参数名])在play方法中怎么获取参数名得值! [ 94%]

timer.once(100,this,this.play,[参数名])在play方法中怎么获取参数名得值! 例如:   var b:number = 1; Laya.timer.once(100,this,this.play,[b]);   在play():void{   }方法中如何获取b的值!!! 2018-03-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

345. 圆不跟谁 sprite 一起缩放? [ 94%]

...GameMain{ constructor() { Laya.init(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite;  public CreateCircle() { this._rootSp = new Laya.Spr...

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

346. 鼠标交互-自定义事件 [ 94%]

...tage.height / 2; sp.size(200, 200); Laya.stage.addChild(sp); sp.on(ROTATE, this, onRotate); // 侦听自定义的事件 sp.on(Event.CLICK, this, onSpriteClick); } function onSpriteClick(e) { var randomAngle = Math.random() * 180; //发送自定义事件 sp.event(ROTATE, [randomAngle]); } // 触发...

来源: Laya_示例 发布时间: 20250224

347. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 94%]

...d(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { this.progressBar = new ProgressBar("res/ui/progressBar.png"); this.progressBar.width = 400; this.progressBar.x = (Laya.stage.width - this.progressBar.width) / 2;...

来源: Laya2.0_文档 发布时间: 20210715

348. 用LayaAir引擎解析Tiled Map地图(JavaScript-2D进阶篇(JS)-扩展模块) [ 94%]

...Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect = new Laya.Rectangle(0,0,Laya.Browser.width,Laya.Browser.height); //创建TiledMap地图 this.tMap.createMap("res/TiledMap/orthogonal.json",...

来源: Laya2.0_文档 发布时间: 20210715

349. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 94%]

...ur numbers) are required, and the total number of values must be even"); } this.points = points; } private static distance(x1: number, y1: number, x2: number, y2: number): number { let dx = x2-x1; let dy = y2-y1; return Math.sqrt(dx*dx+dy*dy); } private getPoint(t: number, x0: number, y0: number, x1...

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

350. 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,并且两个list同时滚动一模一样。 [ 94%]

...决,谢谢! 注意点: 两个list的vScrollBarSkin都需要赋值; this.uiPanel.RankList.scrollBar.on( Laya.Event.CHANGE, this, this.OnScroll ); private OnScroll() { this.uiPanel.RankList1.scrollBar.value = this.uiPanel.RankList.scrollBar.value; } 2018-05-16 1 1 分享 微博 QZONE 微信 ...

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