package me.deftware.client.framework.event.events;

import me.deftware.client.framework.event.Event;
import me.deftware.client.framework.wrappers.gui.IGuiScreen;
import net.minecraft.client.gui.GuiMainMenu;
import net.minecraft.client.gui.GuiMultiplayer;
import net.minecraft.client.gui.GuiScreen;

/**
 * Triggered every time a game gui is displayed
 */
public class EventGuiScreenDisplay extends Event {

	private GuiScreen screen;
	private ScreenTypes type;

	public EventGuiScreenDisplay(GuiScreen screen) {
		this.screen = screen;
		if (screen instanceof GuiMainMenu) {
			type = ScreenTypes.MainMenu;
		} else if (screen instanceof GuiMultiplayer) {
			type = ScreenTypes.Multiplayer;
		} else {
			type = ScreenTypes.Unknown;
		}
	}

	public GuiScreen getScreen() {
		return screen;
	}

	public void setScreen(IGuiScreen screen) {
		this.screen = screen;
	}

	public ScreenTypes getType() {
		return type;
	}

	public static enum ScreenTypes {
		MainMenu, Multiplayer, Unknown
	}

}

@@ -155,16 +155,63 @@
 Screen;%0A
+import net.minecraft.client.gui.GuiIngameMenu;%0A
 import n
@@ -731,16 +731,101 @@
 player;%0A
+%09%09%7D else if (screen instanceof GuiIngameMenu) %7B%0A%09%09%09type = ScreenTypes.GuiIngameMenu;%0A
 %09%09%7D else
@@ -1100,16 +1100,31 @@
 iplayer,
+ GuiIngameMenu,
  Unknown

Add GuiIngameMenu screen type to EventGuiScreenDisplay