UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 
Firefox/1.0.4 (Debian package 1.0.4-2)
IP: 64.81.113.168
URI: http://wesnoth.slack.it/?DescriptionWML
 - - - - -
Index: DescriptionWML
===================================================================
RCS file: /home/wesnoth/cvsroot/wikiroot/DescriptionWML,v
retrieving revision 1.6
diff -u -r1.6 DescriptionWML
--- DescriptionWML      14 Jun 2005 16:24:31 -0000      1.6
+++ DescriptionWML      14 Jun 2005 19:20:36 -0000
@@ -1,25 +1,31 @@
 Descriptions are used to create menus with options that have text and an image
 (the image is called the //icon//).
 
-Descriptions are now described through macros, so a description should look 
like one of these:
+A description has the format
 
-||{MENU_IMG_TXT2 //icon//}||
+||";"+|| if another description precedes it
 
-||{MENU_IMG_TXT2 //icon// //text//}||
+||"*"+|| if it should be the default selection
 
-The description will appear as the image //icon//, followed by text //text// 
if applicable.
+||"&"+//image//+"="+//texts//|| main description; different texts separated by 
||+||
 
-Different descriptions are separated with the plus('+') sign.
-If a key uses multiple descriptions, then they must be separated by 
semicolons(||";"||).
-The default selection is preceded by a star(||"*"||).
+for example:
 
-For example:
+ difficulty_descriptions="&" +elvish-fighter.png + "=" + _"Fighter" + 
_"(easiest)" +
+       ";*" + "&" +elvish-hero.png + "=" + _"Hero" + ";" +
+       "&" +elvish-champion.png + _"Champion" + _"(hardest)"
 
-<tt>
-difficulty_descriptions={MENU_IMG_TXT2 elvish-fighter.png _"Fighter" 
_"(easiest)"} +
-        ";*" + {MENU_IMG_TXT elvish-hero.png _"Hero"} + ";" +
-        {MENU_IMG_TXT2 elvish-champion.png _"Champion" _"(hardest)"}
-</tt>
+The utility macros(see UtilWML)
+
+||{MENU_IMG_TXT //icon// //text//}||
+
+||{MENU_IMG_TXT2 //icon// //text// //text-2//}||
+
+can be used to create descriptions more easily. The above example would become:
+
+ difficulty_descriptions={MENU_IMG_TXT2 elvish-fighter.png _"Fighter" 
_"(easiest)"} +
+       ";*" + {MENU_IMG_TXT elvish-hero.png _"Hero"} + ";" +
+       {MENU_IMG_TXT2 elvish-champion.png _"Champion" _"(hardest)"}
 
 ||See Also||
 




_______________________________________________
Wesnoth-wiki-changes mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes

Reply via email to