diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-17 18:54:32 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-17 18:54:32 +0000 |
commit | 694e6e4148e19168f930406b13a3f63981341c05 (patch) | |
tree | 122603f02a0bc3bbd2515a40e54abaf620f3ece1 /src | |
parent | 44a347ccc40bb4a42f03743f5e2401769da41289 (diff) | |
download | mana-694e6e4148e19168f930406b13a3f63981341c05.tar.gz mana-694e6e4148e19168f930406b13a3f63981341c05.tar.bz2 mana-694e6e4148e19168f930406b13a3f63981341c05.tar.xz mana-694e6e4148e19168f930406b13a3f63981341c05.zip |
Converted all GUI images to PNG
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/button.cpp | 8 | ||||
-rw-r--r-- | src/gui/checkbox.cpp | 2 | ||||
-rw-r--r-- | src/gui/playerbox.cpp | 2 | ||||
-rw-r--r-- | src/gui/radiobutton.cpp | 8 | ||||
-rw-r--r-- | src/gui/scrollarea.cpp | 4 | ||||
-rw-r--r-- | src/gui/slider.cpp | 2 | ||||
-rw-r--r-- | src/gui/textfield.cpp | 2 | ||||
-rw-r--r-- | src/gui/window.cpp | 6 |
8 files changed, 17 insertions, 17 deletions
diff --git a/src/gui/button.cpp b/src/gui/button.cpp index 4474d6a4..71fac17e 100644 --- a/src/gui/button.cpp +++ b/src/gui/button.cpp @@ -31,10 +31,10 @@ Button::Button(const std::string& caption): // Load the skin ResourceManager *resman = ResourceManager::getInstance(); Image *btn[4]; - btn[0] = resman->getImage("core/graphics/gui/button.bmp"); - btn[1] = resman->getImage("core/graphics/gui/buttonhi.bmp"); - btn[2] = resman->getImage("core/graphics/gui/buttonpress.bmp"); - btn[3] = resman->getImage("core/graphics/gui/button_disabled.bmp"); + btn[0] = resman->getImage("core/graphics/gui/button.png"); + btn[1] = resman->getImage("core/graphics/gui/buttonhi.png"); + btn[2] = resman->getImage("core/graphics/gui/buttonpress.png"); + btn[3] = resman->getImage("core/graphics/gui/button_disabled.png"); int bgridx[4] = {0, 9, 16, 25}; int bgridy[4] = {0, 4, 19, 24}; int a, x, y; diff --git a/src/gui/checkbox.cpp b/src/gui/checkbox.cpp index 5eced992..99367f18 100644 --- a/src/gui/checkbox.cpp +++ b/src/gui/checkbox.cpp @@ -29,7 +29,7 @@ CheckBox::CheckBox(const std::string& caption, bool marked): gcn::CheckBox(caption, marked) { ResourceManager *resman = ResourceManager::getInstance(); - Image *checkBox = resman->getImage("core/graphics/gui/checkbox.bmp"); + Image *checkBox = resman->getImage("core/graphics/gui/checkbox.png"); checkBoxNormal = checkBox->getSubImage(0, 0, 9, 10); checkBoxChecked = checkBox->getSubImage(9, 0, 9, 10); checkBoxDisabled = checkBox->getSubImage(18, 0, 9, 10); diff --git a/src/gui/playerbox.cpp b/src/gui/playerbox.cpp index 70715729..926b8b08 100644 --- a/src/gui/playerbox.cpp +++ b/src/gui/playerbox.cpp @@ -34,7 +34,7 @@ PlayerBox::PlayerBox(): // Load the background skin ResourceManager *resman = ResourceManager::getInstance(); - Image *textbox = resman->getImage("core/graphics/gui/textbox.bmp"); + Image *textbox = resman->getImage("core/graphics/gui/textbox.png"); int bggridx[4] = {0, 9, 16, 25}; int bggridy[4] = {0, 4, 19, 24}; int a = 0, x, y; diff --git a/src/gui/radiobutton.cpp b/src/gui/radiobutton.cpp index ef84bbc2..de2d4f68 100644 --- a/src/gui/radiobutton.cpp +++ b/src/gui/radiobutton.cpp @@ -29,10 +29,10 @@ RadioButton::RadioButton(const std::string& caption, const std::string& group, gcn::RadioButton(caption, group, marked) { ResourceManager *resman = ResourceManager::getInstance(); - radioNormal = resman->getImage("core/graphics/gui/radioout.bmp"); - radioChecked = resman->getImage("core/graphics/gui/radioin.bmp"); - radioDisabled = resman->getImage("core/graphics/gui/radioout.bmp"); - radioDisabledChecked = resman->getImage("core/graphics/gui/radioin.bmp"); + radioNormal = resman->getImage("core/graphics/gui/radioout.png"); + radioChecked = resman->getImage("core/graphics/gui/radioin.png"); + radioDisabled = resman->getImage("core/graphics/gui/radioout.png"); + radioDisabledChecked = resman->getImage("core/graphics/gui/radioin.png"); } void RadioButton::drawBox(gcn::Graphics* graphics) diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp index 33fa1253..8bdcae70 100644 --- a/src/gui/scrollarea.cpp +++ b/src/gui/scrollarea.cpp @@ -43,7 +43,7 @@ void ScrollArea::init() // Load the background skin ResourceManager *resman = ResourceManager::getInstance(); - Image *textbox = resman->getImage("core/graphics/gui/textbox.bmp"); + Image *textbox = resman->getImage("core/graphics/gui/textbox.png"); int bggridx[4] = {0, 9, 16, 25}; int bggridy[4] = {0, 4, 19, 24}; int a = 0, x, y; @@ -59,7 +59,7 @@ void ScrollArea::init() } // Load vertical scrollbar skin - Image *vscroll = resman->getImage("core/graphics/gui/vscroll.bmp"); + Image *vscroll = resman->getImage("core/graphics/gui/vscroll.png"); int vsgridx[4] = {0, 4, 8, 11}; int vsgridy[4] = {0, 4, 13, 19}; a = 0; diff --git a/src/gui/slider.cpp b/src/gui/slider.cpp index 2d07d661..d99b777f 100644 --- a/src/gui/slider.cpp +++ b/src/gui/slider.cpp @@ -44,7 +44,7 @@ void Slider::init() // Load resources ResourceManager *resman = ResourceManager::getInstance(); - Image *slider = resman->getImage("core/graphics/gui/slider.bmp"); + Image *slider = resman->getImage("core/graphics/gui/slider.png"); x = 0; y = 0; w = 15; h = 6; diff --git a/src/gui/textfield.cpp b/src/gui/textfield.cpp index ba278718..c2b4642c 100644 --- a/src/gui/textfield.cpp +++ b/src/gui/textfield.cpp @@ -31,7 +31,7 @@ TextField::TextField(const std::string& text): // Load the skin ResourceManager *resman = ResourceManager::getInstance(); - Image *textbox = resman->getImage("core/graphics/gui/textbox.bmp"); + Image *textbox = resman->getImage("core/graphics/gui/textbox.png"); int gridx[4] = {0, 9, 16, 25}; int gridy[4] = {0, 4, 19, 24}; int a = 0, x, y; diff --git a/src/gui/window.cpp b/src/gui/window.cpp index ca788883..1429830d 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -49,9 +49,9 @@ Window::Window(const std::string& text, bool modal, Window *parent): // Load dialog title bar image ResourceManager *resman = ResourceManager::getInstance(); - dLeft = resman->getImage("core/graphics/gui/dialog_left.bmp"); - dMid = resman->getImage("core/graphics/gui/dialog_middle.bmp"); - dRight = resman->getImage("core/graphics/gui/dialog_right.bmp"); + dLeft = resman->getImage("core/graphics/gui/dialog_left.png"); + dMid = resman->getImage("core/graphics/gui/dialog_middle.png"); + dRight = resman->getImage("core/graphics/gui/dialog_right.png"); // Register mouse listener addMouseListener(this); |