diff options
author | Eugene Sandulenko | 2009-06-06 17:53:25 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2009-06-06 17:53:25 +0000 |
commit | dcc90445f6ea424bd4576f04afbc790fc43a5c76 (patch) | |
tree | 5c13a7e7ffb75d8c57e7108749902a5bbcc1d9d7 /gui/ThemeEngine.h | |
parent | b0db1b5ed0634dee707d234cfda23201c648cf98 (diff) | |
download | scummvm-rg350-dcc90445f6ea424bd4576f04afbc790fc43a5c76.tar.gz scummvm-rg350-dcc90445f6ea424bd4576f04afbc790fc43a5c76.tar.bz2 scummvm-rg350-dcc90445f6ea424bd4576f04afbc790fc43a5c76.zip |
Add to launcher not yet functional search widget.
Make EditableWidget CommandSender
svn-id: r41267
Diffstat (limited to 'gui/ThemeEngine.h')
-rw-r--r-- | gui/ThemeEngine.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/gui/ThemeEngine.h b/gui/ThemeEngine.h index dd32ff6f2f..bee3737fd1 100644 --- a/gui/ThemeEngine.h +++ b/gui/ThemeEngine.h @@ -184,8 +184,9 @@ public: //! Special image ids for images used in the GUI enum kThemeImages { - kImageLogo = 0, //!< ScummVM Logo used in the launcher - kImageLogoSmall //!< ScummVM logo used in the GMM + kImageLogo = 0, //!< ScummVM logo used in the launcher + kImageLogoSmall, //!< ScummVM logo used in the GMM + kImageSearch //!< Search tool image used in the launcher }; /** @@ -422,12 +423,16 @@ public: } const Graphics::Surface *getImageSurface(const kThemeImages n) const { - if (n == kImageLogo) + switch (n) { + case kImageLogo: return _bitmaps.contains("logo.bmp") ? _bitmaps["logo.bmp"] : 0; - else if (n == kImageLogoSmall) + case kImageLogoSmall: return _bitmaps.contains("logo_small.bmp") ? _bitmaps["logo_small.bmp"] : 0; - - return 0; + case kImageSearch: + return _bitmaps.contains("search.bmp") ? _bitmaps["search.bmp"] : 0; + default: + return 0; + } } /** |