Skip to content

Commit

Permalink
Added resume function to match pause
Browse files Browse the repository at this point in the history
  • Loading branch information
acbart committed Nov 28, 2023
1 parent 54f10ab commit e4650a6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion change_log.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Change Log
==========

# Versio 0.6.4
# Version 0.6.5

* Added `resume` function to match `pause`

# Version 0.6.4

* Fixed bugs with animations' default values
* Fixed bugs with layer's weakref handling of set_window_layers
Expand Down
4 changes: 2 additions & 2 deletions designer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from os import environ

environ['PYGAME_HIDE_SUPPORT_PROMPT'] = '1'
__version__ = '0.6.4'
__version__ = '0.6.5'

# For `debug` support on Mac, we need to preload tkinter
from designer.system import setup_debug_mode
Expand Down Expand Up @@ -52,7 +52,7 @@
'when', 'starting', 'updating', 'typing', 'clicking',
'start', 'debug',
'stop', 'restart',
'pause',
'pause', 'resume',
'colliding', 'colliding_with_mouse', 'would_collide',
'destroy',
'DesignerObject',
Expand Down
4 changes: 4 additions & 0 deletions designer/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ def restart():
check_initialized()
designer.GLOBAL_DIRECTOR.restarting = True

def resume():
""" Resumes event processing in the game """
check_initialized()
designer.GLOBAL_DIRECTOR.pause(False)

def set_window_color(color):
"""
Expand Down

0 comments on commit e4650a6

Please sign in to comment.