AchievementPopups now work as expected!

This commit is contained in:
LazyByteDev
2026-03-02 05:50:23 -05:00
parent 64b510c938
commit e817cdafb3
4 changed files with 7 additions and 7 deletions

View File

@@ -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
}

View File

@@ -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