Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.kbotpro.scriptsystem.various.ModuleConnector;
- import com.kbotpro.scriptsystem.wrappers.IComponent;
- import java.awt.*;
- /**
- * Created by IntelliJ IDEA.
- * User: Ryan
- * Date: 31-Dec-2009
- * Time: 19:49:59
- * To change this template use File | Settings | File Templates.
- */
- public class Paint extends ModuleConnector {
- private int CHAT_PARENT = 752;
- private int CHAT_CHILD = 0;
- public void paint(Graphics g) {
- if (!Planker.start) {
- startPaint(g);
- } else { //normal paint here
- }
- }
- public void startPaint(Graphics g) {
- IComponent i = botEnv.interfaces.getComponent(CHAT_PARENT, CHAT_CHILD);
- if (i != null) {
- Point p = i.getUpperLeftScreenPos();
- int x = p.x + 20;
- int y = p.y - 300;
- g.drawRoundRect(x, y, 100, 100, 10, 10);
- }
- }
- }
Add Comment
Please, Sign In to add comment