Guest User

Untitled

a guest
Jul 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. import com.kbotpro.scriptsystem.various.ModuleConnector;
  2. import com.kbotpro.scriptsystem.wrappers.IComponent;
  3.  
  4. import java.awt.*;
  5.  
  6. /**
  7. * Created by IntelliJ IDEA.
  8. * User: Ryan
  9. * Date: 31-Dec-2009
  10. * Time: 19:49:59
  11. * To change this template use File | Settings | File Templates.
  12. */
  13. public class Paint extends ModuleConnector {
  14.  
  15. private int CHAT_PARENT = 752;
  16. private int CHAT_CHILD = 0;
  17.  
  18. public void paint(Graphics g) {
  19. if (!Planker.start) {
  20. startPaint(g);
  21. } else { //normal paint here
  22.  
  23. }
  24. }
  25.  
  26. public void startPaint(Graphics g) {
  27. IComponent i = botEnv.interfaces.getComponent(CHAT_PARENT, CHAT_CHILD);
  28. if (i != null) {
  29. Point p = i.getUpperLeftScreenPos();
  30. int x = p.x + 20;
  31. int y = p.y - 300;
  32. g.drawRoundRect(x, y, 100, 100, 10, 10);
  33. }
  34. }
  35. }
Add Comment
Please, Sign In to add comment