Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -85,7 +85,8 @@ namespace Server.Commands.Generic
|
|||
else
|
||||
AddEntryHeader( 20 );
|
||||
|
||||
AddEntryHtml( 40 + ( m_Columns.Length * 130 ) - 20 + ( ( m_Columns.Length - 2 ) * OffsetSize ), Center( String.Format( "Page {0} of {1}", m_Page+1, (m_List.Count + EntriesPerPage - 1) / EntriesPerPage ) ) );
|
||||
AddEntryHtml( 40 + ( m_Columns.Length * 130 ) - 20 + ( ( m_Columns.Length - 2 ) * OffsetSize ), 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 );
|
||||
|
|
@ -297,7 +298,7 @@ namespace Server.Commands.Generic
|
|||
|
||||
private void InvokeCommand( string ip )
|
||||
{
|
||||
CommandSystem.Handle( m_From, String.Format( "{0}{1}", CommandSystem.Prefix, ip ) );
|
||||
CommandSystem.Handle( m_From, $"{CommandSystem.Prefix}{ip}");
|
||||
}
|
||||
|
||||
public override void OnResponse( NetState sender, RelayInfo info )
|
||||
|
|
@ -338,7 +339,7 @@ namespace Server.Commands.Generic
|
|||
case 4: // Go there
|
||||
{
|
||||
m_From.SendGump( new InterfaceItemGump( m_From, m_Columns, m_List, m_Page, m_Item ) );
|
||||
InvokeCommand( String.Format( "Go {0}", m_Item.Serial.Value ) );
|
||||
InvokeCommand($"Go {m_Item.Serial.Value}");
|
||||
break;
|
||||
}
|
||||
case 5: // Move to target
|
||||
|
|
@ -458,7 +459,7 @@ namespace Server.Commands.Generic
|
|||
|
||||
private void InvokeCommand( string ip )
|
||||
{
|
||||
CommandSystem.Handle( m_From, String.Format( "{0}{1}", CommandSystem.Prefix, ip ) );
|
||||
CommandSystem.Handle( m_From, $"{CommandSystem.Prefix}{ip}");
|
||||
}
|
||||
|
||||
public override void OnResponse( NetState sender, RelayInfo info )
|
||||
|
|
@ -503,7 +504,7 @@ namespace Server.Commands.Generic
|
|||
case 4: // Go there
|
||||
{
|
||||
m_From.SendGump( new InterfaceMobileGump( m_From, m_Columns, m_List, m_Page, m_Mobile ) );
|
||||
InvokeCommand( String.Format( "Go {0}", m_Mobile.Serial.Value ) );
|
||||
InvokeCommand($"Go {m_Mobile.Serial.Value}");
|
||||
break;
|
||||
}
|
||||
case 5: // Bring them here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue