Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -46,7 +46,7 @@ namespace Server.Commands
|
|||
return;
|
||||
}
|
||||
else
|
||||
e.Mobile.SendMessage( String.Format( "Command '{0}' not found!", arg ) );
|
||||
e.Mobile.SendMessage($"Command '{arg}' not found!");
|
||||
}
|
||||
|
||||
e.Mobile.SendGump( new CommandListGump( 0, e.Mobile, null ) );
|
||||
|
|
@ -255,7 +255,8 @@ namespace Server.Commands
|
|||
else
|
||||
AddEntryHeader( 20 );
|
||||
|
||||
AddEntryHtml( 160, Center( String.Format( "Page {0} of {1}", m_Page+1, (m_List.Count + EntriesPerPage - 1) / EntriesPerPage ) ) );
|
||||
AddEntryHtml( 160, Center(
|
||||
$"Page {m_Page + 1} of {(m_List.Count + EntriesPerPage - 1) / EntriesPerPage}") );
|
||||
|
||||
if ( (m_Page + 1) * EntriesPerPage < m_List.Count )
|
||||
AddEntryButton( 20, ArrowRightID1, ArrowRightID2, 2, ArrowRightWidth, ArrowRightHeight );
|
||||
|
|
@ -346,12 +347,12 @@ namespace Server.Commands
|
|||
{
|
||||
public string Color( string text, int color )
|
||||
{
|
||||
return String.Format( "<BASEFONT COLOR=#{0:X6}>{1}</BASEFONT>", color, text );
|
||||
return $"<BASEFONT COLOR=#{color:X6}>{text}</BASEFONT>";
|
||||
}
|
||||
|
||||
public string Center( string text )
|
||||
{
|
||||
return String.Format( "<CENTER>{0}</CENTER>", text );
|
||||
return $"<CENTER>{text}</CENTER>";
|
||||
}
|
||||
|
||||
public CommandInfoGump( CommandInfo info )
|
||||
|
|
@ -384,7 +385,7 @@ namespace Server.Commands
|
|||
|
||||
if ( aliases != null && aliases.Length != 0 )
|
||||
{
|
||||
sb.Append( String.Format( "Alias{0}: ", aliases.Length == 1 ? "" : "es" ) );
|
||||
sb.Append($"Alias{(aliases.Length == 1 ? "" : "es")}: ");
|
||||
|
||||
for( int i = 0; i < aliases.Length; ++i )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue