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

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

151. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 70%]

...); musicButton.on(Event.CLICK, this, onPlayMusic); } function createButton(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChi...

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

152. textArea滚动条异常问题 [ 69%]

...高,滚动条就出现了。初步确定是键盘输入文字无法改变label的textHeight,还是说别的什么情况?有没有什么处理方式? 2017-08-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...

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

153. 字符串重复缓存过多数据,占用大量资源 [ 69%]

... 1 个回复 Laya_Aaron 赞同来自: 文字是画上去的, 用 text 和label 就是每个对象都画一次, 这个文字相同只是我们作为开发者知道,引擎并没有对组件内容进行判断   graphics 的动态文本  fillText  可以 做到 相同的文字 只缓存一次 ...

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

154. UI-RefreshList [ 69%]

...t; Handler = Laya.Handler; WebGL = Laya.WebGL; Animation = Laya.Animation; Label = Laya.Label; Text = Laya.Text; Point = Laya.Point; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.load...

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

155. 列表里的元素可以播放动画吗 [ 68%]

... 如果没解锁进行赋值                   var goldlabel:Label = gold.getChildByName("goldLabel")as Label;                   goldlabel.text= HostData.array[index].gold;//商城角色购买金额的赋值                   }else{    ...

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

156. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 68%]

...teController() { controller = new Button(buttonSkin, "暂停"); controller.labelBold = true; controller.labelColors = "#FFFFFF,#FFFFFF,#FFFFFF,#FFFFFF"; controller.size(84, 30); controller.on('click', this, onClipSwitchState); controller.x = (Laya.stage.width - controller.width) / 2; controller.y = ...

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

157. 滤镜GlowFilter [ 68%]

...频率很高的时候回出现黑屏闪烁 发光滤镜的效果,针对label没有效果吗 问题状态 最新活动: 2017-01-18 12:14 浏览: 1526 关注: 2 人

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

158. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 68%]

...{ this.controller = new Button(this.buttonSkin, "暂停"); this.controller.labelBold = true; this.controller.labelColors = "#FFFFFF,#FFFFFF,#FFFFFF,#FFFFFF"; this.controller.size(84, 30); this.controller.on('click', this, this.onClipSwitchState); this.controller.x = (Laya.stage.width - this.controll...

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

159. 关于list滚动位置的问题 [ 68%]

... = new Handler(this, onChange); for(var m:int=0;m<21;m++){ data.push({m_label:"No."+m}); } mDemoUi.m_list.array=data; Laya.stage.addChild(mDemoUi); ... private function onChange():void{ trace("list index= "+mDemoUi.m_list.scrollBar.value); mDemoUi.valueLab.text="滚动条位置value= "+mDemoUi.m_...

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

160. laya.ui.TextInput [ 68%]

...s | Events Packagelaya.uiClasspublic class TextInputInheritanceTextInput Label Component Sprite Node EventDispatcher ObjectSubclasses TextArea TextInput 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Prope...

来源: laya_api 发布时间: 20170929