Less complex theme.cfg format ;) Information about image dimensions is obtained from image
authorunc0rr
Sun, 26 Nov 2006 20:33:46 +0000
changeset 279 5df0ab96b60a
parent 278 15ff0ad81d49
child 280 4d6e365befc1
Less complex theme.cfg format ;) Information about image dimensions is obtained from image
hedgewars/options.inc
hedgewars/uLandObjects.pas
share/hedgewars/Data/Themes/avematan/theme.cfg
share/hedgewars/Data/Themes/bubbles/theme.cfg
share/hedgewars/Data/Themes/steel/theme.cfg
share/hedgewars/Data/Themes/tibet/theme.cfg
share/hedgewars/Data/Themes/wood/theme.cfg
share/hedgewars/Data/Themes/xtheme/theme.cfg
--- a/hedgewars/options.inc	Sun Nov 26 18:15:31 2006 +0000
+++ b/hedgewars/options.inc	Sun Nov 26 20:33:46 2006 +0000
@@ -17,7 +17,7 @@
  *)
 
 {$J+}
-{ $DEFINE DEBUGFILE}
+{$DEFINE DEBUGFILE}
 { $DEFINE COUNTTICKS}
 { $DEFINE DUMP}
 { $DEFINE TRACEAIACTIONS}
--- a/hedgewars/uLandObjects.pas	Sun Nov 26 18:15:31 2006 +0000
+++ b/hedgewars/uLandObjects.pas	Sun Nov 26 20:33:46 2006 +0000
@@ -359,7 +359,8 @@
     with ThemeObjects.objs[i] do
          begin
          Surf:= LoadImage(Pathz[ptCurrTheme] + '/' + s, false);
-         Read(f, Width, Height);
+         Width:= Surf.w;
+         Height:= Surf.h;
          with inland do Read(f, x, y, w, h);
          Read(f, rectcnt);
          for ii:= 1 to rectcnt do
--- a/share/hedgewars/Data/Themes/avematan/theme.cfg	Sun Nov 26 18:15:31 2006 +0000
+++ b/share/hedgewars/Data/Themes/avematan/theme.cfg	Sun Nov 26 20:33:46 2006 +0000
@@ -1,13 +1,13 @@
 8388608
 5
 a
-186 221 65 220 45 1 1 0 0 186 180
+65 220 45 1 1 0 0 186 180
 e
-150 181 56 180 33 1 2 0 65 117 90 65 0 95 118
+56 180 33 1 2 0 65 117 90 65 0 95 118
 inf
-248 112 220 5 22 18 1 0 0 205 112
+220 5 22 18 1 0 0 205 112
 inf
-248 112 0 48 4 18 1 29 0 219 112
+0 48 4 18 1 29 0 219 112
 sqrt
-264 249 2 191 7 25 3 25 183 82 66 68 54 81 131 117 2 146 55
+2 191 7 25 3 25 183 82 66 68 54 81 131 117 2 146 55
 0
--- a/share/hedgewars/Data/Themes/bubbles/theme.cfg	Sun Nov 26 18:15:31 2006 +0000
+++ b/share/hedgewars/Data/Themes/bubbles/theme.cfg	Sun Nov 26 20:33:46 2006 +0000
@@ -1,5 +1,5 @@
 2829989
 1
 round
-167 242 90 242 10 1 3 0 0 97 97 63 61 95 115 100 190 67 26
+90 242 10 1 3 0 0 97 97 63 61 95 115 100 190 67 26
 0
--- a/share/hedgewars/Data/Themes/steel/theme.cfg	Sun Nov 26 18:15:31 2006 +0000
+++ b/share/hedgewars/Data/Themes/steel/theme.cfg	Sun Nov 26 20:33:46 2006 +0000
@@ -1,7 +1,7 @@
 2105376
 2
 01
-122 178 4 175 114 2 1 0 0 122 132
+4 175 114 2 1 0 0 122 132
 02
-366 363 363 300 3 44 2 119 110 198 205 0 0 171 175
+363 300 3 44 2 119 110 198 205 0 0 171 175
 0
--- a/share/hedgewars/Data/Themes/tibet/theme.cfg	Sun Nov 26 18:15:31 2006 +0000
+++ b/share/hedgewars/Data/Themes/tibet/theme.cfg	Sun Nov 26 20:33:46 2006 +0000
@@ -1,13 +1,13 @@
 4989440
 5
 chha
-167 127 26 118 94 9 2 5 9 127 94 135 2 29 29
+26 118 94 9 2 5 9 127 94 135 2 29 29
 ma
-145 117 88 98 22 11 2 9 4 105 90 120 1 23 25
+88 98 22 11 2 9 4 105 90 120 1 23 25
 nga
-131 111 115 95 11 13 2 7 6 95 91 105 6 18 17
+115 95 11 13 2 7 6 95 91 105 6 18 17
 sa
-153 111 2 83 14 12 2 9 9 140 57 25 65 96 40
+2 83 14 12 2 9 9 140 57 25 65 96 40
 ta1
-125 139 58 130 16 8 1 5 7 119 100
+58 130 16 8 1 5 7 119 100
 0
--- a/share/hedgewars/Data/Themes/wood/theme.cfg	Sun Nov 26 18:15:31 2006 +0000
+++ b/share/hedgewars/Data/Themes/wood/theme.cfg	Sun Nov 26 20:33:46 2006 +0000
@@ -1,9 +1,9 @@
 5129753
 2
 tree
-105 225 41 224 22 1 1 0 0 105 203
+41 224 22 1 1 0 0 105 203
 gr1
-121 129 47 123 27 4 1 0 0 121 105
+47 123 27 4 1 0 0 121 105
 2
 leaf1
 5
--- a/share/hedgewars/Data/Themes/xtheme/theme.cfg	Sun Nov 26 18:15:31 2006 +0000
+++ b/share/hedgewars/Data/Themes/xtheme/theme.cfg	Sun Nov 26 20:33:46 2006 +0000
@@ -1,5 +1,5 @@
 8388608
 1
 plant1
-128 128 35 127 29 1 2 12 7 63 108 75 26 49 52
+35 127 29 1 2 12 7 63 108 75 26 49 52
 0