Skip to content

Commit

Permalink
only draw bar end caps when bar area is also drawn
Browse files Browse the repository at this point in the history
  • Loading branch information
jamessanford committed Oct 13, 2015
1 parent ef83b14 commit eab3334
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deltabar/deltabar_lib/deltabar_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,18 +488,19 @@ def onRender(self, delta_t):
if self.first_update:
return # bail out, nothing is ready

self.ui.draw_bar_area_caps()
if (sim_info.info.graphics.status not in (sim_info.AC_LIVE,
sim_info.AC_PAUSE)):
self.ui.hide_bar_area()
self.ui.hide_delta_label()
self.clear_screen_data()
elif hasattr(self.data, 't') and hasattr(self.data, 's'):
self.ui.show_bar_area()
self.ui.draw_bar_area_caps()
self.ui.show_delta_label()
self.ui.draw_delta_bar(self.data.t, self.data.s, self.bar_moves)
else:
self.ui.show_bar_area()
self.ui.draw_bar_area_caps()
self.clear_screen_data()

if self.banner_time == 0:
Expand Down

1 comment on commit eab3334

@StoneSpb
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh :)
👍

Please sign in to comment.