summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-13 01:39:40 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-13 01:41:06 +0300
commit9d92f9ae55927283fb9f5a3855d654aba576c5f8 (patch)
treedb224f73f59445f692f0be6415c61774e228fdc8
parentd8aaca79e608c98dfa82f145b032ca94ce473138 (diff)
downloadmanaplus-9d92f9ae55927283fb9f5a3855d654aba576c5f8.tar.gz
manaplus-9d92f9ae55927283fb9f5a3855d654aba576c5f8.tar.bz2
manaplus-9d92f9ae55927283fb9f5a3855d654aba576c5f8.tar.xz
manaplus-9d92f9ae55927283fb9f5a3855d654aba576c5f8.zip
Change selection theming.
-rw-r--r--data/graphics/gui/CMakeLists.txt3
-rw-r--r--data/graphics/gui/Makefile.am3
-rw-r--r--data/graphics/gui/emote_selection.xml5
-rw-r--r--data/graphics/gui/item_selection.xml5
-rw-r--r--data/graphics/gui/selection.pngbin740 -> 0 bytes
-rw-r--r--data/graphics/gui/window.pngbin15435 -> 16084 bytes
-rw-r--r--src/gui/emotepopup.cpp2
-rw-r--r--src/gui/widgets/itemcontainer.cpp2
8 files changed, 16 insertions, 4 deletions
diff --git a/data/graphics/gui/CMakeLists.txt b/data/graphics/gui/CMakeLists.txt
index f9c73c6fe..6cd7c3698 100644
--- a/data/graphics/gui/CMakeLists.txt
+++ b/data/graphics/gui/CMakeLists.txt
@@ -12,7 +12,9 @@ SET (FILES
dropdown.xml
dropdown_background.xml
dropdown_pressed.xml
+ emote_selection.xml
equipmentbox.png
+ item_selection.xml
item_shortcut_background.xml
mouse.png
playerbox_background.xml
@@ -28,7 +30,6 @@ SET (FILES
scroll_highlighted.xml
scrollbuttons.xml
scrollbuttons_pressed.xml
- selection.png
slider.xml
slider_highlighted.xml
speechbubble.xml
diff --git a/data/graphics/gui/Makefile.am b/data/graphics/gui/Makefile.am
index 2224bb467..f43d75e38 100644
--- a/data/graphics/gui/Makefile.am
+++ b/data/graphics/gui/Makefile.am
@@ -15,7 +15,9 @@ gui_DATA = \
dropdown.xml \
dropdown_background.xml \
dropdown_pressed.xml \
+ emote_selection.xml \
equipmentbox.png \
+ item_selection.xml \
item_shortcut_background.xml \
mouse.png \
playerbox_background.xml \
@@ -31,7 +33,6 @@ gui_DATA = \
scroll_highlighted.xml \
scrollbuttons.xml \
scrollbuttons_pressed.xml\
- selection.png \
slider.xml \
slider_highlighted.xml \
speechbubble.xml \
diff --git a/data/graphics/gui/emote_selection.xml b/data/graphics/gui/emote_selection.xml
new file mode 100644
index 000000000..ffdf5026e
--- /dev/null
+++ b/data/graphics/gui/emote_selection.xml
@@ -0,0 +1,5 @@
+<skinset name="Default" image="window.png">
+ <widget type="Window">
+ <part type="standart" xpos="138" ypos="75" width="32" height="32" />
+ </widget>
+</skinset>
diff --git a/data/graphics/gui/item_selection.xml b/data/graphics/gui/item_selection.xml
new file mode 100644
index 000000000..ffdf5026e
--- /dev/null
+++ b/data/graphics/gui/item_selection.xml
@@ -0,0 +1,5 @@
+<skinset name="Default" image="window.png">
+ <widget type="Window">
+ <part type="standart" xpos="138" ypos="75" width="32" height="32" />
+ </widget>
+</skinset>
diff --git a/data/graphics/gui/selection.png b/data/graphics/gui/selection.png
deleted file mode 100644
index 78827dafa..000000000
--- a/data/graphics/gui/selection.png
+++ /dev/null
Binary files differ
diff --git a/data/graphics/gui/window.png b/data/graphics/gui/window.png
index 3c6cbbdb9..c0840e7ae 100644
--- a/data/graphics/gui/window.png
+++ b/data/graphics/gui/window.png
Binary files differ
diff --git a/src/gui/emotepopup.cpp b/src/gui/emotepopup.cpp
index 0b1d72808..33ecc037f 100644
--- a/src/gui/emotepopup.cpp
+++ b/src/gui/emotepopup.cpp
@@ -63,7 +63,7 @@ EmotePopup::EmotePopup() :
mEmotes.push_back(sprite);
}
- mSelectionImage = Theme::getImageFromTheme("selection.png");
+ mSelectionImage = Theme::getImageFromThemeXml("emote_selection.xml");
if (!mSelectionImage)
logger->log1("Error: Unable to load selection.png");
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp
index 70f2c47fb..c5118ce44 100644
--- a/src/gui/widgets/itemcontainer.cpp
+++ b/src/gui/widgets/itemcontainer.cpp
@@ -174,7 +174,7 @@ ItemContainer::ItemContainer(Inventory *inventory, bool forceQuantity):
{
setFocusable(true);
- mSelImg = Theme::getImageFromTheme("selection.png");
+ mSelImg = Theme::getImageFromThemeXml("item_selection.xml");
if (!mSelImg)
logger->log1("Error: Unable to load selection.png");