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

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

111. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 74%]

...orderColor?: string; /** * 文本颜色 */ color?: string; /** * 字体 */ font?: string; /** * 字体大小 */ fontSize?: number; /** * 是否为斜体 */ italic?: number; /** * 行间距 */ leading?: number; /** * 描边宽度 */ stroke?: number; /** * 描边颜色 */ strokeColor?: string; /** * ...

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

112. 关于位图字体 [ 74%]

关于位图字体 是这样注册,吗 Laya.loader.load("res/font.fnt", Laya.Handler.create(this, this.onLoaded),null,Laya.Loader.FONT);   应该没什么问题了,就是这样的           附件 : --> 2017-02-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

113. ☆☆☆☆☆☆☆☆☆☆☆每增加一个 view 都会增加一个 drawcall 吗 ☆☆☆☆☆☆☆☆☆☆☆ [ 74%]

...ish.scoreGold); // 价格 fish.scoreText = new Laya.Text(); fish.scoreText.font = "fnt_10103"; // fish.scoreText.cacheAs = 'bitmap'; fish.scoreText.x = fish.scoreGold.width + fish.scoreGold.x - 4; fish.scoreText.y = fish.scoreGold.y + 2; fish.scoreText.text = price; this.scoreBox.addChild(...

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

114. HtmlDivElement的innerHTML属性BUG [ 74%]

...属性BUG var htmlDiv:HTMLDivElement = new HTMLDivElement(); htmlDiv.style.fontSize = 25; htmlDiv.style.color = "#ffffff"; Laya.stage.addChild(htmlDiv); htmlDiv.innerHTML = "<font color='#00ff00'>宝石1<br/>宝石2</font>";用了1.7.17版本测试,未解决,麻烦官方测试...

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

115. 文本-HTML文本 [ 74%]

...LDivElement; let p = new HTMLDivElement(); Laya.stage.addChild(p); p.style.font = "Impact"; p.style.fontSize = 30; let html = "使用"; html += "HTMLDivElement"; html += "创建的"; html += "HTML文本"; p.innerHTML = html; } showExternalHTML() { const HTMLIframeElement = Laya.HTMLIframeElement; le...

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

116. 计时器-延迟调用 [ 74%]

...ater() { console.log("onCallLater triggered"); var text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触发了一次"; text.size(Laya.stage.width, Laya.stage.height); text.wordWrap = true; text.valign = "middle"; text.a...

来源: Laya_示例 发布时间: 20251130

117. 计时器-延迟调用 [ 73%]

...ya.Text; console.log("onCallLater triggered"); let text = new Text(); text.font = "SimHei"; text.fontSize = 30; text.color = "#FFFFFF"; text.text = "打开控制台可见该函数仅触发了一次"; text.size(Laya.stage.width, Laya.stage.height); text.wordWrap = true; text.valign = "middle"; text.a...

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

118. FontClip引起IDE崩溃 [ 73%]

FontClip引起IDE崩溃 我在IDE中添加了Font Clip之后,发现Font Clip的skin和value不能同时为空,否则IDE就会卡死,不知道在游戏中会不会也卡死 2017-05-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

119. HTMLDivElement里的文字无法被选中 [ 73%]

HTMLDivElement里的文字无法被选中 innerHTML = "<span style='font-weight:bold;" + "font:24px Arial' " + "color='red' " + "href='http://ask.layabox.com/www.baidu.com'>" + "LayaBox</span><span>欢迎你的加入</span>" 添加到界面 可以显示出来但文字无法...

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

120. 加载ttf字体该怎么做 [ 73%]

...功,在index.html中我是这么写的     <style>         @font-face {             font-family: yy;             src: url("yy.ttf")         }     </style> 但是打包ipa在iphone上运行显示“不支持style”“不支持div”等等 请问该怎么加载tt...

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