Made tooltips render over the text (yes, perspective is beautiful)

This commit is contained in:
Ellpeck 2015-12-17 19:16:37 +01:00
parent 6952588510
commit bfdd74d0c6

View file

@ -133,16 +133,17 @@ public class GuiBooklet extends GuiScreen{
super.drawScreen(x, y, f); super.drawScreen(x, y, f);
this.searchField.drawTextBox(); this.searchField.drawTextBox();
//Renders the current page's content
if(this.currentEntrySet.entry != null && this.currentEntrySet.chapter != null && this.currentEntrySet.page != null){
this.currentEntrySet.page.render(this, x, y, this.ticksElapsed, this.mousePressed);
}
//Draws hovering texts for buttons //Draws hovering texts for buttons
this.fontRendererObj.setUnicodeFlag(false); this.fontRendererObj.setUnicodeFlag(false);
BookletUtils.doHoverTexts(this, x, y); BookletUtils.doHoverTexts(this, x, y);
BookletUtils.drawAchievementInfo(this, false, x, y); BookletUtils.drawAchievementInfo(this, false, x, y);
this.fontRendererObj.setUnicodeFlag(true); this.fontRendererObj.setUnicodeFlag(true);
//Renders the current page's content
if(this.currentEntrySet.entry != null && this.currentEntrySet.chapter != null && this.currentEntrySet.page != null){
this.currentEntrySet.page.render(this, x, y, this.ticksElapsed, this.mousePressed);
}
this.fontRendererObj.setUnicodeFlag(unicodeBefore); this.fontRendererObj.setUnicodeFlag(unicodeBefore);
//Resets mouse //Resets mouse