Fixes string interpolation
This commit is contained in:
parent
42d0b6271f
commit
7d3a0ca265
233 changed files with 758 additions and 690 deletions
|
|
@ -37,7 +37,8 @@ namespace Server.Engines.Help
|
|||
string playerName = player.Name;
|
||||
string playerAccount = player.Account is Account ? player.Account.Username : "???";
|
||||
|
||||
AddHtml( 10, 10, 280, 20, String.Format( "<basefont color=#A0A0FF><center>SPEECH LOG - {0} (<i>{1}</i>)</center></basefont>", playerName, Utility.FixHtml( playerAccount ) ), false, false );
|
||||
AddHtml( 10, 10, 280, 20,
|
||||
$"<basefont color=#A0A0FF><center>SPEECH LOG - {playerName} (<i>{Utility.FixHtml(playerAccount)}</i>)</center></basefont>", false, false );
|
||||
|
||||
int lastPage = ( log.Count - 1 ) / MaxEntriesPerPage;
|
||||
|
||||
|
|
@ -78,7 +79,7 @@ namespace Server.Engines.Help
|
|||
if ( page > 0 )
|
||||
AddButton( 10, 395, 0xFAE, 0xFB0, 1, GumpButtonType.Reply, 0 ); // Previous page
|
||||
|
||||
AddLabel( 45, 395, 0x481, String.Format( "Current page: {0}/{1}", page + 1, lastPage + 1 ) );
|
||||
AddLabel( 45, 395, 0x481, $"Current page: {page + 1}/{lastPage + 1}");
|
||||
|
||||
if ( page < lastPage )
|
||||
AddButton( 261, 395, 0xFA5, 0xFA7, 2, GumpButtonType.Reply, 0 ); // Next page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue