Author: esr
Date: Sat Apr  7 08:55:40 2007
New Revision: 16667

URL: http://svn.gna.org/viewcvs/wesnoth?rev=16667&view=rev
Log:
Create a new topic file for macros that do images and overlays and effects.

Added:
    trunk/data/utils/image-utils.cfg
Modified:
    trunk/data/utils/utils.cfg

Added: trunk/data/utils/image-utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/utils/image-utils.cfg?rev=16667&view=auto
==============================================================================
--- trunk/data/utils/image-utils.cfg (added)
+++ trunk/data/utils/image-utils.cfg Sat Apr  7 08:55:40 2007
@@ -1,0 +1,82 @@
+# Utility macros for images, overlays, and display effects.
+# These don't depend on any other macros.  Please don't change this.
+
+# A macro to define a common set of magenta color values which different
+# units can be color shifted by using the team color system.
+
+#define MAGENTA_IS_THE_TEAM_COLOR
+flag_rgb=magenta
+#enddef
+
+#define COLOR_HEAL
+green=255
+#enddef
+
+#define COLOR_HARM
+red=255
+#enddef
+
+#define COLOR_WHITE
+red=255
+green=255
+blue=255
+#enddef
+
+#define IS_HERO
+# Embed this into a unit declaration to add a hero icon to the unit
+overlays="misc/hero-icon.png"
+#enddef
+
+#define DOT X Y
+[image]
+x,y={X},{Y}
+file=misc/dot.png
+delay=500
+[/image]
+#enddef
+
+#define CROSS X Y
+[image]
+x,y={X},{Y}
+file=misc/cross.png
+delay=500
+[/image]
+#enddef
+
+#define PLACE_IMAGE IMAGE_FILE X Y
+    [item]
+        x={X}
+        y={Y}
+        image={IMAGE_FILE}
+    [/item]
+#enddef
+
+#define TREMOR
+    [sound]
+    name="rumble.ogg"
+    [/sound]
+    [scroll]
+        x=5
+        y=0
+    [/scroll]
+    [scroll]
+        x=-10
+        y=0
+    [/scroll]
+    [scroll]
+        x=5
+        y=5
+    [/scroll]
+    [scroll]
+        x=0
+        y=-10
+    [/scroll]
+    [scroll]
+        x=0
+        y=5
+    [/scroll]
+#enddef
+
+
+
+

Modified: trunk/data/utils/utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/utils/utils.cfg?rev=16667&r1=16666&r2=16667&view=diff
==============================================================================
--- trunk/data/utils/utils.cfg (original)
+++ trunk/data/utils/utils.cfg Sat Apr  7 08:55:40 2007
@@ -19,8 +19,6 @@
 # scenario/campaign setup
 
 #   STARTING_VILLAGES
-#   DOT
-#   CROSS
 #   MENU_IMG_TXT
 #   MENU_IMG_TXT2
 
@@ -34,9 +32,6 @@
 
 # in-scenario actions
 
-#   PLACE_IMAGE
-#   TREMOR
-#   IS_HERO
 #   UNIT
 #   UNDEAD_UNIT
 #   CREATE_UNIT
@@ -48,10 +43,6 @@
 # utilities not intended for general use
 
 #   QUANTITY
-#   MAGENTA_IS_THE_TEAM_COLOR
-#   COLOR_HEAL
-#   COLOR_HARM
-#   COLOR_WHITE
 
 #### END OF TABLE OF CONTENTS ####
 
@@ -95,28 +86,6 @@
 #define NO_SCOUTS
 villages_per_scout=0
 #enddef
-
-#macro to add a hero icon to the unit
-#define IS_HERO
-overlays="misc/hero-icon.png"
-#enddef
-
-#define DOT X Y
-[image]
-x,y={X},{Y}
-file=misc/dot.png
-delay=500
-[/image]
-#enddef
-
-#define CROSS X Y
-[image]
-x,y={X},{Y}
-file=misc/cross.png
-delay=500
-[/image]
-#enddef
-
 
 #macro to quickly pick a random value (in the $random variable, to avoid
 #cluterring up savegames with such temporary variables)
@@ -461,59 +430,4 @@
     [/unit]
 #enddef
 
-#define PLACE_IMAGE IMAGE_FILE X Y
-    [item]
-        x={X}
-        y={Y}
-        image={IMAGE_FILE}
-    [/item]
-#enddef
-
-#define TREMOR
-    [sound]
-    name="rumble.ogg"
-    [/sound]
-    [scroll]
-        x=5
-        y=0
-    [/scroll]
-    [scroll]
-        x=-10
-        y=0
-    [/scroll]
-    [scroll]
-        x=5
-        y=5
-    [/scroll]
-    [scroll]
-        x=0
-        y=-10
-    [/scroll]
-    [scroll]
-        x=0
-        y=5
-    [/scroll]
-#enddef
-
-
-# a macro to define a common set of magenta color values which different
-# units can be color shifted by using the team color system
-
-#define MAGENTA_IS_THE_TEAM_COLOR
-flag_rgb=magenta
-#enddef
-
-#define COLOR_HEAL
-green=255
-#enddef
-
-#define COLOR_HARM
-red=255
-#enddef
-
-#define COLOR_WHITE
-red=255
-green=255
-blue=255
-#enddef
-
+


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to