Merge pull request #781 from vishal332008/myself

Removing Timer for Chests for Gold Pass Players
This commit is contained in:
Eric Froemling 2025-01-16 12:33:07 -08:00 committed by GitHub
commit b1fa5f79ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -329,23 +329,26 @@ class ChestWindow(bui.MainWindow):
) )
# Time string. # Time string.
self._time_string_text = bui.textwidget( if chest.unlock_tokens != 0:
parent=self._root_widget, self._time_string_text = bui.textwidget(
position=(self._width * 0.5, self._height - 85 + self._yoffs), parent=self._root_widget,
size=(0, 0), position=(self._width * 0.5, self._height - 85 + self._yoffs),
text='', size=(0, 0),
maxwidth=700, text='',
scale=0.6, maxwidth=700,
color=(0.6, 1.0, 0.6), scale=0.6,
h_align='center', color=(0.6, 1.0, 0.6),
v_align='center', h_align='center',
) v_align='center',
self._update_time_display(chest.unlock_time) )
self._time_string_timer = bui.AppTimer( self._update_time_display(chest.unlock_time)
1.0, self._time_string_timer = bui.AppTimer(
repeat=True, 1.0,
call=bui.WeakCall(self._update_time_display, chest.unlock_time), repeat=True,
) call=bui.WeakCall(
self._update_time_display, chest.unlock_time
),
)
# Allow watching an ad IF the server tells us we can AND we have # Allow watching an ad IF the server tells us we can AND we have
# an ad ready to show. # an ad ready to show.