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

大约有 264 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)

181. IOS的safari浏览器打开h5项目demo,游戏场景偏移(附件有完整demo) [ 71%]

...应的LayaAirAs3_1.7.0_beta 文档类代码如下: package { import laya.display.Stage; import laya.display.Text; import laya.ui.Image; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#235615"; //设置适配模式 Laya.stage.a...

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

182. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 70%]

...出符合自己需要的下拉框。 ```javascript package { import laya.display.Stage; import laya.display.Text; import laya.ui.ComboBox; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ComboBox { /***下边列表美术资源**/ private var skin:String = "../../../../res/ui/comb...

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

183. laya.display.BitmapFont_API3.0 [ 70%]

... Public/Protected All Inherited Externals Only exported Menu Globals "laya/display/BitmapFont" BitmapFont Class BitmapFont BitmapFont 是位图字体类,用于定义位图字体信息。 字体制作及使用方法,请参考文章 see http://ldc2.layabox.com/doc/?nav=ch-js-1-2-5 Hierarchy Resour...

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

184. laya.ui.WXOpenDataViewer_API3.0 [ 70%]

...enterX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY r...

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

185. 文本对齐与自动换行(TypeScript-LayaAir基础篇(TS)-文本) [ 70%]

...了解一下API的参数说明,再通过示例代码进行介绍。laya.display.text中关于文本样式的API参数: ![1](img/1.png) ![2](img/2.png) ![3](img/3.png) ![4](img/4.png) 给我们设置字体样式的代码中,先给这个文本设置一个文本区域,然后设置文本在文...

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

186. laya.ui.AdvImage_API3.0 [ 70%]

...enterX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pi...

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

187. 分享,扩展Laya.Text组件实现简单的富文本 [ 70%]

...s.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font) : this.font); Browser.context.font = ctxFont; var padding = this.padding; var startX = padding[3]; var textAlgin = "left"; var lineHeight = this.leading + this._charSize.he...

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

188. 求教 label.text之类的文本,能否支持从右到左的显示?或者有没有什么解决方案,现有阿拉伯文、维语的需求 [ 70%]

...    style = Browser.canvas.source.style;             style.display = "none";             style.position = "absolute";             style.direction = "rtl";             //Browser.document.body.style.direction = "rtl";             Render._...

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

189. 文本对齐与自动换行(JavaScript-LayaAir基础篇(JS)-文本) [ 69%]

...了解一下API的参数说明,再通过示例代码进行介绍。laya.display.text中关于文本样式的API参数: ![1](img/1.png) ![2](img/2.png) ![3](img/3.png) ![4](img/4.png) 给我们设置字体样式的代码中,先给这个文本设置一个文本区域,然后设置文本在文...

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

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

...类型 Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = ...

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