Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void drawScreen(int mouseX, int mouseY, float partialTicks) {
- GlStateManager.color(1f, 1f, 1f);
- this.drawWorldBackground(0);
- final ArrayList<String> errors = new ArrayList<String>();
- Point mouseLoc = new Point(mouseX, mouseY);
- //debug((mid.getX() - mouseLoc.getX() + "") + ", " + (mid.getY() - mouseLoc.getY() + ""));
- switch(pageType) {
- case -1:
- mc.getTextureManager().bindTexture(TWO_PAGES_TEXTURE);
- {
- GlStateManager.pushMatrix();
- GlStateManager.scale(1.5, 1.5, 1);
- int texW = 256;
- int texH = 196;
- this.drawTexturedModalRect(width / 3 - texW / 2, height / 3 - texH / 2, 0, 0, texW, texH);
- texW = 102;
- texH = 9;
- GlStateManager.scale(1, 1, 1);
- GlStateManager.popMatrix();
- this.navButtons[1].visible = page != null;
- for(PageButton b : this.pageButtons) {
- if(b.getPage() == page) {
- b.pressed = true;
- if(page != null) {
- Page p = Main.proxy.getGlobalQuestHandler().getPage(page);
- if(Main.proxy.getGlobalQuestHandler().getPage(page).getDescription() != null) {
- fontRenderer.drawSplitString(Main.proxy.getGlobalQuestHandler().getPage(page).getDescription(), mid.getX() + 27, mid.getY() - 101, 139, 0x000000);
- }
- }
- }
- else {
- b.pressed = false;
- }
- }
- }
- break;
- }
- super.drawScreen(mouseX, mouseY, partialTicks); //where buttons are drawn
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement