// Copyright (c) 2013, Christopher "blay09" Baker
// All rights reserved.

package blay09.mods.irc.client;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import blay09.mods.irc.EiraIRC;
import blay09.mods.irc.config.Globals;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.GuiScreen;

@SideOnly(Side.CLIENT)
public class GuiChatOverlay {

	public static final int COLOR_BACKGROUND = Integer.MIN_VALUE;
	
	public static void drawOverlay(int i, int j, float k) {
		if(EiraIRC.instance.getConnectionCount() == 0) {
			return;
		}
		GuiScreen.drawRect(0, 0, 200, 15, COLOR_BACKGROUND);
		FontRenderer fontRenderer = Minecraft.getMinecraft().fontRenderer;
		String text = "Chatting to: ";
		switch(EiraIRC.instance.getChatTarget()) {
		case All:
			text += "All";
			break;
		case ChannelOnly:
			String[] ss = EiraIRC.instance.getTargetChannel().split(":");
			text += ss[1] + " (" + ss[0] + ")";
			break;
		case IRCOnly:
			text += "IRC only";
			break;
		case MinecraftOnly:
			text += "Minecraft only";
			break;
		}
		fontRenderer.drawString(text, 5, 5, Globals.TEXT_COLOR);
	}
	
	
}

@@ -84,24 +84,28 @@
 blay09.mods.
+eira
 irc.client;%0A
@@ -198,24 +198,28 @@
 blay09.mods.
+eira
 irc.EiraIRC;
@@ -238,16 +238,20 @@
 09.mods.
+eira
 irc.conf

Fix merging derp.