Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
remove wildcard imports
Browse files Browse the repository at this point in the history
remove wildcard imports
  • Loading branch information
Nick2bad4u committed May 14, 2024
1 parent 52dd2a3 commit b682093
Show file tree
Hide file tree
Showing 10 changed files with 886 additions and 13 deletions.
39 changes: 38 additions & 1 deletion abstract_mode.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
from abc import ABCMeta, abstractmethod
from utils import *
from utils import (
Client,
ClientConfig,
MyFileHandler,
MyFormatter,
MyStreamHandler,
Path,
Settings,
Sg,
box,
ceil,
chunks,
compare,
copy,
datetime,
excepthook,
floor,
format_time,
get_font_name,
get_menu_pixels,
get_rotation,
get_text,
global_settings,
hdlr,
importlib,
json,
load_font,
log,
logger,
logging,
my_emit,
os,
requests,
rfh,
set_text,
sys,
timedelta,
)


class Mode(metaclass=ABCMeta):
Expand Down
193 changes: 190 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,197 @@
import queue
from time import time

from config import *
from direct_input import *
from config import (
Character,
Client,
ClientConfig,
Config,
GUIConfig,
GUIHotkeys,
Hotkeys,
LevelDefiner,
LevelNotDetected,
MAP_VK_TO_CHAR,
MAP_VSC_TO_VK,
Mode,
MyFileHandler,
MyFormatter,
MyStreamHandler,
Path,
Settings,
Sg,
VirtualInput,
bar_bbox,
bar_colors,
box,
build_character_matrix,
ceil,
character_matrix,
character_matrix_width,
characters,
choice,
chunks,
compare,
copy,
datetime,
display_changelog,
excepthook,
find_char,
first_digit_dict,
floor,
font_color,
format_time,
get_duration_gold,
get_duration_xp,
get_font_name,
get_menu_pixels,
get_rotation,
get_text,
global_settings,
gold_levels,
hdlr,
importlib,
json,
keyboard,
level_bbox,
level_character_matrix,
level_character_matrix_width,
level_hundred_conditions,
levels_xp,
load_font,
locked_color,
locked_pixel,
log,
logger,
logging,
map_to_char,
my_emit,
os,
parse_pos,
requests,
rewards_bar_bbox,
rewards_bar_colors,
rfh,
second_digit_dict,
second_digit_diff,
set_text,
single_digit_dict,
single_digit_diff,
sleep,
sys,
timedelta,
win32api,
win32con,
win32gui,
)
from direct_input import (
Client,
ClientConfig,
GUIHotkeys,
Hotkeys,
MAP_VK_TO_CHAR,
MAP_VSC_TO_VK,
MyFileHandler,
MyFormatter,
MyStreamHandler,
Path,
Settings,
Sg,
VirtualInput,
box,
ceil,
choice,
chunks,
compare,
copy,
datetime,
excepthook,
floor,
format_time,
get_font_name,
get_menu_pixels,
get_rotation,
get_text,
global_settings,
hdlr,
importlib,
json,
keyboard,
load_font,
log,
logger,
logging,
my_emit,
os,
requests,
rfh,
set_text,
sleep,
sys,
timedelta,
win32api,
win32con,
win32gui,
)
from menu import find_element, regenerate_layout
from windows import *
from windows import (
BELOW_NORMAL_PRIORITY_CLASS,
BrawlhallaProcess,
Client,
ClientConfig,
Image,
MyFileHandler,
MyFormatter,
MyStreamHandler,
NotRespondingError,
Path,
Settings,
Sg,
Singleton,
SteamClient,
SteamExeNotFound,
box,
ceil,
chunks,
compare,
copy,
ctypes,
datetime,
excepthook,
floor,
format_time,
get_font_name,
get_menu_pixels,
get_rotation,
get_text,
get_window,
global_settings,
hdlr,
importlib,
json,
load_font,
log,
logger,
logging,
my_emit,
os,
psutil,
pywintypes,
re,
requests,
rfh,
set_text,
sleep,
subprocess,
sys,
timedelta,
win32api,
win32con,
win32gui,
win32process,
winreg,
winxpgui,
)

CONNECTION_LEVELS = (
(0, 204, 51), # green
Expand Down
59 changes: 58 additions & 1 deletion characters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,61 @@
from levels import *
from levels import (
Client,
ClientConfig,
LevelDefiner,
LevelNotDetected,
MyFileHandler,
MyFormatter,
MyStreamHandler,
Path,
Settings,
Sg,
bar_bbox,
bar_colors,
box,
ceil,
chunks,
compare,
copy,
datetime,
excepthook,
first_digit_dict,
floor,
font_color,
format_time,
get_duration_gold,
get_duration_xp,
get_font_name,
get_menu_pixels,
get_rotation,
get_text,
global_settings,
gold_levels,
hdlr,
importlib,
json,
level_bbox,
level_hundred_conditions,
levels_xp,
load_font,
locked_color,
locked_pixel,
log,
logger,
logging,
my_emit,
os,
requests,
rewards_bar_bbox,
rewards_bar_colors,
rfh,
second_digit_dict,
second_digit_diff,
set_text,
single_digit_dict,
single_digit_diff,
sys,
timedelta,
)

characters = [
"bödvar",
Expand Down
Loading

0 comments on commit b682093

Please sign in to comment.