Fixed avatar region selection int casting.

dev
sigonasr2 7 years ago
parent 38b8ebd5ff
commit bd0efb9bb6
  1. BIN
      sigIRCv2.jar
  2. 6
      src/sig/modules/RabiRaceModule.java

Binary file not shown.

@ -444,15 +444,15 @@ public class RabiRaceModule extends Module{
Image panel = myProfile.getStatPanel((int)position.getWidth(),mySession);
if (sigIRC.panel.lastMouseX>=position.getX() &&
sigIRC.panel.lastMouseX<=position.getX()+(int)(position.getWidth()/400)*50 &&
sigIRC.panel.lastMouseX<=position.getX()+(int)((position.getWidth()/400)*50) &&
sigIRC.panel.lastMouseY>=position.getY() &&
sigIRC.panel.lastMouseY<=position.getY()+(int)((position.getWidth()/400)*50)) {
sigIRC.panel.lastMouseY<=position.getY()+(int)(((position.getWidth()/400)*50))) {
mouseoverAvatar=true;
Color ident = g.getColor();
g.setColor(new Color(196,196,196,128));
g.fillRect((int)(position.getX()+1), (int)(position.getY()+1), (int)((position.getWidth()/400)*50), (int)((position.getWidth()/400)*50));
g.setColor(ident);
System.out.println("Mouse over avatar.");
//System.out.println("Mouse over avatar.");
} else {
mouseoverAvatar=false;
}

Loading…
Cancel
Save