- Improved TextDefinition formatting for staff use (props gump, set gump, get command).

- Improved parsing of TextDefinition from string.
This commit is contained in:
eos 2012-03-07 21:24:26 +00:00
parent a0e13d5007
commit 2f06b89f8f
4 changed files with 49 additions and 4 deletions

View file

@ -510,6 +510,10 @@ namespace Server.Gumps
{
return ((Type)o).Name;
}
else if ( o is TextDefinition )
{
return ((TextDefinition)o).Format( true );
}
else
{
return o.ToString();

View file

@ -77,6 +77,8 @@ namespace Server.Gumps
if ( val == null )
initialText = "";
else if ( val is TextDefinition )
initialText = ((TextDefinition)val).GetValue();
else
initialText = val.ToString();