Skip to content

Commit

Permalink
fix agent collisions and disabling IFDB logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mezdahun committed Nov 5, 2023
1 parent 66bf0a8 commit 1b61cb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions abm/simulation/isims.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ def __init__(self):
inactiveColour=colors.GREY, borderThickness=1,
onClick=lambda: self.start_stop_IFDB_logging())
self.function_buttons.append(self.IFDB_button)
# hiding ifdb button
self.IFDB_button.hide()

function_button_start_x += self.function_button_width + self.function_button_pad
self.Snapshot_button = Button(self.screen, function_button_start_x, function_button_start_y,
self.function_button_width,
Expand Down Expand Up @@ -356,6 +359,7 @@ def start_stop_IFDB_logging(self):
def change_ghost_mode(self):
"""Changing ghost mdoe during exploutation"""
self.ghost_mode = not self.ghost_mode
self.collide_agents = not self.ghost_mode
if self.ghost_mode:
self.ghost_mode_button.inactiveColour = colors.GREEN
else:
Expand Down

0 comments on commit 1b61cb7

Please sign in to comment.