Skip to content

Commit 958874e

Browse files
authored
Merge pull request #79 from ManualForArchipelago/change_client_clicks_to_release
Client location buttons send on release instead of on press
2 parents c38893a + 97d227b commit 958874e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ManualClient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def enable_death_link(self):
320320
self.death_link_button = Button(text="Death Link: Primed",
321321
size_hint_x=None, width=150)
322322
self.connect_layout.add_widget(self.death_link_button)
323-
self.death_link_button.bind(on_press=self.send_death_link)
323+
self.death_link_button.bind(on_release=self.send_death_link)
324324

325325
def send_death_link(self, *args):
326326
if self.ctx.last_death_link:
@@ -458,7 +458,7 @@ def build_tracker_and_locations_table(self):
458458

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

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

476476
tracker_panel_scrollable.add_widget(tracker_panel)

0 commit comments

Comments
 (0)