mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-12 03:37:14 +00:00
Remove Win32 count types from leaderboard UI
This commit is contained in:
parent
147ce20bc5
commit
470fc532f8
|
|
@ -702,7 +702,7 @@ void UIScene_LeaderboardsMenu::CopyLeaderboardEntry(LeaderboardManager::ReadScor
|
|||
|
||||
// Copy the rank
|
||||
leaderboardEntry->m_rank = statsRow->m_rank;
|
||||
DWORD displayRank = leaderboardEntry->m_rank;
|
||||
unsigned int displayRank = leaderboardEntry->m_rank;
|
||||
if(displayRank > 9999999) displayRank = 9999999;
|
||||
swprintf(leaderboardEntry->m_wcRank, 12, L"%u", displayRank);
|
||||
|
||||
|
|
@ -744,7 +744,7 @@ void UIScene_LeaderboardsMenu::CopyLeaderboardEntry(LeaderboardManager::ReadScor
|
|||
ZeroMemory(leaderboardEntry->m_wcColumns[i],12*sizeof(WCHAR));
|
||||
if( !isDistanceLeaderboard )
|
||||
{
|
||||
DWORD displayValue = leaderboardEntry->m_columns[i];
|
||||
unsigned int displayValue = leaderboardEntry->m_columns[i];
|
||||
if(displayValue > 99999) displayValue = 99999;
|
||||
swprintf(leaderboardEntry->m_wcColumns[i], 12, L"%u",displayValue);
|
||||
#ifdef _DEBUG
|
||||
|
|
@ -869,7 +869,7 @@ void UIScene_LeaderboardsMenu::PopulateLeaderboard(LeaderboardManager::eStatsRet
|
|||
int startIndex = m_newEntryIndex;
|
||||
int entryCount = m_newEntriesCount;
|
||||
|
||||
for(DWORD i = startIndex; i < (startIndex + entryCount); ++i)
|
||||
for(unsigned int i = startIndex; i < (startIndex + entryCount); ++i)
|
||||
{
|
||||
bool isLast = i == ((startIndex + entryCount) - 1);
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ private:
|
|||
struct LeaderboardEntry {
|
||||
PlayerUID m_xuid;
|
||||
unsigned int m_row; // Row identifier for passing to Iggy as a unique identifier
|
||||
DWORD m_rank;
|
||||
unsigned int m_rank;
|
||||
WCHAR m_wcRank[12];
|
||||
WCHAR m_gamerTag[XUSER_NAME_SIZE+1];
|
||||
//int m_locale;
|
||||
|
|
@ -49,9 +49,9 @@ private:
|
|||
};
|
||||
|
||||
struct Leaderboard {
|
||||
DWORD m_totalEntryCount; //Either total number of entries in leaderboard, or total number of results for a friends query
|
||||
unsigned int m_totalEntryCount; //Either total number of entries in leaderboard, or total number of results for a friends query
|
||||
std::vector<LeaderboardEntry> m_entries;
|
||||
DWORD m_numColumns;
|
||||
unsigned int m_numColumns;
|
||||
};
|
||||
|
||||
Leaderboard m_leaderboard; //All leaderboard data for the currently selected filter
|
||||
|
|
|
|||
Loading…
Reference in a new issue