mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 19:59:36 +00:00
Fixed Esc not working in entry pages.
This commit is contained in:
1 parent
cc68144a87
commit
cb09052e01
1 file changed
+8
-5
@@ -195,7 +195,7 @@ public class GuiLexiconEntry extends GuiLexicon implements IGuiLexiconEntry, IPa
|
||||
@Override
|
||||
public void updateScreen() {
|
||||
super.updateScreen();
|
||||
|
||||
|
||||
LexiconPage page = entry.pages.get(this.page);
|
||||
page.updateScreen(this);
|
||||
|
||||
@@ -306,11 +306,14 @@ public class GuiLexiconEntry extends GuiLexicon implements IGuiLexiconEntry, IPa
|
||||
@Override
|
||||
protected void keyTyped(char par1, int par2) {
|
||||
handleNoteKey(par1, par2);
|
||||
|
||||
|
||||
LexiconPage page = entry.pages.get(this.page);
|
||||
page.onKeyPressed(par1, par2);
|
||||
|
||||
if(par2 == 203 || par2 == 200 || par2 == 201) // Left, Up, Page Up
|
||||
if(par2 == 1) {
|
||||
mc.displayGuiScreen((GuiScreen)null);
|
||||
mc.setIngameFocus();
|
||||
} else if(par2 == 203 || par2 == 200 || par2 == 201) // Left, Up, Page Up
|
||||
prevPage();
|
||||
else if(par2 == 205 || par2 == 208 || par2 == 209) // Right, Down Page Down
|
||||
nextPage();
|
||||
@@ -344,7 +347,7 @@ public class GuiLexiconEntry extends GuiLexicon implements IGuiLexiconEntry, IPa
|
||||
updateNote();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void updateNote() {
|
||||
String key = getNotesKey();
|
||||
if(!notes.containsKey(key))
|
||||
@@ -402,7 +405,7 @@ public class GuiLexiconEntry extends GuiLexicon implements IGuiLexiconEntry, IPa
|
||||
gui.setTitle();
|
||||
return gui;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getNotesKey() {
|
||||
return "entry_" + entry.unlocalizedName + "_" + page;
|
||||
|
||||
Reference in new issue
Block a user