Skip to content

Commit 91d8ed5

Browse files
committed
Added option for chroma green background
1 parent 85be9e5 commit 91d8ed5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+16
-4
lines changed

cat/KeyTapHand1.png

0 Bytes

cat/KeyTapHand2.png

-77 Bytes

cat/mouse/green/Hand A.png

134 KB

cat/mouse/green/Hand B.png

134 KB

cat/mouse/green/Hand C.png

135 KB

cat/mouse/green/Hand D.png

134 KB

cat/mouse/green/Hand E.png

135 KB

cat/mouse/green/Hand F.png

134 KB

cat/mouse/green/Hand G.png

131 KB

cat/mouse/green/Hand H.png

133 KB

cat/mouse/green/Hand I.png

134 KB

cat/mouse/green/Hand IA.png

134 KB

cat/mouse/green/Hand IB.png

135 KB

cat/mouse/green/Hand IC.png

134 KB

cat/mouse/green/Hand ID.png

134 KB
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

cat/tablet/green/Hand A.png

130 KB

cat/tablet/green/Hand B.png

131 KB

cat/tablet/green/Hand C.png

140 KB

cat/tablet/green/Hand D.png

131 KB

cat/tablet/green/Hand E.png

131 KB

cat/tablet/green/Hand F.png

130 KB

cat/tablet/green/Hand G.png

131 KB

cat/tablet/green/Hand H.png

132 KB

cat/tablet/green/Hand I.png

131 KB

cat/tablet/green/Hand IA.png

131 KB

cat/tablet/green/Hand IB.png

131 KB

cat/tablet/green/Hand IC.png

131 KB

cat/tablet/green/Hand ID.png

132 KB
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

osu!cat.py

+16-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from time import sleep
88
from sys import exit
99

10-
version = 'v1.1.1'
10+
version = 'v1.2.0'
1111

1212
start = False
1313
drag = False
@@ -107,7 +107,7 @@ def find_frame(cx, cy, f):
107107
'This program will also most likely not work on resolutions where the height is bigger than the width and there\n'
108108
'is no support for custom ingame resolutions or sensitivities. You have been warned.')
109109
print('----------------------------------------------------------------------------------------------------------------------')
110-
print('Before you can use this program you need to configure key 1, key 2, tablet/mouse and window size')
110+
print('Before you can use this program you need to configure some things')
111111
while True:
112112
k1 = input('Key 1: ')
113113
k2 = input('Key 2: ')
@@ -121,10 +121,22 @@ def find_frame(cx, cy, f):
121121
i_type = input('Tablet or mouse: ')
122122
if i_type == '0':
123123
cursor_device = 'tablet'
124-
start = True
125124
break
126125
elif i_type == '1':
127126
cursor_device = 'mouse'
127+
break
128+
else:
129+
print('Invalid input')
130+
131+
print('(Type 0 for no and 1 for yes)')
132+
while True:
133+
i_type = input('Use chroma key green background?: ')
134+
if i_type == '0':
135+
background = 'standard'
136+
start = True
137+
break
138+
elif i_type == '1':
139+
background = 'green'
128140
start = True
129141
break
130142
else:
@@ -142,7 +154,7 @@ def find_frame(cx, cy, f):
142154

143155
cursor_images = {}
144156
for key in frame_points.keys():
145-
cursor_images[key] = PIL.Image.open("cat/{0}/Hand {1}.png".format(cursor_device, key))
157+
cursor_images[key] = PIL.Image.open("cat/{0}/{1}/Hand {2}.png".format(cursor_device, background, key))
146158

147159
default_img = PIL.ImageTk.PhotoImage(cursor_images['A'])
148160
image_label = Label(root, image=default_img)

0 commit comments

Comments
 (0)