大约有 616 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(310) Laya2.0_示例(113) Laya_示例(84) Laya2.0_文档(57) Laya3.0_api(17) Laya3.0_文档(13) Laya2.0_api(13) laya_api(9)
..._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
...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
...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
...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
...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
... (图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
...。可以为负数。 Padding 设定容器内部四个方向的留空。 Align 在水平方向的对齐方式。 Valign 在垂直方向的对齐方式。 Fold Invisibles 如果勾选,当某个item不可见时(visible=false),布局时不会为他留位置,也就是排版时会忽略这个it...
来源: Laya3.0_文档 发布时间: 20251010
...;常用>标签中color设置为#3341e8,fontSize属性的值设为36,align选择为center,调整Lebel的宽高,width为 150,height为60(读者也可以自行修改面板数值或在画布中用鼠标拉伸调整)在<其他>标签中设置bgColor值为#e7c5c5,borderColor设置...
来源: Laya_社区 发布时间: 20171222
...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
... 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