- Improved TextDefinition formatting for staff use (props gump, set gump, get command).
- Improved parsing of TextDefinition from string.
This commit is contained in:
parent
a0e13d5007
commit
2f06b89f8f
4 changed files with 49 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -77,6 +77,8 @@ namespace Server.Gumps
|
|||
|
||||
if ( val == null )
|
||||
initialText = "";
|
||||
else if ( val is TextDefinition )
|
||||
initialText = ((TextDefinition)val).GetValue();
|
||||
else
|
||||
initialText = val.ToString();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue