diff --git a/sigIRCv2.jar b/sigIRCv2.jar index 1d449df..0ec5d01 100644 Binary files a/sigIRCv2.jar and b/sigIRCv2.jar differ diff --git a/src/sig/modules/ChatLog/ChatLogMessage.java b/src/sig/modules/ChatLog/ChatLogMessage.java index 9106e8f..d86bd64 100644 --- a/src/sig/modules/ChatLog/ChatLogMessage.java +++ b/src/sig/modules/ChatLog/ChatLogMessage.java @@ -180,7 +180,7 @@ public class ChatLogMessage { if (textWidth=x && ev.getX()<=x+width && + ev.getY()>=y && ev.getY()<=y+height; + } + + public void draw(Graphics g) { + Color color_identity = g.getColor(); + g.setColor(Color.WHITE); + g.drawRect((int)module.getPosition().getX()+x, + (int)module.getPosition().getY()+y, width, height); + g.setColor(Color.BLACK); + g.fillRect((int)module.getPosition().getX()+x+1, + (int)module.getPosition().getY()+y+1, width-1, height-1); + DrawUtils.drawTextFont(g, sigIRC.panel.userFont, module.getPosition().getX()+x-TextUtils.calculateStringBoundsFont(label, sigIRC.panel.userFont).getWidth()/2+width/2, module.getPosition().getY()+y+height-1, Color.WHITE, label); + g.setColor(color_identity); + } +} diff --git a/src/sig/modules/ControllerModule.java b/src/sig/modules/ControllerModule.java index 8cb32a4..60b437a 100644 --- a/src/sig/modules/ControllerModule.java +++ b/src/sig/modules/ControllerModule.java @@ -1,27 +1,106 @@ package sig.modules; +import java.awt.Color; import java.awt.Graphics; +import java.awt.Image; +import java.awt.Rectangle; +import java.awt.event.MouseEvent; import java.awt.geom.Rectangle2D; +import java.io.File; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.imageio.ImageIO; + +import net.java.games.input.Component; +import net.java.games.input.Component.Identifier; import net.java.games.input.Controller; +import net.java.games.input.Controller.Type; import net.java.games.input.ControllerEnvironment; import sig.Module; +import sig.sigIRC; +import sig.modules.Controller.Button; +import sig.modules.Controller.ClickableButton; +import sig.utils.DrawUtils; +import sig.utils.FileUtils; public class ControllerModule extends Module{ + public final static String CONTROLLERPATH = sigIRC.BASEDIR+"sigIRC/controller/"; + List controllers = new ArrayList(); + Image controller_img; + double imgratio = 1; + List