mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
push changes i have
This commit is contained in:
parent
6256c38414
commit
7686680c09
7 changed files with 244 additions and 5 deletions
|
@ -846,6 +846,8 @@ namespace HISP.Game
|
|||
public static string GameBestTimeHeaderFormat;
|
||||
public static string GameHighScoreHeaderFormat;
|
||||
public static string GameHighScoreFormat;
|
||||
public static string GameWinLooseHeaderFormat;
|
||||
public static string GameWinLooseFormat;
|
||||
|
||||
// Awards
|
||||
|
||||
|
@ -2170,6 +2172,14 @@ namespace HISP.Game
|
|||
{
|
||||
return GameBestTimeFormat.Replace("%RANKING%", ranking.ToString("N0", CultureInfo.InvariantCulture)).Replace("%SCORE%", score.ToString().Insert(score.ToString().Length - 2, ".")).Replace("%USERNAME%", username).Replace("%TOTALPLAYS%", totalplays.ToString("N0", CultureInfo.InvariantCulture));
|
||||
}
|
||||
public static string FormatWinlooseHeader(string gameName)
|
||||
{
|
||||
return GameWinLooseHeaderFormat.Replace("%GAMETITLE%", gameName);
|
||||
}
|
||||
public static string FormatWinlooseListEntry(int ranking, int wins, int loose, string username, int totalplays)
|
||||
{
|
||||
return GameWinLooseHeaderFormat.Replace("%RANKING%", ranking.ToString("N0", CultureInfo.InvariantCulture)).Replace("%WINS%", wins.ToString("N0", CultureInfo.InvariantCulture)).Replace("%LOSES%", loose.ToString("N0", CultureInfo.InvariantCulture)).Replace("%USERNAME%", username).Replace("%TOTALPLAYS%", totalplays.ToString("N0", CultureInfo.InvariantCulture));
|
||||
}
|
||||
public static string FormatHighscoreHeader(string gameName)
|
||||
{
|
||||
return GameHighScoreHeaderFormat.Replace("%GAMETITLE%", gameName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue