Skip to content

Commit

Permalink
fix incorrect coord #3
Browse files Browse the repository at this point in the history
  • Loading branch information
smallbomb committed Oct 17, 2021
1 parent 84609ef commit 275cce5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/orb.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,11 @@ def __click_target(self):
self.objects['target_cancel'].click(1, 1.5)

def __slide_out_orb_list(self):
destX = uData.setting['game_region'][0] + uData.setting['game_region'][2] - 1
destY = self.objects['entrypoint'].coord[1]
if uData.setting['adb']['use']:
destX = uData.setting['adb']['resolution'][0]
destY = self.objects['entrypoint'].coord[1]
adb.swipe(*self.objects['entrypoint'].coord, destX, destY, 1)
else:
destX = uData.setting['game_region'][0] + uData.setting['game_region'][2] - 1
destY = self.objects['entrypoint'].coord[1]
pyautogui.moveTo(*self.objects['entrypoint'].coord)
pyautogui.dragTo(destX, destY, 1, button='left')

Expand Down

0 comments on commit 275cce5

Please sign in to comment.