Skip to content

Commit

Permalink
Merge pull request #397 from CovenEsme/clean-up-tracker-assets
Browse files Browse the repository at this point in the history
Standardize tracker asset names and remove unused assets
  • Loading branch information
CovenEsme authored Jul 19, 2024
2 parents 06f3154 + c84d89a commit 95ebe8e
Show file tree
Hide file tree
Showing 137 changed files with 59 additions and 49 deletions.
Binary file removed assets/tracker/Entrance.png
Binary file not shown.
Binary file removed assets/tracker/Inventory_Gear_Subscreen_Overlay.png
Binary file not shown.
Binary file removed assets/tracker/No_Entrance.png
Binary file not shown.
Binary file removed assets/tracker/Song_Block.png
Binary file not shown.
Binary file removed assets/tracker/Sword_Block.png
Binary file not shown.
Binary file removed assets/tracker/b wheel.png
Binary file not shown.
Binary file removed assets/tracker/bosses/dreadfuse.png
Binary file not shown.
Binary file removed assets/tracker/bosses/eldinTrialGate.png
Binary file not shown.
Binary file removed assets/tracker/bosses/faronTrialGate.png
Binary file not shown.
Binary file removed assets/tracker/bosses/g1.png
Binary file not shown.
Binary file removed assets/tracker/bosses/g2.png
Binary file not shown.
Binary file removed assets/tracker/bosses/koloktos.png
Binary file not shown.
Binary file removed assets/tracker/bosses/lanayruTrialGate.png
Binary file not shown.
Binary file removed assets/tracker/bosses/moldarach.png
Binary file not shown.
Binary file removed assets/tracker/bosses/scaldera.png
Binary file not shown.
Binary file removed assets/tracker/bosses/tentalus.png
Binary file not shown.
Binary file removed assets/tracker/bosses/trialGate.png
Binary file not shown.
Binary file removed assets/tracker/dungeonLayout.png
Binary file not shown.
File renamed without changes
Binary file removed assets/tracker/g1.jpg
Binary file not shown.
Binary file removed assets/tracker/hints/barren.png
Binary file not shown.
Binary file removed assets/tracker/hints/g1.png
Binary file not shown.
Binary file removed assets/tracker/hints/g2.png
Binary file not shown.
Binary file removed assets/tracker/hints/koloktos.png
Binary file not shown.
Binary file removed assets/tracker/hints/moldarach.png
Binary file not shown.
Binary file removed assets/tracker/hints/scaldera.png
Diff not rendered.
Binary file removed assets/tracker/hints/sots.png
Diff not rendered.
Binary file removed assets/tracker/hints/tentalus.png
Diff not rendered.
Binary file removed assets/tracker/hints/unknown.png
Diff not rendered.
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
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
Binary file removed assets/tracker/junk/hylianShield.png
Diff not rendered.
Binary file removed assets/tracker/junk/rareTreasure.png
Diff not rendered.
Binary file removed assets/tracker/junk/rupees.png
Diff not rendered.
Binary file removed assets/tracker/junk/semiRareTreasure.png
Diff not rendered.
Binary file removed assets/tracker/junk/tumbleweed.png
Diff not rendered.
Binary file removed assets/tracker/junk/woodenShield.png
Diff not rendered.
Binary file removed assets/tracker/main quest items.png
Diff not rendered.
Binary file removed assets/tracker/main quest/1_Triforce.png
Diff not rendered.
Binary file removed assets/tracker/main quest/2_Triforce.png
Diff not rendered.
Binary file removed assets/tracker/main quest/Full_Triforce.png
Diff not rendered.
Binary file removed assets/tracker/main quest/No_Earrings.png
Diff not rendered.
Binary file removed assets/tracker/main quest/No_Harp.png
Diff not rendered.
Binary file removed assets/tracker/main quest/No_Mitts.png
Diff not rendered.
Binary file removed assets/tracker/main quest/No_Sailcloth.png
Diff not rendered.
Binary file removed assets/tracker/main quest/No_Scale.png
Diff not rendered.
Binary file removed assets/tracker/main quest/No_Triforce.png
Diff not rendered.
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
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
Binary file removed assets/tracker/maps/leaveEldin.png
Diff not rendered.
Binary file removed assets/tracker/maps/leaveFaron.png
Diff not rendered.
Binary file removed assets/tracker/maps/leaveLanayru.png
Diff not rendered.
Binary file removed assets/tracker/maps/leaveSkyloft.png
Diff not rendered.
Binary file removed assets/tracker/misc_items_block.png
Diff not rendered.
Binary file removed assets/tracker/quest_items_block.png
Diff not rendered.
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
Binary file removed assets/tracker/sidequests/no_cawlins_letter.png
Diff not rendered.
Binary file removed assets/tracker/sidequests/no_cbeetle.png
Diff not rendered.
Binary file removed assets/tracker/sidequests/no_crystal.png
Diff not rendered.
Binary file removed assets/tracker/sidequests/no_rattle.png
Diff not rendered.
Binary file removed assets/tracker/slot test.png
Diff not rendered.
Binary file removed assets/tracker/songs/No_Song.png
Diff not rendered.
Binary file removed assets/tracker/songs/No_Soth.png
Diff not rendered.
Binary file removed assets/tracker/songs/SOTH1.png
Diff not rendered.
Binary file removed assets/tracker/songs/SOTH2.png
Diff not rendered.
Binary file removed assets/tracker/songs/SOTH3.png
Diff not rendered.
Binary file removed assets/tracker/songs/SOTH4.png
Diff not rendered.
Binary file removed assets/tracker/swords/Dins_Flame.png
Diff not rendered.
Binary file removed assets/tracker/swords/Farores_Flame.png
Diff not rendered.
Binary file removed assets/tracker/swords/Nayrus_Flame.png
Diff not rendered.
Binary file removed assets/tracker/swords/No_Dins_Flame.png
Diff not rendered.
Binary file removed assets/tracker/swords/No_Farores_Flame.png
Diff not rendered.
Binary file removed assets/tracker/swords/No_Nayrus_Flame.png
Diff not rendered.
Binary file removed assets/tracker/tablets_slot.png
Diff not rendered.
10 changes: 5 additions & 5 deletions data/tracker_areas.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Root
image: Sky.png
image: sky.png
children:
- Skyloft
- Faron
Expand All @@ -23,7 +23,7 @@
y: 35

