From dcc90445f6ea424bd4576f04afbc790fc43a5c76 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 6 Jun 2009 17:53:25 +0000 Subject: Add to launcher not yet functional search widget. Make EditableWidget CommandSender svn-id: r41267 --- gui/ThemeEngine.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'gui/ThemeEngine.h') 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; + } } /** -- cgit v1.2.3