From 48a493cbb1af8c38a59f71a91974ffea6bc70e53 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 19 Aug 2007 00:11:11 +0000 Subject: [PATCH] Document mbstrlen, BitmapText:AddAttribute, and BitmapText:ClearAttributes. --- stepmania/Docs/LuaDocumentation.xml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/stepmania/Docs/LuaDocumentation.xml b/stepmania/Docs/LuaDocumentation.xml index 323e556d09..b01cb67487 100644 --- a/stepmania/Docs/LuaDocumentation.xml +++ b/stepmania/Docs/LuaDocumentation.xml @@ -71,6 +71,9 @@ Flushes log files to disk. + + Returns the length of the multi-byte character string sString. + @@ -118,6 +121,26 @@ + + Add the attribute attr to the string at position + iPos.
+ The attribute is a table that must contain Length + which specifies how many (multi-byte) characters the attribute + is to apply. If Length=-1, then the attribute applies + until another attribute overrides it.
+ If the table contains Diffuse, then the color value + is applied to the range of text.
+ If the table contains Diffuses, then it should be + an array of 4 colors which specify the diffuse color for the + top left, top right, bottom left, and bottom right.
+ If the table contains Glow, then the color value + is applied as a glow to the range of text.
+ Example:
+ attr = { Length = 10; Diffuse = color("#AABBCC"); } +
+ + Clear all attributes associated with the BitmapText. + Returns the text. @@ -134,7 +157,7 @@ If true, set each character of the text in turn to the rainbow colors in the metrics BitmapText::RainbowColor#. - Set the text to sText. + Set the text to sText. This clears all attributes. Add iSpacing pixels of padding between lines of text.