40 #ifndef _uidefaultmarkupparser_cpp
41 #define _uidefaultmarkupparser_cpp
43 #include "UI/defaultmarkupparser.h"
44 #include "UI/textlayer.h"
45 #include "UI/screen.h"
46 #include "UI/textureatlas.h"
47 #include "stringtool.h"
60 NameValuePairMap::iterator Colour = Params.find(
"Value");
61 if( Colour != Params.end() ) {
62 if( (*Colour).second.size() < 6 )
return ProcessResult(
false,NULL);
83 NameValuePairMap::iterator FontName = Params.find(
"Name");
84 if( FontName != Params.end() ) {
85 Traits.
CharFont = ParentScreen->
GetFont( (*FontName).second,AtlasName );
111 NameValuePairMap::iterator SpriteName = Params.find(
"Name");
112 if( SpriteName != Params.end() ) {
113 Sprite* NewSprite = ParentScreen->
GetSprite( (*SpriteName).second,AtlasName );
115 ToInsert =
new Character(NewSprite,Layer);
120 NameValuePairMap::iterator SpriteSize = Params.find(
"Size");
121 if( ToInsert && SpriteSize != Params.end() ) {
122 String SizeStr = (*SpriteSize).second;
123 SizeStr.replace( SizeStr.find_first_of(
'x'),1,
" " );
139 {
delete (*TagIt).second; }
154 {
return "Default"; }