Skip to content

Commit c29dad0

Browse files
committed
Cleaned up for a release
1 parent 8d17d26 commit c29dad0

File tree

8 files changed

+28
-30
lines changed

8 files changed

+28
-30
lines changed

pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7+
<name>Java DX9-Overlay-API</name>
8+
<description>This takes the original DX9-Overlay-API project and provides a Java Wrapper for ease of use in Java.
9+
</description>
10+
711
<groupId>me.kevinpthorne</groupId>
812
<artifactId>java-dx9-overlay-api</artifactId>
913
<version>1.0</version>
@@ -24,5 +28,16 @@
2428

2529
</dependencies>
2630

31+
<build>
32+
<resources>
33+
<resource>
34+
<directory>resources</directory>
35+
<excludes>
36+
<exclude>dx9_overlay.dll</exclude>
37+
</excludes>
38+
</resource>
39+
</resources>
40+
</build>
41+
2742

2843
</project>

src/main/java/me/kevinpthorne/dx9overlayapi/DX9OverlayAPI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Source: <a href="https://github.com/agrippa1994/DX9-Overlay-API/blob/master/include/c%23/Overlay.cs">DX9-Overlay-API GitHub</a>
1010
* <br>
11-
* Created by kevint on 1/3/2017.
11+
* Created by kevinpthorne on 1/3/2017.
1212
*/
1313
public interface DX9OverlayAPI extends Library {
1414

src/main/java/me/kevinpthorne/dx9overlayapi/DX9OverlayUtil.java

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,24 @@
11
package me.kevinpthorne.dx9overlayapi;
22

3-
43
import com.sun.jna.NativeLong;
5-
import com.sun.jna.ptr.IntByReference;
6-
import sun.security.util.BigInt;
74

85
import java.awt.Color;
96
import java.awt.Point;
107
import java.math.BigInteger;
118

129
/**
13-
* Created by kevint on 1/3/2017.
10+
* Utility methods here for repeated operations like translating java.awt.Color
11+
* to a D3COLOR type and dealing with referenced returns.
12+
* <br><br>
13+
* Created by kevinpthorne on 1/3/2017.
1414
*/
1515
public class DX9OverlayUtil {
1616

17-
// public static string ToHexValueRGB(Color color)
18-
// {
19-
// return "" + color.R.ToString("X2") + color.G.ToString("X2") + color.B.ToString("X2");
20-
// }
21-
// public static string ToHexValueARGB(Color color)
22-
// {
23-
// return "" + color.A.ToString("X2") + color.R.ToString("X2") + color.G.ToString("X2") + color.B.ToString("X2");
24-
// }
25-
// public Point GetScreenSpecs()
26-
// {
27-
// int x, y;
28-
// GetScreenSpecs(out x, out y);
29-
// return new Point(x, y);
30-
// }
31-
3217
public static NativeLong colorToD3Color(Color color) {
3318
return new NativeLong(new BigInteger(colorToHex(color), 16).longValue());
3419
}
3520

3621
private static String colorToHex(Color color) {
37-
//TODO fix alpha
3822
String argb = Integer.toHexString(color.getRGB());
3923
argb = argb.substring(2, argb.length());
4024
return Integer.toHexString(color.getAlpha()) + argb;

src/main/java/me/kevinpthorne/dx9overlayapi/elements/Box.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
package me.kevinpthorne.dx9overlayapi.elements;
22

3-
import com.sun.jna.ptr.IntByReference;
43
import me.kevinpthorne.dx9overlayapi.DX9OverlayAPI;
54
import me.kevinpthorne.dx9overlayapi.DX9OverlayUtil;
65

76
import java.awt.Color;
87
import java.awt.Rectangle;
98

10-
119
/**
12-
* Created by kevint on 1/3/2017.
10+
* Created by kevinpthorne on 1/3/2017.
1311
*/
1412
public class Box extends OverlayElement {
1513

src/main/java/me/kevinpthorne/dx9overlayapi/elements/Image.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44

55
import java.awt.Point;
66

7-
87
/**
9-
* Created by kevint on 1/3/2017.
8+
* Created by kevinpthorne on 1/3/2017.
109
*/
1110
public class Image extends OverlayElement {
1211

src/main/java/me/kevinpthorne/dx9overlayapi/elements/Line.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import java.awt.Point;
88

99
/**
10-
* Created by kevint on 1/3/2017.
10+
* Created by kevinpthorne on 1/3/2017.
1111
*/
1212
public class Line extends OverlayElement {
1313

src/main/java/me/kevinpthorne/dx9overlayapi/elements/OverlayElement.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package me.kevinpthorne.dx9overlayapi.elements;
22

3-
import java.awt.*;
3+
import java.awt.Color;
44

55
/**
6-
* Created by kevint on 1/3/2017.
6+
* Generic class for any overlays
7+
*
8+
* Created by kevinpthorne on 1/3/2017.
79
*/
810
public abstract class OverlayElement {
911

src/main/java/me/kevinpthorne/dx9overlayapi/elements/TextLabel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import java.awt.Point;
88

99
/**
10-
* Created by kevint on 1/3/2017.
10+
* Created by kevinpthorne on 1/3/2017.
1111
*/
1212
public class TextLabel extends OverlayElement {
1313

0 commit comments

Comments
 (0)