unity3d插件Daikon Forge GUI 中文教程6-高级控件richtextlabel的使用
3.5、richtextlabel文本
可以像Word文档一样编辑出多样的内容,图片,字体颜色大小下划线、超链接背景等等。
Defaults:
默认字体
默认图集
Blank Texture :空白的纹理
Appearance :
Font Size 默认字体大小
Line Height 行的高度,最小也不会小于默认字体大小(系统处理)。
TextStyle 默认文本的风格,加粗下划线斜体等。
keep whitespace 是否使用Text中文本的换行(Html的换行是:<br/>,如果选中,那么正常文本中的普通换行也算是换行)
Text Color 默认的文本颜色。
Alignment 文本的对其方式。
Layout :
Auto Height 是指自动调整上面Layout-》 Size-》 Height的大小。如果设置了那么下面的滚动条Scrolling选项就不能再用了。要根据实际的情况进行取舍。
Scrolling:
Allow Scroll是否允许滚动。
Scroll Pos x,y 设置水平,垂直滚动条的起始滚动值。
Add Momentum 作用还是未知,
水平滚动条对象。
垂直滚动条对象。
DF-gui呢使用了编写网页的标记性语言。 大家可以了解一下例子看看,下面是例子的一部分代码。
编辑上面的图片中的内容需要填写的文本的内容。如下:
Text:
<h1 color=yellowstyle="vertical-align: top; margin: 0;"><imgsrc="dfgui-icon" height=100 color=white> Using Rich TextMarkup</h1>
<h2color=cyan>Introduction</h2>
<p padding="5 10" style="text-align:justify; margin: 25px">
The DF-GUI Rich Text Control uses Unity'sdynamic fonts system to render TTF or OTF fonts
without requiring the use of a textureatlas. The dynamic font system builds a dynamic
texture atlas internally "ondemand", allowing you to use multiple font styles (like<b>bold</b> and
<i>italic</i>) as well as<font size="125%">different sizes</font> all in the sameline of text.
</p>
<p style="text-align: justify;margin: 25px">This also allows you to mix and match character sets inthe same label, like the following:
<ul>
<li>Japanese:<span style="color: orange">日本語</span></li>
<li>Chinese:<span style="color: orange">汉语/漢語</span></li>
<li>Korean:<span style="color: orange">한국어/조선말</span></li>
<li>Hebrew:<span style="color: orange">עִבְרִית</span></li>
<li>Greek:<span style="color: orange">κρίνω</span></li>
<li>etc...</li>
</ul>
</p>
<p style="text-align: justify;margin: 25px">
All text in this panel was rendered with asingle <b>dfRichTextLabel</b> control.
All font styles, colors, sizes, and effectswere specified through the use of an
HTML-like markup that has been specificallydesigned to be familiar to people
who have experience with HTML. Much like<a href="http://docs.unity3d.com/Documentation/Manual/StyledText.html"style="color: Green; font-style: bold">Unity's built-in"rich text" markup</a>,
the<strong>dfRichTextLabel</strong> control uses a subset of thespecified HTML tags to control
text formatting, but unlike Unity'ssolution the tags that <strong>dfRichTextLabel
………………………………………….
<br/>
unity3d插件Daikon Forge GUI 中文教程6-高级控件richtextlabel的使用的更多相关文章
- unity3d插件Daikon Forge GUI 中文教程-3-基础控件Button和Sprite的使用
(游戏蛮牛首发)大家好我是孙广东.官网提供了专业的视频教程http://www.daikonforge.com/dfgui/tutorials/,只是是在youtube上.要观看是须要FQ的. 只是教 ...
- unity3d插件Daikon Forge GUI 中文教程3-基础控件Button和Sprite的使用
2.2添加一个按钮Button 来看看特有的属性:Button Properties Data 显示的文本 Behavior 中的几个: Aoto Size 选中时就是按钮的背景会根据Data中的文本 ...
- unity3d插件Daikon Forge GUI 中文教程2-基础控件Label的使用
我们先来设置 UI Root 中的如下:屏幕大小为1024*768 2.1 新建一个Label 控件 先来看看Control Properties (基本上是所有控件都共用的)的以后不再介绍,参数: ...
- unity3d插件Daikon Forge GUI 中文教程1-Daikon Forge介绍
DF-GUI特点: · 深编辑器集成:DF-GUI提供广泛的整合与Unity3D编辑环境,包括自定义检查人员对每个组件向导来简化复杂的多步任务,提高生产力的上下文菜单,编辑控件在一个所见 ...
- unity3d插件Daikon Forge GUI 中文教程-1-Daikon Forge介绍
(游戏蛮牛首发)大家好我是孙广东官网提供了专业的视频教程http://www.daikonforge.com/dfgui/tutorials/,只是是在youtube上,要观看是须要FQ的. 只是教程 ...
- unity3d插件Daikon Forge GUI 中文教程-5-高级控件listbox和progress bar的使用
(游戏蛮牛首发)大家好我是孙广东.官网提供了专业的视频教程http://www.daikonforge.com/dfgui/tutorials/,只是是在youtube上,要观看是须要FQ的. 只是教 ...
- unity3d插件Daikon Forge GUI 中文教程7-高级控件slider的使用
3.6.slider滑块 我们说说前面这个图片.对象 Appearance: Atlas 图集: Track 滑块的轨道图片 Back color滑块的轨道图片的主颜色. O ...
- unity3d插件Daikon Forge GUI 中文教程5-高级控件listbox和progress bar的使用
3.3.listbox列表框 Atlas 图集: 下面应用到的精灵都是在这里的. ListBox中的内容: 背景精灵 图片的主颜色 Padding边距 Scrollbar 滚动条对象的预制体或者对象, ...
- unity3d插件Daikon Forge GUI 中文教程4-高级控件Checkbox和dropdownlis的使用
第三节 高级的控件 Checkbox单选和多选.dropdownlis下拉列表.listbox列表框.progressbar进度条.richtextlabel富文本.slider滑块.textbox ...
随机推荐
- 【转】CDH5.x升级
http://www.cloudera.com/content/www/zh-CN/documentation/enterprise/5-3-x/topics/cm_ag_upgrade_cm5.ht ...
- Liferay 6.2 改造系列之十三:修改用户编辑页面表单内容
为简化用户编辑,删除无用内容: 在/portal-master/portal-impl/src/portal.properties文件中,有如下配置: # # Input a list of sect ...
- transform(变形)和transform-origin(变形原点)
转载请说明出处,原文地址http://blog.sina.com.cn/s/blog_780a942701014xl8.html transform(变形)和transform-origin(变形原点 ...
- poj2488 bfs
http://poj.org/problem?id=2488 A Knight's Journey Time Limit: 1000MS Memory Limit: 65536K Total Su ...
- 《DSP using MATLAB》 示例Example4.1
今天开始看第4章,从开始看这本书到现在,过去一个多月,收获不少,继续坚持.
- vector初始化
对vector对象来说,直接初始化的方式适用于3种情况:1.初始值已知且数量少:2.初始值是另一个vector对象的副本:3.所有元素的初始值都一样.此外还有一种更常见的情况是4.创建一个vector ...
- flume file channel 异常解决
1. 错误提示 -- ::, (SinkRunner-PollingRunner-DefaultSinkProcessor) [ERROR - org.apache.flume.SinkRunner$ ...
- Service Provider模式
参考文章:[http://blog.csdn.net/zl3450341/article/details/7227197] Service Interface:服务接口,将服务通过抽象统一声明,供客户 ...
- Hadoop2.0(HDFS2)以及YARN设计的亮点
YARN总体上仍然是Master/Slave结构,在整个资源管理框架中,ResourceManager为Master,NodeManager为Slave,ResouceManager负责对各个Node ...
- EF框架step by step(5)—处理实体简单属性
EF框架会对实体进行跟踪,对实体的每个属性当前值和原始值及其状态进行跟踪,记录.当前值是指实体属性当前的被赋予的值,而原始值是指实体最初从数据库读取或者附加到DbContext时的值. 先通过简单的代 ...