aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeParser.h
diff options
context:
space:
mode:
authorVicent Marti2008-08-09 18:34:16 +0000
committerVicent Marti2008-08-09 18:34:16 +0000
commit103a4f66813df8f806467ad6f27cd0831ae0abf4 (patch)
tree7f09914cd0a658d2301e567d544826eb0a347877 /gui/ThemeParser.h
parentea69217a136210347689e9536d67e1dda883f45a (diff)
downloadscummvm-rg350-103a4f66813df8f806467ad6f27cd0831ae0abf4.tar.gz
scummvm-rg350-103a4f66813df8f806467ad6f27cd0831ae0abf4.tar.bz2
scummvm-rg350-103a4f66813df8f806467ad6f27cd0831ae0abf4.zip
Added support for image loading/blitting.
Added support for loading theme files. (Make sure to grab the sample theme "scummodern.zip" from the gui/themes/ directory to try it out) Misc fixes. svn-id: r33718
Diffstat (limited to 'gui/ThemeParser.h')
-rw-r--r--gui/ThemeParser.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gui/ThemeParser.h b/gui/ThemeParser.h
index 78423652bc..b9fa69179d 100644
--- a/gui/ThemeParser.h
+++ b/gui/ThemeParser.h
@@ -308,7 +308,7 @@ namespace GUI {
using namespace Graphics;
using namespace Common;
-class ThemeRenderer;
+class ThemeRenderer;
class ThemeParser : public XMLParser {
typedef void (VectorRenderer::*DrawingFunctionCallback)(const Common::Rect &, const DrawStep &);
@@ -354,6 +354,13 @@ protected:
XML_PROP(resolution, false)
KEY_END()
KEY_END()
+
+ XML_KEY(bitmaps)
+ XML_KEY(bitmap)
+ XML_PROP(filename, true)
+ XML_PROP(resolution, false)
+ KEY_END()
+ KEY_END()
XML_KEY(defaults)
XML_PROP(stroke, false)
@@ -408,6 +415,7 @@ protected:
XML_PROP(xpos, false)
XML_PROP(ypos, false)
XML_PROP(orientation, false)
+ XML_PROP(bitmap, false)
KEY_END()
XML_KEY(text)
@@ -489,6 +497,8 @@ protected:
bool parserCallback_color(ParserNode *node);
bool parserCallback_drawstep(ParserNode *node);
bool parserCallback_drawdata(ParserNode *node);
+ bool parserCallback_bitmaps(ParserNode *node) { return true; }
+ bool parserCallback_bitmap(ParserNode *node);
/** Layout info callbacks */
bool parserCallback_layout_info(ParserNode *node);