- name: Skyloft
image: Skyloft.png
image: skyloft.png
x: 265
y: 145
children:
Expand Down Expand Up @@ -67,7 +67,7 @@


- name: Faron
image: Faron.png
image: faron.png
x: 365
y: 174
children:
Expand Down Expand Up @@ -118,7 +118,7 @@
y: 120

- name: Eldin
image: Eldin.png
image: eldin.png
x: 265
y: 66
children:
Expand Down Expand Up @@ -163,7 +163,7 @@
y: 186

- name: Lanayru
image: Lanayru.png
image: lanayru.png
x: 147
y: 145
children:
Expand Down
4 changes: 2 additions & 2 deletions gui/components/tracker_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ def update(self, search: "Search | None" = None) -> None:
)
if any([l for l in available_locations if l.has_vanilla_goddess_cube()]):
self.setText(
f'<img src="{(TRACKER_ASSETS_PATH / "sidequests" / "goddess_cube.png").as_posix()}" width="23" height="25">'
f'<img src="{(TRACKER_ASSETS_PATH / "side_quests" / "goddess_cube.png").as_posix()}" width="23" height="25">'
)
elif any(
[l for l in available_locations if l.has_vanilla_gratitude_crystal()]
):
self.setText(
f'<img src="{(TRACKER_ASSETS_PATH / "sidequests" / "crystal.png").as_posix()}" width="25" height="25">'
f'<img src="{(TRACKER_ASSETS_PATH / "side_quests" / "crystal.png").as_posix()}" width="25" height="25">'
)

