diff --git a/sigIRCv2.jar b/sigIRCv2.jar index da0c89b..f4c7207 100644 Binary files a/sigIRCv2.jar and b/sigIRCv2.jar differ diff --git a/src/sig/MyPanel.java b/src/sig/MyPanel.java index e1087a0..8eff858 100644 --- a/src/sig/MyPanel.java +++ b/src/sig/MyPanel.java @@ -13,6 +13,7 @@ import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; +import java.awt.event.MouseMotionListener; import java.awt.event.MouseWheelEvent; import java.awt.event.MouseWheelListener; @@ -26,6 +27,8 @@ public class MyPanel extends JPanel implements MouseListener, ActionListener, Mo final public static Font programFont = new Font(sigIRC.messageFont,0,24); final public static Font userFont = new Font(sigIRC.usernameFont,0,16); final public static Font smallFont = new Font(sigIRC.touhoumotherConsoleFont,0,12); + int lastMouseX = 0; + int lastMouseY = 0; public MyPanel() { //setBorder(BorderFactory.createLineBorder(Color.black)); @@ -41,19 +44,30 @@ public class MyPanel extends JPanel implements MouseListener, ActionListener, Mo } public void paintComponent(Graphics g) { - super.paintComponent(g); + super.paintComponent(g); // Draw Text //int counter=18; for (int i=0;i=this.x && x<=this.x+this.textMaxWidth && + y>=this.y && y<=this.y+this.textMaxHeight); + } } diff --git a/src/sig/TwitchEmote.java b/src/sig/TwitchEmote.java index d55c918..7433ba6 100644 --- a/src/sig/TwitchEmote.java +++ b/src/sig/TwitchEmote.java @@ -52,4 +52,8 @@ public class TwitchEmote { } return false; } + + public boolean textRefIsVisible() { + return text.isVisible(); + } } diff --git a/src/sig/sigIRC.java b/src/sig/sigIRC.java index 3184c5d..ac8f2dd 100644 --- a/src/sig/sigIRC.java +++ b/src/sig/sigIRC.java @@ -315,6 +315,7 @@ public class sigIRC{ f.setVisible(true); f.setLocation(windowX, windowY); f.setSize(windowWidth, windowHeight); + button = new BackgroundColorButton(new File(sigIRC.BASEDIR+"backcolor.png"),panel.getX()+panel.getWidth()-96,64+rowobj.size()*rowSpacing); if (sigIRC.overlayMode) { f.setBackground(new Color(0,0,0,0));