mirror of
https://github.com/Minecraft-Community-Edition/client.git
synced 2026-05-23 01:24:32 +00:00
AchievementPopups now work as expected!
This commit is contained in:
@@ -69,7 +69,7 @@ void AchievementPopup::prepareWindow()
|
||||
void AchievementPopup::render()
|
||||
{
|
||||
// 4J Unused
|
||||
#if 0
|
||||
|
||||
if (Minecraft::warezTime > 0)
|
||||
{
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
@@ -115,17 +115,17 @@ void AchievementPopup::render()
|
||||
|
||||
int xx = width - 160;
|
||||
int yy = 0 - (int) (yo * 36);
|
||||
int tex = mc->textures->loadTexture(L"/achievement/bg.png");
|
||||
glColor4f(1, 1, 1, 1);
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glBindTexture(GL_TEXTURE_2D, tex);
|
||||
mc->textures->bindTexture(L"/achievement/bg.png");
|
||||
glColor4f(1, 1, 1, 1);
|
||||
glDisable(GL_LIGHTING);
|
||||
|
||||
blit(xx, yy, 96, 202, 160, 32);
|
||||
|
||||
if (isHelper)
|
||||
{
|
||||
mc->font->drawWordWrap(desc, xx + 30, yy + 7, 120, 0xffffffff);
|
||||
mc->font->draw(title, xx + 30, yy + 7, 0xffffff00);
|
||||
mc->font->draw(desc, xx + 30, yy + 18, 0xffffffff);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -147,5 +147,5 @@ void AchievementPopup::render()
|
||||
|
||||
glDepthMask(true);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
#endif
|
||||
|
||||
}
|
||||
@@ -762,7 +762,7 @@ void LocalPlayer::awardStat(Stat *stat, byteArray param)
|
||||
//if (!minecraft->stats[m_iPad]->hasTaken(ach))
|
||||
{
|
||||
// 4J-PB - Don't display the java popup
|
||||
//minecraft->achievementPopup->popup(ach);
|
||||
minecraft->achievementPopup->popup(ach);
|
||||
|
||||
// 4J Stu - Added this function in the libraries as some achievements don't get awarded to all players
|
||||
// e.g. Splitscreen players cannot get theme/avatar/gamerpic and Trial players cannot get any
|
||||
|
||||
BIN
Minecraft.Client/Windows64/GameHDD/20260302104548/saveData.ms
Normal file
BIN
Minecraft.Client/Windows64/GameHDD/20260302104548/saveData.ms
Normal file
Binary file not shown.
BIN
Minecraft.Client/Windows64/GameHDD/20260302104635/saveData.ms
Normal file
BIN
Minecraft.Client/Windows64/GameHDD/20260302104635/saveData.ms
Normal file
Binary file not shown.
Reference in New Issue
Block a user