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

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

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

..._SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; 2.设置标题和输出信息 网上找了个图片当背景,加了个text当标题,加了版权信息,并且为版权信息注册了个匿...

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

562. 分享一个自己做的游戏公告功能,跑马灯效果 [ 46%]

...tml.style.wordWrap = false this.html.style.lineHeight = 55 this.html.style.align = "left" this.html.style.color = "#fff" this.html.innerHTML = "" this.hornBox.addChild(this.html) this.addChild(this.hornBox) } /** 滚动动画 */ private _animate(e: Event): void { const _w = this.html.width const _x ...

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

563. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...t.fontSize = 25; this.text.width = 800; this.text.anchorX = 0.5; this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 this.hr = new HttpRequest(); //请求响应的...

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

564. swf转成H5资源显示超出原有范围 [ 45%]

...Clip;     import flash.display.Sprite;     import flash.display.StageAlign;     import flash.display.StageScaleMode;     import flash.events.Event;     import flash.net.URLRequest;     import flash.system.ApplicationDomain;     import flash.system.LoaderContext;     import fl...

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

565. List滚动条问题 [ 45%]

...line = (parseInt(font.underline | 0) == 0 ? false : true); this._goldLabel.align = "center"; this._goldLabel.valign = "middle"; this._goldLabel.pos(0, 50); this._goldLabel.size(312, 20); this.addChild(this._goldLabel); // 金豆图片 this._goldImage = new Laya.Image(); this.addChild(this._goldImage...

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

566. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

... (图1-2) 属性:text、font、fontSize、color、style、syntax、align、bgColor、bordercolor、overflow、wordWrap(默认为true)、leading、padding、underlinecolor、stroke、strokeColor、skin、sizeGrid、type、maxchars、restrict、prompt、promptcolor、editable、multiline(...

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

567. 布局容器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...。可以为负数。 Padding 设定容器内部四个方向的留空。 Align 在水平方向的对齐方式。 Valign 在垂直方向的对齐方式。 Fold Invisibles 如果勾选,当某个item不可见时(visible=false),布局时不会为他留位置,也就是排版时会忽略这个it...

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

568. 【分享】[UI组件专题] Label 与 Button (附:九宫格,九妹图) [ 44%]

...;常用>标签中color设置为#3341e8,fontSize属性的值设为36,align选择为center,调整Lebel的宽高,width为 150,height为60(读者也可以自行修改面板数值或在画布中用鼠标拉伸调整)在<其他>标签中设置bgColor值为#e7c5c5,borderColor设置...

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

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

...scoreTxt.text = "0"; this.scoreTxt.width = Config.GameWidth; this.scoreTxt.align = "right"; this.scoreTxt.x = -10; this.scoreTxt.y = 10; this.addChild(this.scoreTxt); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MO...

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

570. laya.ui.LayoutBox [ 43%]

... Public Properties Show Inherited Public Properties PropertyDefined By  align : String 子对象对齐方式。LayoutBox alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX轴锚点,值为0-1Component anchorY : Nu...

来源: laya_api 发布时间: 20170929