Author: esr
Date: Tue May  1 09:58:08 2007
New Revision: 17227

URL: http://svn.gna.org/viewcvs/wesnoth?rev=17227&view=rev
Log:
Some macros from NR move to mainline.

Modified:
    trunk/data/campaigns/Northern_Rebirth/scenarios/Breaking_the_Chains.cfg
    trunk/data/utils/image-utils.cfg
    trunk/data/utils/utils.cfg

Modified: 
trunk/data/campaigns/Northern_Rebirth/scenarios/Breaking_the_Chains.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/campaigns/Northern_Rebirth/scenarios/Breaking_the_Chains.cfg?rev=17227&r1=17226&r2=17227&view=diff
==============================================================================
--- trunk/data/campaigns/Northern_Rebirth/scenarios/Breaking_the_Chains.cfg 
(original)
+++ trunk/data/campaigns/Northern_Rebirth/scenarios/Breaking_the_Chains.cfg Tue 
May  1 09:58:08 2007
@@ -1,26 +1,3 @@
-# Apply an image mod to filter-selected units at prestart time
-#define PRESTART_FILTER_EFFECT FILTER EFFECT
-       [event]
-               name=prestart
-               first_time_only=yes
-               [object]
-                       silent=yes
-                       [filter]
-                               {FILTER}
-                       [/filter]
-                       [effect]
-                               apply_to=image_mod
-                               add={EFFECT}
-                       [/effect]
-               [/object]
-       [/event]
-#enddef
-
-# Override the team color of filtered units
-#define TEAM_COLOR_OVERRIDE FILTER TEAMCOLOR
-       {PRESTART_FILTER_EFFECT {FILTER} "RC(magenta>{TEAMCOLOR})"}
-#enddef
-
 [scenario]
        #textdomain wesnoth-Northern_Rebirth
        id=chain_break

Modified: trunk/data/utils/image-utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/utils/image-utils.cfg?rev=17227&r1=17226&r2=17227&view=diff
==============================================================================
--- trunk/data/utils/image-utils.cfg (original)
+++ trunk/data/utils/image-utils.cfg Tue May  1 09:58:08 2007
@@ -54,7 +54,31 @@
     [/item]
 #enddef
 
+#define PRESTART_FILTER_EFFECT FILTER EFFECT
+# Apply an image mod to filter-selected units at prestart time
+       [event]
+               name=prestart
+               first_time_only=yes
+               [object]
+                       silent=yes
+                       [filter]
+                               {FILTER}
+                       [/filter]
+                       [effect]
+                               apply_to=image_mod
+                               add={EFFECT}
+                       [/effect]
+               [/object]
+       [/event]
+#enddef
+
+#define TEAM_COLOR_OVERRIDE FILTER TEAMCOLOR
+# Override the team color of filtered units.
+# This is an example of how to use PRESTART_FILTER_EFFECT.
+       {PRESTART_FILTER_EFFECT {FILTER} "RC(magenta>{TEAMCOLOR})"}
+#enddef
 
 
 
 
+

Modified: trunk/data/utils/utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/utils/utils.cfg?rev=17227&r1=17226&r2=17227&view=diff
==============================================================================
--- trunk/data/utils/utils.cfg (original)
+++ trunk/data/utils/utils.cfg Tue May  1 09:58:08 2007
@@ -417,6 +417,25 @@
     [/unit]
 #enddef
 
+#define SET_PORTRAIT DESC IMAGE 
+# Set the profile field of any unit matching specified description.
+# Meant to be called in a scenario start or prestart event.
+# This change will be persistent and carried by the unit in later scenarios.
+       [object]
+               silent=yes
+               duration=forever
+
+               [filter]
+                       description={DESC}
+               [/filter]
+
+               [effect]
+                       apply_to=profile
+                       portrait={IMAGE}
+               [/effect]
+       [/object]
+#enddef
+
 # FIXME: Documentation for these is needed.
 
 #define MENU_IMG_TXT IMG TXT


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

Reply via email to