|
|
|
@ -53,7 +53,7 @@ public class Module { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void enableWindowDrag(int mouseX, int mouseY) { |
|
|
|
|
if (!sigIRC.overlayMode && !dragging && inDragBounds(mouseX,mouseY) && !DRAGGING) { |
|
|
|
|
if (sigIRC.showWindowControls && !dragging && inDragBounds(mouseX,mouseY) && !DRAGGING) { |
|
|
|
|
//Enable dragging.
|
|
|
|
|
dragOffset = new Point((int)position.getX() - mouseX,(int)position.getY()-mouseY); |
|
|
|
|
dragging=DRAGGING=true; |
|
|
|
@ -104,6 +104,7 @@ public class Module { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void dragWindow() { |
|
|
|
|
if (sigIRC.showWindowControls) { |
|
|
|
|
if (dragging) { |
|
|
|
|
//sigIRC.panel.repaint(getDrawBounds().getBounds());
|
|
|
|
|
int mouseX = sigIRC.panel.lastMouseX+(int)dragOffset.getX(); |
|
|
|
@ -118,6 +119,7 @@ public class Module { |
|
|
|
|
inDragZone=true; |
|
|
|
|
//System.out.println("In Drag Zone for Module "+name);
|
|
|
|
|
//sigIRC.panel.setCursor(new Cursor(Cursor.MOVE_CURSOR));
|
|
|
|
|
} |
|
|
|
|
}/*else |
|
|
|
|
if (sigIRC.panel.getCursor().getType()==Cursor.MOVE_CURSOR) { |
|
|
|
|
sigIRC.panel.setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); |
|
|
|
@ -141,7 +143,7 @@ public class Module { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void drawModuleHeader(Graphics g) { |
|
|
|
|
if (!sigIRC.overlayMode) { |
|
|
|
|
if (sigIRC.showWindowControls) { |
|
|
|
|
g.drawImage(Module.IMG_DRAGBAR, |
|
|
|
|
(int)position.getX()+2, |
|
|
|
|
(int)position.getY()-Module.IMG_DRAGBAR.getHeight(), |
|
|
|
|