self.update_color("red")
Expand Down
2 changes: 1 addition & 1 deletion gui/components/tracker_inventory_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def mouseReleaseEvent(self, ev: QMouseEvent) -> None:
else self.get_current_item()
),
(
"sidequests/crystal_pack.png"
"side_quests/crystal_pack.png"
if must_be_five_pack
else self.filenames[self.state]
),
Expand Down
6 changes: 3 additions & 3 deletions gui/components/tracker_location_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ def __init__(
has_icon = True
if self.location.has_vanilla_gratitude_crystal():
self.pixmap.load(
(TRACKER_ASSETS_PATH / "sidequests" / "crystal.png").as_posix()
(TRACKER_ASSETS_PATH / "side_quests" / "crystal.png").as_posix()
)
elif self.location.has_vanilla_goddess_cube():
self.pixmap.load(
(TRACKER_ASSETS_PATH / "sidequests" / "goddess_cube.png").as_posix()
(TRACKER_ASSETS_PATH / "side_quests" / "goddess_cube.png").as_posix()
)
elif self.location.is_gossip_stone():
self.pixmap.load(
(TRACKER_ASSETS_PATH / "sidequests" / "gossip_stone.png").as_posix()
(TRACKER_ASSETS_PATH / "side_quests" / "gossip_stone.png").as_posix()
)
elif self.location.has_vanilla_dungeon_key():
self.pixmap.load(
Expand Down
86 changes: 48 additions & 38 deletions gui/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self, main: "Main", ui: "Ui_main_window") -> None:

# Display the Sky if there's no active tracker
self.ui.map_widget.setStyleSheet(
Tracker.map_widget_stylesheet.replace("IMAGE_FILENAME", "Sky.png")
Tracker.map_widget_stylesheet.replace("IMAGE_FILENAME", "sky.png")
)

self.ui.map_widget.mouseReleaseEvent = self.handle_right_click
Expand Down Expand Up @@ -274,52 +274,61 @@ def init_buttons(self):
)

self.bombs_button = TrackerInventoryButton(
["Nothing", BOMB_BAG], ["bombs_gray.png", "bombs.png"]
["Nothing", BOMB_BAG], ["item_wheel/bombs_gray.png", "item_wheel/bombs.png"]
)
self.slingshot_button = TrackerInventoryButton(
["Nothing"] + [PROGRESSIVE_SLINGSHOT] * 2,
["slingshot_gray.png", "slingshot.png", "scattershot.png"],
[
"item_wheel/slingshot_gray.png",
"item_wheel/slingshot.png",
"item_wheel/scattershot.png",
],
None,
["No Slingshot", "Slingshot", "Scattershot"],
)
self.beetle_button = TrackerInventoryButton(
["Nothing"] + [PROGRESSIVE_BEETLE] * 4,
[
"beetle_gray.png",
"beetle.png",
"hook_beetle.png",
"quick_beetle.png",
"tough_beetle.png",
"item_wheel/beetle_gray.png",
"item_wheel/beetle.png",
"item_wheel/hook_beetle.png",
"item_wheel/quick_beetle.png",
"item_wheel/tough_beetle.png",
],
None,
["No Beetle", "Beetle", "Hook Beetle", "Quick Beetle", "Tough Beetle"],
)
self.bug_net_button = TrackerInventoryButton(
["Nothing"] + [PROGRESSIVE_BUG_NET] * 2,
["bug_net_gray.png", "bug_net.png", "big_bug_net.png"],
[
"item_wheel/bug_net_gray.png",
"item_wheel/bug_net.png",
"item_wheel/big_bug_net.png",
],
None,
["No Bug Net", "Bug Net", "Big Bug Net"],
)
self.bow_button = TrackerInventoryButton(
["Nothing"] + [PROGRESSIVE_BOW] * 3,
[
"bow_gray.png",
"bow.png",
"iron_bow.png",
"sacred_bow.png",
"item_wheel/bow_gray.png",
"item_wheel/bow.png",
"item_wheel/iron_bow.png",
"item_wheel/sacred_bow.png",
],
None,
["No Bow", "Bow", "Iron Bow", "Sacred Bow"],
)
self.clawshots_button = TrackerInventoryButton(
["Nothing", CLAWSHOTS], ["clawshots_gray.png", "clawshots.png"]
["Nothing", CLAWSHOTS],
["item_wheel/clawshots_gray.png", "item_wheel/clawshots.png"],
)
self.whip_button = TrackerInventoryButton(
["Nothing", WHIP], ["whip_gray.png", "whip.png"]
["Nothing", WHIP], ["item_wheel/whip_gray.png", "item_wheel/whip.png"]
)
self.gust_bellows_button = TrackerInventoryButton(
["Nothing", GUST_BELLOWS],
["gust_bellows_gray.png", "gust_bellows.png"],
["item_wheel/gust_bellows_gray.png", "item_wheel/gust_bellows.png"],
)

