Skip to content

Commit

Permalink
Remove old scripts (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisoro authored Jun 5, 2024
1 parent feac8a5 commit a04f45d
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 194 deletions.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.5.0"
__version__ = "5.5.1"
7 changes: 0 additions & 7 deletions src/config/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,9 @@
window_dimensions=(3840, 2160),
),
UiRoiModel(
core_skill=np.array([2188, 1962, 94, 94]),
health_slice=np.array([1174, 1850, 86, 260]),
hud_detection=np.array([1404, 1956, 118, 106]),
mini_map_visible=np.array([3438, 246, 120, 120]),
rel_descr_search_left=np.array([-910, 0, 120, 1760]),
rel_descr_search_right=np.array([60, 0, 120, 1760]),
rel_fav_flag=np.array([8, 6, 16, 20]),
rel_skill_cd=np.array([12, 8, 44, 24]),
skill3=np.array([1808, 1962, 98, 98]),
skill4=np.array([1934, 1962, 94, 94]),
slots_3x11=np.array([2536, 1444, 1214, 486]),
slots_5x10=np.array([92, 538, 1224, 972]),
sort_icon=np.array([2440, 1332, 126, 124]),
Expand Down
7 changes: 0 additions & 7 deletions src/config/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,16 +361,9 @@ class UiPosModel(_IniBaseModel):


class UiRoiModel(NumpyModel):
core_skill: np_array_pydantic_annotated_typing(dimensions=1)
health_slice: np_array_pydantic_annotated_typing(dimensions=1)
hud_detection: np_array_pydantic_annotated_typing(dimensions=1)
mini_map_visible: np_array_pydantic_annotated_typing(dimensions=1)
rel_descr_search_left: np_array_pydantic_annotated_typing(dimensions=1)
rel_descr_search_right: np_array_pydantic_annotated_typing(dimensions=1)
rel_fav_flag: np_array_pydantic_annotated_typing(dimensions=1)
rel_skill_cd: np_array_pydantic_annotated_typing(dimensions=1)
skill3: np_array_pydantic_annotated_typing(dimensions=1)
skill4: np_array_pydantic_annotated_typing(dimensions=1)
slots_3x11: np_array_pydantic_annotated_typing(dimensions=1)
slots_5x10: np_array_pydantic_annotated_typing(dimensions=1)
sort_icon: np_array_pydantic_annotated_typing(dimensions=1)
Expand Down
7 changes: 0 additions & 7 deletions src/config/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,9 @@ def fromUHD(self) -> tuple[UiOffsetsModel, UiPosModel, UiRoiModel, dict[str, Tem
window_dimensions=self._transform_tuples(value=POSITIONS[2].window_dimensions),
)
roi = UiRoiModel(
core_skill=self._transform_array(value=POSITIONS[3].core_skill),
health_slice=self._transform_array(value=POSITIONS[3].health_slice),
hud_detection=self._transform_array(value=POSITIONS[3].hud_detection),
mini_map_visible=self._transform_array(value=POSITIONS[3].mini_map_visible),
rel_descr_search_left=self._transform_array(value=POSITIONS[3].rel_descr_search_left, scale_only=True),
rel_descr_search_right=self._transform_array(value=POSITIONS[3].rel_descr_search_right, scale_only=True),
rel_fav_flag=self._transform_array(value=POSITIONS[3].rel_fav_flag, scale_only=True),
rel_skill_cd=self._transform_array(value=POSITIONS[3].rel_skill_cd, scale_only=True),
skill3=self._transform_array(value=POSITIONS[3].skill3),
skill4=self._transform_array(value=POSITIONS[3].skill4),
slots_3x11=self._transform_array(value=POSITIONS[3].slots_3x11),
slots_5x10=self._transform_array(value=POSITIONS[3].slots_5x10),
sort_icon=self._transform_array(value=POSITIONS[3].sort_icon),
Expand Down
10 changes: 0 additions & 10 deletions src/overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from src.logger import Logger
from src.loot_filter import run_loot_filter
from src.loot_mover import move_items_to_inventory, move_items_to_stash
from src.scripts.heal import heal
from src.scripts.rogue_tb import run_rogue_tb
from src.scripts.vision_mode import vision_mode
from src.utils.process_handler import kill_thread
from src.utils.window import WindowSpec, move_window_to_foreground
Expand Down Expand Up @@ -208,14 +206,6 @@ def run_scripts(self):
Logger.info("No scripts configured")
return
for name in IniConfigLoader().advanced_options.scripts:
if name == "rogue_tb":
rogue_tb_thread = threading.Thread(target=run_rogue_tb, daemon=True)
rogue_tb_thread.start()
self.script_threads.append(rogue_tb_thread)
if name == "heal":
heal_thread = threading.Thread(target=heal, daemon=True)
heal_thread.start()
self.script_threads.append(heal_thread)
if name == "vision_mode":
vision_mode_thread = threading.Thread(target=vision_mode, daemon=True)
vision_mode_thread.start()
Expand Down
38 changes: 0 additions & 38 deletions src/scripts/heal.py

This file was deleted.

36 changes: 0 additions & 36 deletions src/scripts/rogue_tb.py

This file was deleted.

88 changes: 0 additions & 88 deletions src/ui/hud.py

This file was deleted.

0 comments on commit a04f45d

Please sign in to comment.