mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 08:39:09 +00:00
Added Messages debugging and moved to Maven
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import org.parabot.core.Context;
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.parabot.environment.input.Mouse;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
public class DMouse extends AbstractDebugger {
|
||||
|
||||
private boolean enabled;
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
Context.getInstance().getPaintDebugger().addLine("Mouse: " + Mouse.getInstance().getPoint().toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
enabled = !enabled;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user