diff options
-rw-r--r-- | data/graphics/CMakeLists.txt | 9 | ||||
-rw-r--r-- | data/graphics/Makefile.am | 9 | ||||
-rw-r--r-- | data/graphics/gui/CMakeLists.txt | 12 | ||||
-rw-r--r-- | data/graphics/gui/Makefile.am | 12 | ||||
-rw-r--r-- | data/graphics/gui/target-cursor-blue-l.png | bin | 23803 -> 0 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-blue-m.png | bin | 18439 -> 0 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-blue-s.png | bin | 8353 -> 0 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-in-range-l.png (renamed from data/graphics/target-cursor-in-range-l.png) | bin | 23803 -> 23803 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-in-range-m.png (renamed from data/graphics/target-cursor-in-range-m.png) | bin | 18439 -> 18439 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-in-range-s.png (renamed from data/graphics/target-cursor-in-range-s.png) | bin | 8353 -> 8353 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-normal-l.png (renamed from data/graphics/target-cursor-normal-l.png) | bin | 25586 -> 25586 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-normal-m.png (renamed from data/graphics/target-cursor-normal-m.png) | bin | 17950 -> 17950 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-normal-s.png (renamed from data/graphics/target-cursor-normal-s.png) | bin | 8361 -> 8361 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-red-l.png | bin | 25586 -> 0 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-red-m.png | bin | 17950 -> 0 bytes | |||
-rw-r--r-- | data/graphics/gui/target-cursor-red-s.png | bin | 8361 -> 0 bytes | |||
-rw-r--r-- | packaging/windows/setup.nsi | 2 | ||||
-rw-r--r-- | src/actorsprite.cpp | 6 |
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 Binary files differdeleted file mode 100644 index 77cdf4b6d..000000000 --- a/data/graphics/gui/target-cursor-blue-l.png +++ /dev/null diff --git a/data/graphics/gui/target-cursor-blue-m.png b/data/graphics/gui/target-cursor-blue-m.png Binary files differdeleted file mode 100644 index c0107357a..000000000 --- a/data/graphics/gui/target-cursor-blue-m.png +++ /dev/null diff --git a/data/graphics/gui/target-cursor-blue-s.png b/data/graphics/gui/target-cursor-blue-s.png Binary files differdeleted file mode 100644 index 3e81c75de..000000000 --- a/data/graphics/gui/target-cursor-blue-s.png +++ /dev/null diff --git a/data/graphics/target-cursor-in-range-l.png b/data/graphics/gui/target-cursor-in-range-l.png Binary files differindex 77cdf4b6d..77cdf4b6d 100644 --- a/data/graphics/target-cursor-in-range-l.png +++ b/data/graphics/gui/target-cursor-in-range-l.png diff --git a/data/graphics/target-cursor-in-range-m.png b/data/graphics/gui/target-cursor-in-range-m.png Binary files differindex c0107357a..c0107357a 100644 --- a/data/graphics/target-cursor-in-range-m.png +++ b/data/graphics/gui/target-cursor-in-range-m.png diff --git a/data/graphics/target-cursor-in-range-s.png b/data/graphics/gui/target-cursor-in-range-s.png Binary files differindex 3e81c75de..3e81c75de 100644 --- a/data/graphics/target-cursor-in-range-s.png +++ b/data/graphics/gui/target-cursor-in-range-s.png diff --git a/data/graphics/target-cursor-normal-l.png b/data/graphics/gui/target-cursor-normal-l.png Binary files differindex 76d2101b1..76d2101b1 100644 --- a/data/graphics/target-cursor-normal-l.png +++ b/data/graphics/gui/target-cursor-normal-l.png diff --git a/data/graphics/target-cursor-normal-m.png b/data/graphics/gui/target-cursor-normal-m.png Binary files differindex e2ab79c29..e2ab79c29 100644 --- a/data/graphics/target-cursor-normal-m.png +++ b/data/graphics/gui/target-cursor-normal-m.png diff --git a/data/graphics/target-cursor-normal-s.png b/data/graphics/gui/target-cursor-normal-s.png Binary files differindex 09195f440..09195f440 100644 --- a/data/graphics/target-cursor-normal-s.png +++ b/data/graphics/gui/target-cursor-normal-s.png diff --git a/data/graphics/gui/target-cursor-red-l.png b/data/graphics/gui/target-cursor-red-l.png Binary files differdeleted file mode 100644 index 76d2101b1..000000000 --- a/data/graphics/gui/target-cursor-red-l.png +++ /dev/null diff --git a/data/graphics/gui/target-cursor-red-m.png b/data/graphics/gui/target-cursor-red-m.png Binary files differdeleted file mode 100644 index e2ab79c29..000000000 --- a/data/graphics/gui/target-cursor-red-m.png +++ /dev/null diff --git a/data/graphics/gui/target-cursor-red-s.png b/data/graphics/gui/target-cursor-red-s.png Binary files differdeleted file mode 100644 index 09195f440..000000000 --- a/data/graphics/gui/target-cursor-red-s.png +++ /dev/null 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) { |