From d7131239c18eafecef2e8b8fa6898ba9962ff0e8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 Dec 2013 15:23:28 +0300 Subject: allow use different theme file for different progress bars. --- src/gui/widgets/progressbar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/progressbar.cpp') diff --git a/src/gui/widgets/progressbar.cpp b/src/gui/widgets/progressbar.cpp index 33011f9fc..e8f3b5947 100644 --- a/src/gui/widgets/progressbar.cpp +++ b/src/gui/widgets/progressbar.cpp @@ -37,7 +37,7 @@ float ProgressBar::mAlpha = 1.0; ProgressBar::ProgressBar(const Widget2 *const widget, float progress, const int width, const int height, - const int backColor): + const int backColor, const std::string &skin): gcn::Widget(), Widget2(widget), gcn::WidgetListener(), @@ -68,7 +68,7 @@ ProgressBar::ProgressBar(const Widget2 *const widget, float progress, Theme *const theme = Theme::instance(); if (theme) { - mSkin = theme->load("progressbar.xml", ""); + mSkin = theme->load(skin, "progressbar.xml"); if (mSkin) { setPadding(mSkin->getPadding()); -- cgit v1.2.3-70-g09d2