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.