summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-17 16:42:27 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-17 16:42:27 +0300
commitba997be747666c74c46c734cb636a8de84c582b3 (patch)
tree1596c7bede896dce8d5cc6ba4c887dbeb4a2a300
parent32973f167f9a6f49957ea6a2cce119d91f997b3b (diff)
downloadmanaplus-ba997be747666c74c46c734cb636a8de84c582b3.tar.gz
manaplus-ba997be747666c74c46c734cb636a8de84c582b3.tar.bz2
manaplus-ba997be747666c74c46c734cb636a8de84c582b3.tar.xz
manaplus-ba997be747666c74c46c734cb636a8de84c582b3.zip
Move target cursors to themes.
Remove old unused target cursors.
-rw-r--r--data/graphics/CMakeLists.txt9
-rw-r--r--data/graphics/Makefile.am9
-rw-r--r--data/graphics/gui/CMakeLists.txt12
-rw-r--r--data/graphics/gui/Makefile.am12
-rw-r--r--data/graphics/gui/target-cursor-blue-l.pngbin23803 -> 0 bytes
-rw-r--r--data/graphics/gui/target-cursor-blue-m.pngbin18439 -> 0 bytes
-rw-r--r--data/graphics/gui/target-cursor-blue-s.pngbin8353 -> 0 bytes
-rw-r--r--data/graphics/gui/target-cursor-in-range-l.png (renamed from data/graphics/target-cursor-in-range-l.png)bin23803 -> 23803 bytes
-rw-r--r--data/graphics/gui/target-cursor-in-range-m.png (renamed from data/graphics/target-cursor-in-range-m.png)bin18439 -> 18439 bytes
-rw-r--r--data/graphics/gui/target-cursor-in-range-s.png (renamed from data/graphics/target-cursor-in-range-s.png)bin8353 -> 8353 bytes
-rw-r--r--data/graphics/gui/target-cursor-normal-l.png (renamed from data/graphics/target-cursor-normal-l.png)bin25586 -> 25586 bytes
-rw-r--r--data/graphics/gui/target-cursor-normal-m.png (renamed from data/graphics/target-cursor-normal-m.png)bin17950 -> 17950 bytes
-rw-r--r--data/graphics/gui/target-cursor-normal-s.png (renamed from data/graphics/target-cursor-normal-s.png)bin8361 -> 8361 bytes
-rw-r--r--data/graphics/gui/target-cursor-red-l.pngbin25586 -> 0 bytes
-rw-r--r--data/graphics/gui/target-cursor-red-m.pngbin17950 -> 0 bytes
-rw-r--r--data/graphics/gui/target-cursor-red-s.pngbin8361 -> 0 bytes
-rw-r--r--packaging/windows/setup.nsi2
-rw-r--r--src/actorsprite.cpp6
18 files changed, 15 insertions, 35 deletions
diff --git a/data/graphics/CMakeLists.txt b/data/graphics/CMakeLists.txt
index a46ccfd0e..5a9b0f65b 100644
--- a/data/graphics/CMakeLists.txt
+++ b/data/graphics/CMakeLists.txt
@@ -1,12 +1,3 @@
ADD_SUBDIRECTORY(gui)
ADD_SUBDIRECTORY(images)
ADD_SUBDIRECTORY(sprites)
-
-SET (FILES
- target-cursor-in-range-l.png
- target-cursor-in-range-m.png
- target-cursor-in-range-s.png
- target-cursor-normal-l.png
- target-cursor-normal-m.png
- target-cursor-normal-s.png
- )
diff --git a/data/graphics/Makefile.am b/data/graphics/Makefile.am
index d2f93f584..c0e91d050 100644
--- a/data/graphics/Makefile.am
+++ b/data/graphics/Makefile.am
@@ -1,16 +1,7 @@
graphicsdir = $(pkgdatadir)/data/graphics
-graphics_DATA = \
- target-cursor-in-range-l.png \
- target-cursor-in-range-m.png \
- target-cursor-in-range-s.png \
- target-cursor-normal-l.png \
- target-cursor-normal-m.png \
- target-cursor-normal-s.png
-
EXTRA_DIST = \
- $(graphics_DATA) \
CMakeLists.txt
SUBDIRS = gui images sprites
diff --git a/data/graphics/gui/CMakeLists.txt b/data/graphics/gui/CMakeLists.txt
index 2c6e4b933..aba42b39c 100644
--- a/data/graphics/gui/CMakeLists.txt
+++ b/data/graphics/gui/CMakeLists.txt
@@ -33,12 +33,12 @@ SET (FILES
tab.png
tab_hilight.png
tabselected.png
- target-cursor-blue-l.png
- target-cursor-blue-m.png
- target-cursor-blue-s.png
- target-cursor-red-l.png
- target-cursor-red-m.png
- target-cursor-red-s.png
+ target-cursor-in-range-l.png
+ target-cursor-in-range-m.png
+ target-cursor-in-range-s.png
+ target-cursor-normal-l.png
+ target-cursor-normal-m.png
+ target-cursor-normal-s.png
unknown-item.png
vscroll_down_default.png
vscroll_down_highlight.png
diff --git a/data/graphics/gui/Makefile.am b/data/graphics/gui/Makefile.am
index 388d01663..7fb82f545 100644
--- a/data/graphics/gui/Makefile.am
+++ b/data/graphics/gui/Makefile.am
@@ -36,12 +36,12 @@ gui_DATA = \
tab.png \
tab_hilight.png \
tabselected.png \
- target-cursor-blue-l.png \
- target-cursor-blue-m.png \
- target-cursor-blue-s.png \
- target-cursor-red-l.png \
- target-cursor-red-m.png \
- target-cursor-red-s.png \
+ target-cursor-in-range-l.png \
+ target-cursor-in-range-m.png \
+ target-cursor-in-range-s.png \
+ target-cursor-normal-l.png \
+ target-cursor-normal-m.png \
+ target-cursor-normal-s.png \
unknown-item.png \
vscroll_down_default.png \
vscroll_down_highlight.png \
diff --git a/data/graphics/gui/target-cursor-blue-l.png b/data/graphics/gui/target-cursor-blue-l.png
deleted file mode 100644
index 77cdf4b6d..000000000
--- a/data/graphics/gui/target-cursor-blue-l.png
+++ /dev/null
Binary files differ
diff --git a/data/graphics/gui/target-cursor-blue-m.png b/data/graphics/gui/target-cursor-blue-m.png
deleted file mode 100644
index c0107357a..000000000
--- a/data/graphics/gui/target-cursor-blue-m.png
+++ /dev/null
Binary files differ
diff --git a/data/graphics/gui/target-cursor-blue-s.png b/data/graphics/gui/target-cursor-blue-s.png
deleted file mode 100644
index 3e81c75de..000000000
--- a/data/graphics/gui/target-cursor-blue-s.png
+++ /dev/null
Binary files differ
diff --git a/data/graphics/target-cursor-in-range-l.png b/data/graphics/gui/target-cursor-in-range-l.png
index 77cdf4b6d..77cdf4b6d 100644
--- a/data/graphics/target-cursor-in-range-l.png
+++ b/data/graphics/gui/target-cursor-in-range-l.png
Binary files differ
diff --git a/data/graphics/target-cursor-in-range-m.png b/data/graphics/gui/target-cursor-in-range-m.png
index c0107357a..c0107357a 100644
--- a/data/graphics/target-cursor-in-range-m.png
+++ b/data/graphics/gui/target-cursor-in-range-m.png
Binary files differ
diff --git a/data/graphics/target-cursor-in-range-s.png b/data/graphics/gui/target-cursor-in-range-s.png
index 3e81c75de..3e81c75de 100644
--- a/data/graphics/target-cursor-in-range-s.png
+++ b/data/graphics/gui/target-cursor-in-range-s.png
Binary files differ
diff --git a/data/graphics/target-cursor-normal-l.png b/data/graphics/gui/target-cursor-normal-l.png
index 76d2101b1..76d2101b1 100644
--- a/data/graphics/target-cursor-normal-l.png
+++ b/data/graphics/gui/target-cursor-normal-l.png
Binary files differ
diff --git a/data/graphics/target-cursor-normal-m.png b/data/graphics/gui/target-cursor-normal-m.png
index e2ab79c29..e2ab79c29 100644
--- a/data/graphics/target-cursor-normal-m.png
+++ b/data/graphics/gui/target-cursor-normal-m.png
Binary files differ
diff --git a/data/graphics/target-cursor-normal-s.png b/data/graphics/gui/target-cursor-normal-s.png
index 09195f440..09195f440 100644
--- a/data/graphics/target-cursor-normal-s.png
+++ b/data/graphics/gui/target-cursor-normal-s.png
Binary files differ
diff --git a/data/graphics/gui/target-cursor-red-l.png b/data/graphics/gui/target-cursor-red-l.png
deleted file mode 100644
index 76d2101b1..000000000
--- a/data/graphics/gui/target-cursor-red-l.png
+++ /dev/null
Binary files differ
diff --git a/data/graphics/gui/target-cursor-red-m.png b/data/graphics/gui/target-cursor-red-m.png
deleted file mode 100644
index e2ab79c29..000000000
--- a/data/graphics/gui/target-cursor-red-m.png
+++ /dev/null
Binary files differ
diff --git a/data/graphics/gui/target-cursor-red-s.png b/data/graphics/gui/target-cursor-red-s.png
deleted file mode 100644
index 09195f440..000000000
--- a/data/graphics/gui/target-cursor-red-s.png
+++ /dev/null
Binary files differ
diff --git a/packaging/windows/setup.nsi b/packaging/windows/setup.nsi
index ebb2002a1..9767cf685 100644
--- a/packaging/windows/setup.nsi
+++ b/packaging/windows/setup.nsi
@@ -268,8 +268,6 @@ Section "Core files (required)" SecCore
File "${SRCDIR}\README.txt"
SetOutPath "$INSTDIR\data\fonts"
File "${SRCDIR}\data\fonts\*.ttf"
- SetOutPath "$INSTDIR\data\graphics"
- File "${SRCDIR}\data\graphics\*.png"
SetOutPath "$INSTDIR\data\graphics\gui"
File "${SRCDIR}\data\graphics\gui\*.png"
File "${SRCDIR}\data\graphics\gui\*.xml"
diff --git a/src/actorsprite.cpp b/src/actorsprite.cpp
index 2a92cf506..a0fafbbf9 100644
--- a/src/actorsprite.cpp
+++ b/src/actorsprite.cpp
@@ -437,7 +437,7 @@ static const char *cursorSize(int size)
void ActorSprite::initTargetCursor()
{
- static std::string targetCursorFile = "graphics/target-cursor-%s-%s.png";
+ static std::string targetCursorFile = "target-cursor-%s-%s.png";
static int targetWidths[NUM_TC] = {44, 62, 82};
static int targetHeights[NUM_TC] = {35, 44, 60};
@@ -479,8 +479,8 @@ void ActorSprite::loadTargetCursor(const std::string &filename,
if (size < TC_SMALL || size >= NUM_TC)
return;
- ResourceManager *resman = ResourceManager::getInstance();
- ImageSet *currentImageSet = resman->getImageSet(filename, width, height);
+ ImageSet *currentImageSet = Theme::getImageSetFromTheme(
+ filename, width, height);
if (!currentImageSet)
{