mail[Wesnoth-commits] r24375 - /trunk/data/core/macros/sound-utils.cfg


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by lari . nieminen on March 06, 2008 - 20:03:
Author: zookeeper
Date: Thu Mar  6 20:03:07 2008
New Revision: 24375

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24375&view=rev
Log:
Added a new music macro which makes specifying playlists more convenient.

Modified:
    trunk/data/core/macros/sound-utils.cfg

Modified: trunk/data/core/macros/sound-utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/macros/sound-utils.cfg?rev=24375&r1=24374&r2=24375&view=diff
==============================================================================
--- trunk/data/core/macros/sound-utils.cfg (original)
+++ trunk/data/core/macros/sound-utils.cfg Thu Mar  6 20:03:07 2008
@@ -211,6 +211,23 @@
         name=prestart
         [music]
             name={MUSIC}
+            immediate=yes
+        [/music]
+    [/event]
+#enddef
+
+#define EXTRA_SCENARIO_MUSIC MUSIC
+    # Use this immediately after the above SCENARIO_MUSIC macro to append 
extra
+    # tracks to the playlist.
+    #
+    # Example:
+    #! {SCENARIO_MUSIC battle.ogg}
+    #! {EXTRA_SCENARIO_MUSIC knolls.ogg}
+    #! {EXTRA_SCENARIO_MUSIC frantic.ogg}
+    [+event]
+        [music]
+            name={MUSIC}
+            append=yes
         [/music]
     [/event]
 #enddef




Related Messages


Powered by MHonArc, Updated Thu Mar 06 20:22:00 2008