Skip to content

Commit

Permalink
Merge pull request idmillington#9 from juhana/master
Browse files Browse the repository at this point in the history
Exposing interactivity state
  • Loading branch information
idmillington committed Sep 3, 2011
2 parents 920165a + 1c286f3 commit f02ca7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/src/API.md
Expand Up @@ -1094,6 +1094,12 @@ games will not load correctly. A player may save their game at one
point and find most of their progress wiped out when they load it
again.

If your game has elements that should not be triggered while Undum is
replaying a saved game, for example sound effects or popup notifications,
you can use `undum.isInteractive()` to test whether the game is being
played normally (returns `true`) or being loaded from a save game
(returns `false`).


# Translation and Internationalization

Expand Down Expand Up @@ -1211,4 +1217,4 @@ spec!
## 2011-08-18

- Added support for functions in the `content` and `header` of a
`SimpleSituation` (credit: David Eyk).
`SimpleSituation` (credit: David Eyk).
2 changes: 2 additions & 0 deletions games/media/js/undum.js
Expand Up @@ -1313,6 +1313,8 @@
QualityGroup: QualityGroup,

game: game,

isInteractive: function() { return interactive; },

// The undum set of translated strings.
language: {}
Expand Down

0 comments on commit f02ca7b

Please sign in to comment.