Godot-富文本

作用:添加链接(比如赞助网站,或者相关站点什么的)

 

效果如下:

 

 

 

 

 

 

(引用Godot官网)

Introduction

RichTextLabel allows the display of complex text markup in a control. It has a built-in API for generating the markup, but can also parse a BBCode.

Note that the BBCode tags can also be used, to some extent, in theXML source of the class reference.

Setting up

For a RichTextLabel to work properly, it must be set up. That means loading the intended fonts in the relevant properties:

../../_images/rtl_setup.png

Reference

CommandTagDescription
bold[b]{text}[/b]Makes {text} bold.
italics[i]{text}[/i]Makes {text} italics.
underline[u]{text}[/u]Makes {text} underline.
strikethrough[s]{text}[/s]Makes {text} strikethrough.
code[code]{text}[/code]Makes {text} monospace.
center[center]{text}[/center]Makes {text} centered.
right[right]{text}[/right]Makes {text} right-aligned.
fill[fill]{text}[/fill]Makes {text} fill width.
indent[indent]{text}[/indent]Increase indent level of {text}.
url[url]{url}[/url]Show {url} as such.
url (ref)[url=<url>]{text}[/url]Makes {text} reference <url>.
image[img]{path}[/img]Insert image at resource {path}.
font[font=<path>]{text}[/font]Use custom font at <path> for {text}.
color[color=<code/name>]{text}[/color]Change {text} color; 

 

转载于:https://www.cnblogs.com/empist/p/10328353.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值