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

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

61. 输入设备-地图 [ 93%]

...createDom(); initMap(); createInfoText(); var successHandler = new Handler(this, updatePosition); var errorHandler = new Handler(this, onError); // 使用高精度位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(successHandler, errorHandler); // 绑定作用域 convertToBaiduC...

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

62. 输入设备-地图 [ 93%]

...2628"; // 本地运行,需要在index.html中引用百度地图API文件 this.createDom(); this.initMap(); this.createInfoText(); let successHandler = new Handler(this, this.updatePosition); let errorHandler = new Handler(this, this.onError); // 使用高精度位置 Geolocation.enableHighAccuracy...

来源: Laya2.0_示例 发布时间: 20251130

63. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 93%]

...tring, width: number, align: string = "left",padding: number=0) { super(); this.width = width; this.resFix = resFix; this._align = align; this._padding = padding; } /** * 字间距 */ public set padding(v: number){ if(v === this._padding){return;} this._padding = v; if(this.text){ this.createFnt(thi...

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

64. 文本-自动调整文本尺寸 [ 93%]

..._CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { // 该文本自动适应尺寸 var autoSizeText: Text = this.createSampleText(); autoSizeText.overflow = Text.VISIBLE; autoSizeText.y = 50; // 该文本被限制了宽度 var widthLimit...

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

65. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 93%]

...邀请: 与内容相关的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRe...

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

66. UI-RefreshList [ 92%]

...ya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; this.refreshList = null; /** 消息生成的当前最大id值 */ this.msgIdNow=1; /** 滚动条效果是否停止 */ this.scro...

来源: Laya2.0_示例 发布时间: 20251130

67. DOM元素-表单输入 [ 92%]

...screenMode = Laya.Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#FFFFFF"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing...

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

68. emoji表情文字乱码 [ 92%]

...r CharSegment=(function(){     function CharSegment(){         this._sourceStr=null;     }      __class(CharSegment,'laya.webgl.text.CharSegment');     var __proto=CharSegment.prototype;     Laya.imps(__proto,{"laya.webgl.text.ICharSegment":true})     __proto.textToS...

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

69. Label 在设置。text时 底层this._tf为null 父节点又存在 还是偶发 [ 92%]

Label 在设置。text时 底层this._tf为null 父节点又存在 还是偶发 在设置Label.text属性情况下。Label存在可以log。设置的text string 也无问题。就是laya.ui.js 中this._tf为null导致 设置text失败。LayaAir2.13 版本。 附件 : --> 2022-08-23 添加评论 免...

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

70. List翻页效果 [ 92%]

...x: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rule.mouseHandler = new Laya...

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