summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/button.cpp8
-rw-r--r--src/gui/char_select.cpp4
-rw-r--r--src/gui/checkbox.cpp2
-rw-r--r--src/gui/equipment.cpp2
-rw-r--r--src/gui/gui.cpp2
-rw-r--r--src/gui/itemcontainer.cpp2
-rw-r--r--src/gui/playerbox.cpp2
-rw-r--r--src/gui/progressbar.cpp4
-rw-r--r--src/gui/radiobutton.cpp8
-rw-r--r--src/gui/scrollarea.cpp4
-rw-r--r--src/gui/slider.cpp2
-rw-r--r--src/gui/textfield.cpp2
-rw-r--r--src/gui/window.cpp6
13 files changed, 22 insertions, 26 deletions
diff --git a/src/gui/button.cpp b/src/gui/button.cpp
index fb1a01ec..195fde69 100644
--- a/src/gui/button.cpp
+++ b/src/gui/button.cpp
@@ -32,10 +32,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.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");
+ btn[0] = resman->getImage("graphics/gui/button.png");
+ btn[1] = resman->getImage("graphics/gui/buttonhi.png");
+ btn[2] = resman->getImage("graphics/gui/buttonpress.png");
+ btn[3] = resman->getImage("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/char_select.cpp b/src/gui/char_select.cpp
index 4b8a9099..d8071ac2 100644
--- a/src/gui/char_select.cpp
+++ b/src/gui/char_select.cpp
@@ -104,10 +104,6 @@ CharSelectDialog::CharSelectDialog():
selectButton->requestFocus();
setLocationRelativeTo(getParent());
-
- ResourceManager *resman = ResourceManager::getInstance();
- login_wallpaper = resman->getImage(
- "core/graphics/images/char_wallpaper.png");
}
CharSelectDialog::~CharSelectDialog()
diff --git a/src/gui/checkbox.cpp b/src/gui/checkbox.cpp
index b231ec64..68966376 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.png");
+ Image *checkBox = resman->getImage("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/equipment.cpp b/src/gui/equipment.cpp
index 7d0ec083..a29c137f 100644
--- a/src/gui/equipment.cpp
+++ b/src/gui/equipment.cpp
@@ -34,7 +34,7 @@ EquipmentWindow::EquipmentWindow():
setPosition(40, 40);
ResourceManager *resman = ResourceManager::getInstance();
- Image *itemImg = resman->getImage("core/graphics/sprites/items.png", IMG_ALPHA);
+ Image *itemImg = resman->getImage("graphics/sprites/items.png", IMG_ALPHA);
if (!itemImg) logger.error("Unable to load items.png");
itemset = new Spriteset(itemImg, 20, 20);
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 1cb7e3f9..99514e9e 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -62,7 +62,7 @@ Gui::Gui(Graphics *graphics)
setTop(guiTop);
// Set global font
- guiFont = new gcn::ImageFont("./data/core/graphics/gui/fixedfont.png",
+ guiFont = new gcn::ImageFont("data/graphics/gui/fixedfont.png",
" abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:@"
"!\"$%&/=?^+*#[]{}()<>_;'.,\\|-~`"
);
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index 1b000127..3ee6bfb4 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -30,7 +30,7 @@
ItemContainer::ItemContainer()
{
ResourceManager *resman = ResourceManager::getInstance();
- Image *itemImg = resman->getImage("core/graphics/sprites/items.png", IMG_ALPHA);
+ Image *itemImg = resman->getImage("graphics/sprites/items.png", IMG_ALPHA);
if (!itemImg) logger.error("Unable to load items.png");
itemset = new Spriteset(itemImg, 20, 20);
diff --git a/src/gui/playerbox.cpp b/src/gui/playerbox.cpp
index 09691b82..ffabe057 100644
--- a/src/gui/playerbox.cpp
+++ b/src/gui/playerbox.cpp
@@ -35,7 +35,7 @@ PlayerBox::PlayerBox():
// Load the background skin
ResourceManager *resman = ResourceManager::getInstance();
- Image *textbox = resman->getImage("core/graphics/gui/textbox.png");
+ Image *textbox = resman->getImage("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/progressbar.cpp b/src/gui/progressbar.cpp
index 178f7d30..8b051cbb 100644
--- a/src/gui/progressbar.cpp
+++ b/src/gui/progressbar.cpp
@@ -38,8 +38,8 @@ ProgressBar::ProgressBar(float progress, int x, int y, int width, int height,
// Load dialog title bar image
ResourceManager *resman = ResourceManager::getInstance();
- Image *dBorders = resman->getImage("core/graphics/gui/vscroll_grey.png");
- dBackground = resman->getImage("core/graphics/gui/bg_quad_dis.png");
+ Image *dBorders = resman->getImage("graphics/gui/vscroll_grey.png");
+ dBackground = resman->getImage("graphics/gui/bg_quad_dis.png");
dTopBorder = dBorders->getSubImage(4, 0, 3, 4);
dLeftBorder = dBorders->getSubImage(0, 4, 4, 10);
diff --git a/src/gui/radiobutton.cpp b/src/gui/radiobutton.cpp
index a7115752..d04d8586 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.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");
+ radioNormal = resman->getImage("graphics/gui/radioout.png");
+ radioChecked = resman->getImage("graphics/gui/radioin.png");
+ radioDisabled = resman->getImage("graphics/gui/radioout.png");
+ radioDisabledChecked = resman->getImage("graphics/gui/radioin.png");
}
void RadioButton::drawBox(gcn::Graphics* graphics)
diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp
index d262d355..fc1f38d3 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.png");
+ Image *textbox = resman->getImage("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_grey.png");
+ Image *vscroll = resman->getImage("graphics/gui/vscroll_grey.png");
int vsgridx[4] = {0, 4, 7, 11};
int vsgridy[4] = {0, 4, 15, 19};
a = 0;
diff --git a/src/gui/slider.cpp b/src/gui/slider.cpp
index eb7ac1aa..85fcf2d7 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.png");
+ Image *slider = resman->getImage("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 c2b4642c..56ad8ab0 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.png");
+ Image *textbox = resman->getImage("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 817090ca..ac869fab 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -41,14 +41,14 @@ Window::Window(const std::string& caption, bool modal, Window *parent):
// Load dialog title bar image
ResourceManager *resman = ResourceManager::getInstance();
- dBorders = resman->getImage("core/graphics/gui/vscroll_grey.png");
- dBackground = resman->getImage("core/graphics/gui/bg_quad_dis.png");
+ dBorders = resman->getImage("graphics/gui/vscroll_grey.png");
+ dBackground = resman->getImage("graphics/gui/bg_quad_dis.png");
border.grid[0] = dBorders->getSubImage(0, 0, 4, 4);
border.grid[1] = dBorders->getSubImage(4, 0, 3, 4);
border.grid[2] = dBorders->getSubImage(7, 0, 4, 4);
border.grid[3] = dBorders->getSubImage(0, 4, 4, 10);
- border.grid[4] = resman->getImage("core/graphics/gui/bg_quad_dis.png");
+ border.grid[4] = resman->getImage("graphics/gui/bg_quad_dis.png");
border.grid[5] = dBorders->getSubImage(7, 4, 4, 10);
border.grid[6] = dBorders->getSubImage(0, 15, 4, 4);
border.grid[7] = dBorders->getSubImage(4, 15, 3, 4);