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

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

161. 如何同时加载多个bmfont字体 [ 84%]

...", "res/bmfont/selfdamage.fnt", "res/bmfont/specialfont.fnt"], new Handler(this, this.loadbmfont)); private function loadbmfont():void{ Text.registerBitmapFont("123font", Constant.bmfont); Text.registerBitmapFont("critdamage", Constant.bmfont); Text.registerBitmapFont("enemydamage", Constant.bmfont)...

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

162. laya.ui.Clip_API3.0 [ 83%]

...y 的值,用于控制 clip 对象的显示位置。 clip.on(Event.CLICK, this, onClick);//给 clip 添加点击事件函数侦听。 Laya.stage.addChild(clip);//将此 clip 对象添加到显示列表。 } private function onClick():void { trace("clip 的点击事件侦听处理函数。clip.total...

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

163. laya.ui.Dialog_API3.0 [ 83%]

...景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实例对象 dialog。 dialog.dragArea = "0,0,150,50";//设置 dialog 的...

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

164. 【简单跑酷--JS版】---Lv.6 终篇 [ 83%]

...码如下  (function () { /** * 血条 * */ function Hp(type){ //背景 this.bg = null; //进度条 this.bar = null; //最小值 this.MIN_VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.init(type); } //能量类型 Hp.HP_TYPE_ENERGY = "hp_type_energy...

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

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

...  public function StorePage()         {             this.storelist.array = HostData.array //对list进行默认加载赋值             this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index            ...

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

166. 文本-禁止编辑 [ 83%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createInput(); } createInput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya....

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

167. list里面可以加入多个view吗? [ 83%]

...m<3;m++) { vdata.push({name:{text:'gggg'}}); //压入三个view对象 } this.lister.array = vdata; this.lister.vScrollBarSkin = ""; this.lister.scrollBar.hide = true; 整体UI结构: VIEW -----list --------view -------------label 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

168. Text.as中parseLines方法里的问题 [ 82%]

...行位置或截断位置 var needWordWrapOrTruncate:Boolean = wordWrap || this.overflow == HIDDEN; if (needWordWrapOrTruncate) { var wordWrapWidth:Number = getWordWrapWidth(); } if (_currBitmapFont) { _charSize.width = _currBitmapFont.getMaxWidth(); _charSize.height = _currBitmapFont.getMaxHeight();...

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

169. LayaAir开发笔记(1)五十音图连连看 [ 82%]

...true; copyright.pos(20, g_stat_heiht - 35); copyright.on(Laya.Event.CLICK, this, function() { window.location.href = "http://www.coderluan.com"; }); Laya.stage.addChild(copyright); 3.设置积分板和开始菜单 右下弄了个“点击开始游戏”的文本,点击只会游戏开始,这个...

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

170. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...vate displayText: Laya.Text; // 文本显示当前时间 onAwake(): void { this.lightComp = this.owner.getComponent(Laya.DirectionLight2D); // 初始化文本组件 this.displayText = new Laya.Text(); this.displayText.color = "#ffffff"; this.displayText.font = "Arial"; this.displayText.fontSize = 24...

来源: Laya3.0_文档 发布时间: 20251010