Fix issue with messages not displaying in regular (non-Overlay) mode.
This commit is contained in:
parent
b39c2cf980
commit
15efa2f45a
BIN
sigIRCv2.jar
BIN
sigIRCv2.jar
Binary file not shown.
@ -72,15 +72,18 @@ public class MyPanel extends JPanel implements MouseListener, ActionListener, Mo
|
|||||||
}*/
|
}*/
|
||||||
//
|
//
|
||||||
for (int i=0;i<sigIRC.textobj.size();i++) {
|
for (int i=0;i<sigIRC.textobj.size();i++) {
|
||||||
if (sigIRC.textobj.get(i).isActive() && sigIRC.overlayMode) {
|
if (sigIRC.textobj.get(i).isActive()) {
|
||||||
|
if (sigIRC.overlayMode) {
|
||||||
if (!sigIRC.textobj.get(i).intersects(lastMouseX,lastMouseY)) {
|
if (!sigIRC.textobj.get(i).intersects(lastMouseX,lastMouseY)) {
|
||||||
sigIRC.textobj.get(i).setVisible(true);
|
sigIRC.textobj.get(i).setVisible(true);
|
||||||
sigIRC.textobj.get(i).draw(g);
|
sigIRC.textobj.get(i).draw(g);
|
||||||
} else {
|
} else {
|
||||||
|
System.out.println("Setting to False.");
|
||||||
sigIRC.textobj.get(i).setVisible(false);
|
sigIRC.textobj.get(i).setVisible(false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
break;
|
sigIRC.textobj.get(i).draw(g);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (Module m : sigIRC.modules) {
|
for (Module m : sigIRC.modules) {
|
||||||
|
@ -157,7 +157,7 @@ public class ScrollingText {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setVisible(boolean isVisible) {
|
public void setVisible(boolean isVisible) {
|
||||||
this.visible=visible;
|
this.visible=isVisible;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void draw(Graphics g) {
|
public void draw(Graphics g) {
|
||||||
|
@ -18,6 +18,7 @@ public class UpdateEvent implements ActionListener{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateAuthenticationCountdownMessage() {
|
private void UpdateAuthenticationCountdownMessage() {
|
||||||
|
if (sigIRC.downloadsComplete) {
|
||||||
if (!sigIRC.authenticated && last_authentication_msg<MSGTIMER) {
|
if (!sigIRC.authenticated && last_authentication_msg<MSGTIMER) {
|
||||||
last_authentication_msg++;
|
last_authentication_msg++;
|
||||||
} else
|
} else
|
||||||
@ -47,6 +48,7 @@ public class UpdateEvent implements ActionListener{
|
|||||||
sigIRC.window.setTitle("sigIRCv2 - "+(avgfps)+" FPS");
|
sigIRC.window.setTitle("sigIRCv2 - "+(avgfps)+" FPS");
|
||||||
lasttime=System.currentTimeMillis();
|
lasttime=System.currentTimeMillis();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void updateFPSCounter() {
|
public void updateFPSCounter() {
|
||||||
if (System.currentTimeMillis()-lasttime>1000/avgfps) {
|
if (System.currentTimeMillis()-lasttime>1000/avgfps) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user