Skip to content

Commit e298b44

Browse files
authored
Added README
1 parent 5f31bdd commit e298b44

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Java-DX9-Overlay-API
2+
A Java Wrapper for the [DX9-Overlay-API](https://github.com/agrippa1994/DX9-Overlay-API)
3+
4+
### Usage example (dx9-overlay.dll needs to be added to classpath)
5+
import me.kevinpthorne.dx9overlayapi.DX9OverlayAPI;
6+
import me.kevinpthorne.dx9overlayapi.elements.TextLabel;
7+
8+
import java.awt.Color;
9+
import java.awt.Point;
10+
11+
/**
12+
* Created by kevint on 1/3/2017.
13+
*/
14+
public class MyOverlay {
15+
16+
public static void main(String[] args) throws InterruptedException {
17+
18+
DX9OverlayAPI.INSTANCE.SetParam("process", "AoK HD.exe");
19+
DX9OverlayAPI.INSTANCE.DestroyAllVisual();
20+
21+
System.out.println("Creating text");
22+
23+
TextLabel text = new TextLabel("Arial", 20, false, false, new Point(10, 10), Color.RED, "Test123", true, true);
24+
Thread.sleep(5000);
25+
26+
System.out.println("Updating text");
27+
text.setText("updated text");
28+
Thread.sleep(5000);
29+
30+
System.out.println("Recoloring text");
31+
text.setColor(Color.CYAN);
32+
Thread.sleep(5000);
33+
34+
System.out.println("Destroying text");
35+
text.destroy();
36+
}
37+
38+
}

0 commit comments

Comments
 (0)