Skip to content

Commit

Permalink
Merge pull request #79 from ManualForArchipelago/change_client_clicks…
Browse files Browse the repository at this point in the history
…_to_release

Client location buttons send on release instead of on press
  • Loading branch information
FuzzyGamesOn authored Sep 24, 2024
2 parents c38893a + 97d227b commit 958874e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ManualClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def enable_death_link(self):
self.death_link_button = Button(text="Death Link: Primed",
size_hint_x=None, width=150)
self.connect_layout.add_widget(self.death_link_button)
self.death_link_button.bind(on_press=self.send_death_link)
self.death_link_button.bind(on_release=self.send_death_link)

def send_death_link(self, *args):
if self.ctx.last_death_link:
Expand Down Expand Up @@ -458,7 +458,7 @@ def build_tracker_and_locations_table(self):

for location_id in self.listed_locations[location_category]:
location_button = TreeViewButton(text=self.ctx.location_names.lookup_in_game(location_id), size_hint=(None, None), height=30, width=400)
location_button.bind(on_press=lambda *args, loc_id=location_id: self.location_button_callback(loc_id, *args))
location_button.bind(on_release=lambda *args, loc_id=location_id: self.location_button_callback(loc_id, *args))
location_button.id = location_id
category_layout.add_widget(location_button)

Expand All @@ -470,7 +470,7 @@ def build_tracker_and_locations_table(self):
victory_text = "VICTORY! (seed finished)" if victory_location["name"] == "__Manual Game Complete__" else "GOAL: " + victory_location["name"]
location_button = TreeViewButton(text=victory_text, size_hint=(None, None), height=30, width=400)
location_button.victory = True
location_button.bind(on_press=self.victory_button_callback)
location_button.bind(on_release=self.victory_button_callback)
category_layout.add_widget(location_button)

tracker_panel_scrollable.add_widget(tracker_panel)
Expand Down

0 comments on commit 958874e

Please sign in to comment.