summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-15 02:07:34 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-08-11 02:39:48 +0200
commitf3c1994b573a8463ac6f0152b3baa7e3cbd37540 (patch)
tree9af293d78a389810e608f4f86983c74a4a5e8a07
parentd956102647a5b53dab359290568c6caabd5f75e0 (diff)
downloadmana-f3c1994b573a8463ac6f0152b3baa7e3cbd37540.tar.gz
mana-f3c1994b573a8463ac6f0152b3baa7e3cbd37540.tar.bz2
mana-f3c1994b573a8463ac6f0152b3baa7e3cbd37540.tar.xz
mana-f3c1994b573a8463ac6f0152b3baa7e3cbd37540.zip
Reached the state where the menu bar is now using image buttons.
I had to adapt a bit the images given by Poison ivy to do that.
-rw-r--r--data/graphics/gui/CMakeLists.txt8
-rw-r--r--data/graphics/gui/button-icon-equipment.pngbin0 -> 871 bytes
-rw-r--r--data/graphics/gui/button-icon-inventory.pngbin0 -> 726 bytes
-rw-r--r--data/graphics/gui/button-icon-setup.pngbin556 -> 775 bytes
-rw-r--r--data/graphics/gui/button-icon-shortcut.pngbin0 -> 668 bytes
-rw-r--r--data/graphics/gui/button-icon-skills.pngbin0 -> 680 bytes
-rw-r--r--data/graphics/gui/button-icon-smilies.pngbin0 -> 814 bytes
-rw-r--r--data/graphics/gui/button-icon-social.pngbin822 -> 615 bytes
-rw-r--r--data/graphics/gui/button-icon-specials.pngbin0 -> 766 bytes
-rw-r--r--data/graphics/gui/button-icon-status.pngbin0 -> 699 bytes
-rw-r--r--src/gui/windowmenu.cpp14
11 files changed, 15 insertions, 7 deletions
diff --git a/data/graphics/gui/CMakeLists.txt b/data/graphics/gui/CMakeLists.txt
index d8adb10f..d3f29210 100644
--- a/data/graphics/gui/CMakeLists.txt
+++ b/data/graphics/gui/CMakeLists.txt
@@ -1,7 +1,15 @@
SET (FILES
bubble.png
button.png
+ button-icon-equipment.png
+ button-icon-inventory.png
+ button-icon-setup.png
+ button-icon-shortcut.png
+ button-icon-skills.png
+ button-icon-smilies.png
button-icon-social.png
+ button-icon-specials.png
+ button-icon-status.png
button_disabled.png
buttonhi.png
buttonpress.png
diff --git a/data/graphics/gui/button-icon-equipment.png b/data/graphics/gui/button-icon-equipment.png
new file mode 100644
index 00000000..4f40f3ad
--- /dev/null
+++ b/data/graphics/gui/button-icon-equipment.png
Binary files differ
diff --git a/data/graphics/gui/button-icon-inventory.png b/data/graphics/gui/button-icon-inventory.png
new file mode 100644
index 00000000..c0fe5bf7
--- /dev/null
+++ b/data/graphics/gui/button-icon-inventory.png
Binary files differ
diff --git a/data/graphics/gui/button-icon-setup.png b/data/graphics/gui/button-icon-setup.png
index 7c2b2b86..8e028358 100644
--- a/data/graphics/gui/button-icon-setup.png
+++ b/data/graphics/gui/button-icon-setup.png
Binary files differ
diff --git a/data/graphics/gui/button-icon-shortcut.png b/data/graphics/gui/button-icon-shortcut.png
new file mode 100644
index 00000000..10b97577
--- /dev/null
+++ b/data/graphics/gui/button-icon-shortcut.png
Binary files differ
diff --git a/data/graphics/gui/button-icon-skills.png b/data/graphics/gui/button-icon-skills.png
new file mode 100644
index 00000000..3d68f42b
--- /dev/null
+++ b/data/graphics/gui/button-icon-skills.png
Binary files differ
diff --git a/data/graphics/gui/button-icon-smilies.png b/data/graphics/gui/button-icon-smilies.png
new file mode 100644
index 00000000..dd2a00c4
--- /dev/null
+++ b/data/graphics/gui/button-icon-smilies.png
Binary files differ
diff --git a/data/graphics/gui/button-icon-social.png b/data/graphics/gui/button-icon-social.png
index 524510af..4c6b49f1 100644
--- a/data/graphics/gui/button-icon-social.png
+++ b/data/graphics/gui/button-icon-social.png
Binary files differ
diff --git a/data/graphics/gui/button-icon-specials.png b/data/graphics/gui/button-icon-specials.png
new file mode 100644
index 00000000..31c66e81
--- /dev/null
+++ b/data/graphics/gui/button-icon-specials.png
Binary files differ
diff --git a/data/graphics/gui/button-icon-status.png b/data/graphics/gui/button-icon-status.png
new file mode 100644
index 00000000..96c54d15
--- /dev/null
+++ b/data/graphics/gui/button-icon-status.png
Binary files differ
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp
index 2595c819..1c5f2d77 100644
--- a/src/gui/windowmenu.cpp
+++ b/src/gui/windowmenu.cpp
@@ -50,19 +50,19 @@ WindowMenu::WindowMenu():
{
int x = 0, h = 0;
- addButton(":-)", x, h);
- addButton(N_("Status"), x, h);
- addButton(N_("Equipment"), x, h);
- addButton(N_("Inventory"), x, h);
+ addButton(":-)", x, h, "button-icon-smilies.png");
+ addButton(N_("Status"), x, h, "button-icon-status.png");
+ addButton(N_("Equipment"), x, h, "button-icon-equipment.png");
+ addButton(N_("Inventory"), x, h, "button-icon-inventory.png");
if (skillDialog->hasSkills())
- addButton(N_("Skills"), x, h);
+ addButton(N_("Skills"), x, h, "button-icon-skills.png");
// if (specialsWindow->hasSpecials())
- addButton(N_("Specials"), x, h);
+ addButton(N_("Specials"), x, h, "button-icon-specials.png");
addButton(N_("Social"), x, h, "button-icon-social.png");
- addButton(N_("Shortcut"), x, h);
+ addButton(N_("Shortcut"), x, h, "button-icon-shortcut.png");
addButton(N_("Setup"), x, h, "button-icon-setup.png");
setDimension(gcn::Rectangle(graphics->getWidth() - x - 3, 3,