summaryrefslogtreecommitdiff
path: root/ui.py
diff options
context:
space:
mode:
Diffstat (limited to 'ui.py')
-rw-r--r--ui.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/ui.py b/ui.py
new file mode 100644
index 0000000..e119350
--- /dev/null
+++ b/ui.py
@@ -0,0 +1,32 @@
+#!/usr/bin/env python3
+
+RESOLUTION = "x19201080"
+
+class Button:
+ def __init__(self, name) -> None:
+ self.position = button_locations[RESOLUTION][name]
+
+
+button_locations = {
+ "x19201080": {
+ "move1": (0, 0),
+ "move2": (0, 1),
+ "move3": (0, 2),
+ "move4": (0, 3),
+ "move5": (0, 4),
+ "move6": (0, 5),
+ "attack1": (1, 0),
+ "attack2": (1, 1),
+ "attack3": (1, 2),
+ "attack4": (1, 3),
+ "attack5": (1, 4),
+ "attack6": (1, 5),
+ "special1": (1, 0),
+ "special2": (1, 1),
+ "special3": (1, 2),
+ "special4": (1, 3),
+ "special5": (1, 4),
+ "special6": (1, 5),
+ "hold": (2, 5),
+ }
+}