From 020043ca07d80e28cd4033bd5ea564bd5476f8e1 Mon Sep 17 00:00:00 2001 From: Bukz Date: Thu, 31 Mar 2011 18:21:42 +0000 Subject: [PATCH] more doc updates... git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6173 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/docs.cfg | 15 ++++++-- docs/reference.xml | 95 ++++++++++++++++++++++++++++++++++++---------- 2 files changed, 87 insertions(+), 23 deletions(-) diff --git a/config/docs.cfg b/config/docs.cfg index 34e1672a..813621a3 100644 --- a/config/docs.cfg +++ b/config/docs.cfg @@ -139,6 +139,11 @@ docexample [sleep 1000 [ echo foo ]] [Prints 'foo' to the screen after 1 second. docident [strcmp] [Determines if two strings are equal.]; docargument [A] [the first string] [] [0]; docargument [B] [the second string] [] [0]; +docexample [if (strcmp yes yes) [echo the two strings are equal] [echo the two strings are not equal]] [Output: the two strings are equal]; +docident [strstr] [Determines if string B was found in string A.]; +docargument [A] [The first string.]; +docargument [B] [The second string.]; +docexample [if (strstr "Hello world!" Hello) [echo found Hello in Hello world!] [echo did not find Hello in Hello world!]] [Output: found Hello in Hello world!]; docident [strlen] [Returns the length (in characters, including whitespace) of string S.]; docargument [S] [The string to check.]; docexample [echo (strlen "Hello world!")] [output: 12]; @@ -153,6 +158,9 @@ docargument [cond] [the condition] [0 (false) or anything else (true)] [0]; docargument [body] [the body to execute on each iteration] [] [0]; docremark [This command sets the alias "i" from 0 to N-1 for every iteration. Note that the condition here has to have [], otherwise it would only be evaluated once.]; docexample [alias i 0; while [ (< $i 10) ] [ echo $i; alias i (+ $i 1) ]] []; +docident [c] [Adds color to a string.]; +docargument [N] [The color ID.]; +docexample [echo (c 3)Hello (c 0)world!] [Output: a red "Hello" and a green "world!"]; docsection [General] docident [addserver] [Adds a server to the list of server to query in the server list menu.]; docargument [S] [the address of the server (hostname or IP)] [] [0]; @@ -547,6 +555,9 @@ docident [voicecom] []; docargument [S] [sound] [must be a registered voicecom-sound] [0]; docargument [T] [text] [] [0]; dockey [V] [] [opens the voicecom menu, use number keys for your choice]; +docident [voicecomsounds] [Enables or disables voicecom audio.]; +docargument [N] [0..2] [min 0/max 2/default 1]; +docremark [0 (off), 1 (always play voicecom audio), 2 (only play voicecom audio from you and your teammates)]; docident [vote] [agree or disagree to the currently running vote]; docargument [V] [vote value] [1 (yes) OR 2 (no)] [0]; dockey [F1] [] [votes YES]; @@ -1557,6 +1568,4 @@ docargument [N] [TODO] [min 0/max 1/default 0]; docident [texreduce] [-1: 2x2 : 0 : 1: x0.5 : 2: x0.25 : 3: x0.125]; docargument [N] [TODO] [min -1/max 3/default 0]; docident [texturescale] [TODO]; -docargument [N] [TODO] [min 16/max 64/default 32]; -docident [voicecomsounds] [TODO]; -docargument [N] [TODO] [min 0/max 2/default 1]; \ No newline at end of file +docargument [N] [TODO] [min 16/max 64/default 32]; \ No newline at end of file diff --git a/docs/reference.xml b/docs/reference.xml index 25b6ffee..04898593 100644 --- a/docs/reference.xml +++ b/docs/reference.xml @@ -345,13 +345,40 @@ Determines if two strings are equal. + + + + Output: the two strings are equal + + + + + + + Determines if string B was found in string A. + + + + Output: found Hello in Hello world! + + + + + + + + + + + + Returns the length (in characters, including whitespace) of string S. @@ -557,6 +584,22 @@ + + + Adds color to a string. + + + + Output: a red "Hello" and a green "world!" + + + + + + + + + @@ -1300,6 +1343,16 @@ echo (pstat_weap 0) + + + Enables or disables voicecom audio. + + + + + + + returns the mapname @@ -3316,8 +3369,8 @@ Output: - -
+ +
This section describes the identifiers to configure the head-up display (HUD). @@ -3463,7 +3516,7 @@ Output: Shows extra gameplay messages on certain events if connected to a server. - + @@ -3606,7 +3659,7 @@ Output: colour of CN column in scoreboard - + @@ -4100,6 +4153,7 @@ Output: Mute a specific game sound. + @@ -4107,6 +4161,23 @@ Output: + + + Returns 1 if sound A is muted, else 0. + + + + Output: Sound 5 is muted! + + + + + + + + + + Unmutes all previously muted sounds. @@ -5454,7 +5525,6 @@ Output: - a menuitem that loads a map, displays the title and the preview or a default image @@ -5492,13 +5562,6 @@ Output: - - TODO: Description - - - - - 0: none, 1: switch to primary?, 2: switch to nades?-before-switch to primary? @@ -5539,8 +5602,6 @@ Output: - - TODO @@ -5606,12 +5667,6 @@ Output: - - TODO - - - - change at what position to truncate the map title string