Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void mousePressed(MouseEvent e) {
- Point mp = e.getPoint();
- int absoluteY = Widgets.getComponent(Game.WIDGET_CHAT_BOX, 0).getAbsoluteY() - 1;
- final Rectangle toggleRectangle = new Rectangle(493, absoluteY + 3, 16, 15);
- final Rectangle moreInfoRect = new Rectangle(420, absoluteY + 3, 70, 15);
- if (toggleRectangle.contains(mp)) {
- if (pressed) {
- pressed = false;
- } else {
- pressed = true;
- }
- } else if (moreInfoRect.contains(mp)) {
- if (moreInfo) {
- moreInfo = false;
- } else {
- moreInfo = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement