summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-06-09 11:29:08 -0600
committerJared Adams <jaxad0127@gmail.com>2010-06-12 12:39:36 -0600
commit66fa5b45e5b9d8ed1838f2ea336771cc1839cf92 (patch)
tree33df20b782bf8427f82ddcb1ab9ea10dcedaa05a
parent24d29f88e6e8a28177d404bfa3ed87896bdd7a1f (diff)
downloadmana-client-66fa5b45e5b9d8ed1838f2ea336771cc1839cf92.tar.gz
mana-client-66fa5b45e5b9d8ed1838f2ea336771cc1839cf92.tar.bz2
mana-client-66fa5b45e5b9d8ed1838f2ea336771cc1839cf92.tar.xz
mana-client-66fa5b45e5b9d8ed1838f2ea336771cc1839cf92.zip
Add error.xml to client repository and move error.png
There is no reason why error.xml shouldn't be in this repository, as it is used when no sprite data is present and is a very small file anyways. Servers can still replace these if they want to. error.png is only used in sprites, so should be in the new sprites folder too. Reviewed-by: 4144
-rwxr-xr-xconfigure.ac1
-rw-r--r--data/graphics/CMakeLists.txt1
-rw-r--r--data/graphics/Makefile.am2
-rw-r--r--data/graphics/images/CMakeLists.txt1
-rw-r--r--data/graphics/images/Makefile.am3
-rw-r--r--data/graphics/sprites/CMakeLists.txt6
-rw-r--r--data/graphics/sprites/Makefile.am9
-rw-r--r--data/graphics/sprites/error.png (renamed from data/graphics/images/error.png)bin314 -> 314 bytes
-rw-r--r--data/graphics/sprites/error.xml10
-rw-r--r--packaging/windows/setup.nsi4
-rw-r--r--src/gui/serverdialog.cpp2
11 files changed, 35 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index ea77c600..64097586 100755
--- a/configure.ac
+++ b/configure.ac
@@ -138,6 +138,7 @@ data/fonts/Makefile
data/graphics/Makefile
data/graphics/gui/Makefile
data/graphics/images/Makefile
+data/graphics/sprites/Makefile
data/help/Makefile
data/icons/Makefile
docs/Makefile
diff --git a/data/graphics/CMakeLists.txt b/data/graphics/CMakeLists.txt
index 58d75523..5a9b0f65 100644
--- a/data/graphics/CMakeLists.txt
+++ b/data/graphics/CMakeLists.txt
@@ -1,2 +1,3 @@
ADD_SUBDIRECTORY(gui)
ADD_SUBDIRECTORY(images)
+ADD_SUBDIRECTORY(sprites)
diff --git a/data/graphics/Makefile.am b/data/graphics/Makefile.am
index e0003154..b77b57ca 100644
--- a/data/graphics/Makefile.am
+++ b/data/graphics/Makefile.am
@@ -1,4 +1,4 @@
EXTRA_DIST = CMakeLists.txt
-SUBDIRS = gui images
+SUBDIRS = gui images sprites
diff --git a/data/graphics/images/CMakeLists.txt b/data/graphics/images/CMakeLists.txt
index 5181b4e1..6694f254 100644
--- a/data/graphics/images/CMakeLists.txt
+++ b/data/graphics/images/CMakeLists.txt
@@ -1,5 +1,4 @@
SET(FILES
- error.png
login_wallpaper.png
)
diff --git a/data/graphics/images/Makefile.am b/data/graphics/images/Makefile.am
index 0bc2a5cd..20ea859f 100644
--- a/data/graphics/images/Makefile.am
+++ b/data/graphics/images/Makefile.am
@@ -1,9 +1,8 @@
imagesdir = $(pkgdatadir)/data/graphics/images
images_DATA = \
- error.png \
login_wallpaper.png
EXTRA_DIST = \
- $(images_DATA) \
+ $(images_DATA) \
CMakeLists.txt
diff --git a/data/graphics/sprites/CMakeLists.txt b/data/graphics/sprites/CMakeLists.txt
new file mode 100644
index 00000000..1d98772d
--- /dev/null
+++ b/data/graphics/sprites/CMakeLists.txt
@@ -0,0 +1,6 @@
+SET(FILES
+ error.png
+ error.xml
+ )
+
+INSTALL(FILES ${FILES} DESTINATION ${DATA_DIR}/graphics/sprits)
diff --git a/data/graphics/sprites/Makefile.am b/data/graphics/sprites/Makefile.am
new file mode 100644
index 00000000..249ca5cd
--- /dev/null
+++ b/data/graphics/sprites/Makefile.am
@@ -0,0 +1,9 @@
+spritesdir = $(pkgdatadir)/data/graphics/sprites
+
+sprites_DATA = \
+ error.png \
+ error.xml
+
+EXTRA_DIST = \
+ $(sprites_DATA) \
+ CMakeLists.txt
diff --git a/data/graphics/images/error.png b/data/graphics/sprites/error.png
index 6fd7c1a8..6fd7c1a8 100644
--- a/data/graphics/images/error.png
+++ b/data/graphics/sprites/error.png
Binary files differ
diff --git a/data/graphics/sprites/error.xml b/data/graphics/sprites/error.xml
new file mode 100644
index 00000000..3504bd01
--- /dev/null
+++ b/data/graphics/sprites/error.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<sprite>
+ <imageset name="base" src="graphics/sprites/error.png" width="29" height="9" />
+
+ <action name="default" imageset="base">
+ <animation direction="default">
+ <frame index="0" />
+ </animation>
+ </action>
+</sprite> \ No newline at end of file
diff --git a/packaging/windows/setup.nsi b/packaging/windows/setup.nsi
index 5a8513c5..9c620f35 100644
--- a/packaging/windows/setup.nsi
+++ b/packaging/windows/setup.nsi
@@ -189,6 +189,7 @@ Section "Core files (required)" SecCore
CreateDirectory "$INSTDIR\data\icons"
CreateDirectory "$INSTDIR\data\graphics\gui"
CreateDirectory "$INSTDIR\data\graphics\images"
+ CreateDirectory "$INSTDIR\data\graphics\sprites"
CreateDirectory "$INSTDIR\docs"
SetOverwrite ifnewer
@@ -207,6 +208,9 @@ Section "Core files (required)" SecCore
File "${SRCDIR}\data\graphics\gui\*.xml"
SetOutPath "$INSTDIR\data\graphics\images"
File /x minimap_*.png ${SRCDIR}\data\graphics\images\*.png
+ SetOutPath "$INSTDIR\data\graphics\sprites"
+ File "${SRCDIR}\data\graphics\sprites\*.png"
+ File "${SRCDIR}\data\graphics\sprites\*.xml"
SetOutPath "$INSTDIR\data\help"
File "${SRCDIR}\data\help\*.txt"
SetOutPath "$INSTDIR\data\icons\"
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index f0688d6a..8d84015f 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -544,6 +544,8 @@ void ServerDialog::loadServers()
// For display in the list
if (meetsMinimumVersion)
version.clear();
+ else if (version.empty())
+ version = _("requires a newer version");
else
version = strprintf(_("requires v%s"), version.c_str());