self.sword_button = TrackerInventoryButton(
Expand Down Expand Up @@ -360,15 +369,16 @@ def init_buttons(self):
[f"Lanayru Caves Small Key ({i}/2)" for i in range(3)],
)
self.sea_chart_button = TrackerInventoryButton(
["Nothing", SEA_CHART], ["sea_chart_gray.png", "sea_chart.png"]
["Nothing", SEA_CHART],
["main_quest/sea_chart_gray.png", "main_quest/sea_chart.png"],
)
self.spiral_charge_button = TrackerInventoryButton(
["Nothing", SPIRAL_CHARGE],
["bird_statuette_gray.png", "bird_statuette.png"],
["main_quest/bird_statuette_gray.png", "main_quest/bird_statuette.png"],
)
self.adventure_pouch_button = TrackerInventoryButton(
["Nothing"] + [PROGRESSIVE_POUCH] * 5,
["pouch_gray.png"] + ["pouch.png"] * 5,
["main_quest/pouch_gray.png"] + ["main_quest/pouch.png"] * 5,
None,
["Adventure Pouch (0 Slots)"]
+ [f"Adventure Pouch ({i + 4} Slots)" for i in range(5)],
Expand All @@ -378,7 +388,7 @@ def init_buttons(self):
self.adventure_pouch_button.set_label_scale(1.25)
self.bottle_button = TrackerInventoryButton(
["Nothing"] + [EMPTY_BOTTLE] * 5,
["bottle_gray.png"] + ["bottle.png"] * 5,
["main_quest/bottle_gray.png"] + ["main_quest/bottle.png"] * 5,
None,
[f"Empty Bottle ({i}/5)" for i in range(6)],
)
Expand Down Expand Up @@ -413,17 +423,17 @@ def init_buttons(self):
self.mitts_button = TrackerInventoryButton(
["Nothing"] + [PROGRESSIVE_MITTS] * 2,
[
"main quest/digging_mitts_gray.png",
"main quest/digging_mitts.png",
"main quest/mogma_mitts.png",
"main_quest/digging_mitts_gray.png",
"main_quest/digging_mitts.png",
"main_quest/mogma_mitts.png",
],
None,
["No Mitts", "Digging Mitts", "Mogma Mitts"],
)

self.harp_button = TrackerInventoryButton(
["Nothing", GODDESS_HARP],
["main quest/goddess_harp_gray.png", "main quest/goddess_harp.png"],
["main_quest/goddess_harp_gray.png", "main_quest/goddess_harp.png"],
)
self.ballad_of_the_goddess_button = TrackerInventoryButton(
["Nothing", BALLAD_OF_THE_GODDESS],
Expand Down Expand Up @@ -451,59 +461,59 @@ def init_buttons(self):
self.song_of_the_hero_button.set_label_scale(1.1)
self.triforce_button = TrackerInventoryButton(
["Nothing", TRIFORCE_OF_COURAGE, TRIFORCE_OF_WISDOM, TRIFORCE_OF_POWER],
[f"main quest/triforce_{i}.png" for i in range(4)],
[f"main_quest/triforce_{i}.png" for i in range(4)],
None,
[f"Triforce ({i}/3)" for i in range(4)],
)

self.water_dragon_scale_button = TrackerInventoryButton(
["Nothing", WATER_DRAGON_SCALE],
[
"main quest/water_dragon_scale_gray.png",
"main quest/water_dragon_scale.png",
"main_quest/water_dragon_scale_gray.png",
"main_quest/water_dragon_scale.png",
],
)
self.fireshield_earrings_button = TrackerInventoryButton(
["Nothing", FIRESHIELD_EARRINGS],
[
"main quest/fireshield_earrings_gray.png",
"main quest/fireshield_earrings.png",
"main_quest/fireshield_earrings_gray.png",
"main_quest/fireshield_earrings.png",
],
)
self.cawlins_latter_button = TrackerInventoryButton(
["Nothing", CAWLINS_LETTER],
["sidequests/cawlin_letter_gray.png", "sidequests/cawlin_letter.png"],
["side_quests/cawlin_letter_gray.png", "side_quests/cawlin_letter.png"],
)
self.insect_cage_button = TrackerInventoryButton(
["Nothing", BEEDLES_INSECT_CAGE],
[
"sidequests/beedle_insect_cage_gray.png",
"sidequests/beedle_insect_cage.png",
"side_quests/beedle_insect_cage_gray.png",
"side_quests/beedle_insect_cage.png",
],
)
self.rattle_button = TrackerInventoryButton(
["Nothing", RATTLE],
["sidequests/rattle_gray.png", "sidequests/rattle.png"],
["side_quests/rattle_gray.png", "side_quests/rattle.png"],
)
self.gratitude_crystals_button = TrackerInventoryButton(
["Nothing"] + [GRATITUDE_CRYSTAL] * 80,
["sidequests/crystal_gray.png"] + ["sidequests/crystal.png"] * 80,
["side_quests/crystal_gray.png"] + ["side_quests/crystal.png"] * 80,
None,
[f"Gratitude Crystals ({i}/80)" for i in range(81)],
)
self.gratitude_crystals_button.create_number_label()
self.life_tree_fruit_button = TrackerInventoryButton(
["Nothing", LIFE_TREE_FRUIT],
["main quest/life_tree_fruit_gray.png", "main quest/life_tree_fruit.png"],
["main_quest/life_tree_fruit_gray.png", "main_quest/life_tree_fruit.png"],
)

# self.tadtones_button = TrackerInventoryButton(
# ["Nothing", GROUP_OF_TADTONES],
# ["main quest/tadtones_gray.png", "main quest/tadtones.png"],
# ["main_quest/tadtones_gray.png", "main_quest/tadtones.png"],
# )
self.scrapper_button = TrackerInventoryButton(
["Nothing", SCRAPPER],
["main quest/scrapper_gray.png", "main quest/Scrapper.png"],
["main_quest/scrapper_gray.png", "main_quest/scrapper.png"],
)

# Load in tracker area buttons
Expand Down Expand Up @@ -1802,7 +1812,7 @@ def on_click_inventory_button(self, item: Item, item_image: str):
if single_crystal_question == QMessageBox.StandardButton.No:
# Change sphere-tracked item to a pack
item = self.world.get_item(GRATITUDE_CRYSTAL_PACK)
item_image = "sidequests/crystal_pack.png"
item_image = "side_quests/crystal_pack.png"
for _ in range(4):
crystals_button.increment_item_state()

Expand Down

0 comments on commit 95ebe8e

Please sign in to comment.