Skip to content

Commit

Permalink
Refactor text position variable in sim_view.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ll7 committed Mar 28, 2024
1 parent cc48af7 commit 08a907c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions robot_sf/render/sim_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,10 @@ def _add_text(self, timestep: int, state: VisualizableSimState):
]
for i, text in enumerate(text_lines):
text_surface = self.font.render(text, False, TEXT_COLOR)
pos = self.timestep_text_pos[0], \
self.timestep_text_pos[1] + i * self.font.get_linesize()
pos = (
self._timestep_text_pos[0],
self._timestep_text_pos[1] + i * self.font.get_linesize()
)
self.screen.blit(text_surface, pos)

def _draw_grid(
Expand Down

0 comments on commit 08a907c

Please sign in to comment.