From 230178bf98949803de8072fe2f646be74b07a060 Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Tue, 31 Aug 2010 21:36:30 +0000 Subject: [PATCH] - Added drawshadow flag to drawstring. SVN r2656 (trunk) --- src/g_shared/sbarinfo_commands.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/g_shared/sbarinfo_commands.cpp b/src/g_shared/sbarinfo_commands.cpp index 8339a3592..e4413faf0 100644 --- a/src/g_shared/sbarinfo_commands.cpp +++ b/src/g_shared/sbarinfo_commands.cpp @@ -614,6 +614,19 @@ class CommandDrawString : public SBarInfoCommand sc.ScriptError("Unknown alignment '%s'.", sc.String); sc.MustGetToken(')'); } + else if(sc.Compare("drawshadow")) + { + if(sc.CheckToken('(')) + { + sc.MustGetToken(TK_IntConst); + shadowX = sc.Number; + sc.MustGetToken(','); + sc.MustGetToken(TK_IntConst); + shadowY = sc.Number; + sc.MustGetToken(')'); + } + shadow = true; + } else sc.ScriptError("Unknown flag '%s'.", sc.String); if(!sc.CheckToken('|') && !sc.CheckToken(',')) break;