Cegui 0.7x achieves the effect of underline stroke and text Mixing

Source: Internet
Author: User

Compared with previous versions, cegui 0.7x has greatly changed. Based on its formatting tags and animation system features, cegui is expanded to achieve common font effects.

1. formatting tags itself supports setting the font color, font size, nested static pictures, etc. Details can be viewed http://www.cegui.org.uk/wiki/index.php/Formatting_Tags_in_CEGUI

Therefore, you can define your own labels to specify which part of the text has the corresponding font effect.

Two types of special text effect tags are added:

1.) [Text-Component = '...']

2.) [underline = '...'] [no_underline = '']

Then, update or add the corresponding renderedstringcomponent and write the corresponding font effects to the draw function. The desired effect can be easily obtained. below is myProgram:

2. animation system provides support for UI animation. Based on it and combined with formatting tags, it is easy to display dynamic images such as expressions and text mixing. For details, see the http://www.cegui.org.uk/wiki/index.php/Animation_System.

1) read GIF

Cegui does not directly support GIF, but it can read GIF image resources through imagecodec (coronaimagecodec or freeimageimagecodec) and store these images in a texture.

2.) Play GIF images

Add a tag [dynamic-image = '... '], create a falagard * class to create the corresponding imageset Based on the texture information, and play the image in the imageset cyclically for a certain period of time.

Compared with previous versions, cegui 0.7x has greatly changed. Based on its formatting tags and animation system features, cegui is expanded to achieve common font effects.

1. formatting tags itself supports setting the font color, font size, nested static pictures, etc. Details can be viewed http://www.cegui.org.uk/wiki/index.php/Formatting_Tags_in_CEGUI

Therefore, you can define your own labels to specify which part of the text has the corresponding font effect.

Two types of special text effect tags are added:

1.) [Text-Component = '...']

2.) [underline = '...'] [no_underline = '']

Then, update or add the corresponding renderedstringcomponent and write the corresponding font effects to the draw function. The desired effect can be easily obtained. below is my program:

2. animation system provides support for UI animation. Based on it and combined with formatting tags, it is easy to display dynamic images such as expressions and text mixing. For details, see the http://www.cegui.org.uk/wiki/index.php/Animation_System.

1) read GIF

Cegui does not directly support GIF, but it can read GIF image resources through imagecodec (coronaimagecodec or freeimageimagecodec) and store these images in a texture.

2.) Play GIF images

Add a tag [dynamic-image = '... '], create a falagard * class to create the corresponding imageset Based on the texture information, and play the image in the imageset cyclically for a certain period of time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.