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 ...
随机推荐
- commonlisp教程以及学习笔记-01
手上有两个教程,但是感觉这个教程可能更适合自己
- Iterator
hasNext() 方法是检查序列中是否还有元素. remove()方法是将迭代器返回的元素删除. List list = new ArrayList(); list .add(“a”); for(I ...
- T-SQL 存储过程
Transact-SQL中的存储过程,非常类似于Java语言中的方法,它可以重复调用.当存储过程执行一次后,可以将语句缓存中,这样下次执行的时候直接使用缓存中的语句.这样就可以提高存储过程的性能. Ø ...
- java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory 解决方案
缺少 commons-logging.jar
- file-max与ulimit的关系与差别
典型的,提供大量静态文件访问的web服务器,缓存服务器(如squid), 均要注意这个问题 网上的教程,大约只是简单说明了如何设置ulimit和file-max, 但并没有说清楚这两者之间的差别,让人 ...
- RecyclerView 介绍 02 – 重要概念
几个概念 RecyclerView是一个ViewGroup: LayoutManager控制RecyclerView的ChildView的布局显示,childview由Recycler提供以及管理: ...
- (转)set集合的用法
原地址:http://blog.csdn.net/chaiwenjun000/article/details/50561775 SET 集合 百度百科中说集合中的元素有三个特征: 1.确定性(集合中的 ...
- ember.js:使用笔记2-数据删除与存储
在模版中写好响应操作触发的action之后,可以在controller:actions中设置了,需要注意的是对数据的操作一般都是对单个object进行操作,所以先要使用笔记1中的方法使用ObjectC ...
- WebApi 2:属性路由 [Route()],attribute routing
原文:http://www.asp.net/web-api/overview/web-api-routing-and-actions/attribute-routing-in-web-api-2 属性 ...
- HDU4307 Matrix(最小割)
题目 Source http://acm.hdu.edu.cn/showproblem.php?pid=4307 Description Let A be a 1*N matrix, and each ...