mirror of
https://gitlab.com/Oreolek/salet-module.git
synced 2024-06-26 03:50:49 +03:00
Proper changing rooms
This commit is contained in:
parent
dcec69177a
commit
5ff4550c22
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "salet",
|
||||
"version": "1.4.9",
|
||||
"version": "1.4.10",
|
||||
"description": "A general client-side framework for cybertext interactive fiction games.",
|
||||
"keywords": ["ifiction", "interactive fiction", "games", "coffee-script", "text", "menu"],
|
||||
"homepage": "http://salet.oreolek.ru",
|
||||
|
|
|
@ -58,7 +58,7 @@ class SaletRoom
|
|||
if @clear and f?
|
||||
salet.view.clearContent()
|
||||
else
|
||||
salet.view.removeTransient()
|
||||
salet.view.removeTransient(salet.interactive)
|
||||
|
||||
if f != @name and salet.rooms[f]?
|
||||
@visited++
|
||||
|
|
|
@ -322,13 +322,11 @@ class Salet
|
|||
|
||||
@current = newRoomId
|
||||
|
||||
# Remove links and transient sections.
|
||||
@view.removeTransient(@interactive)
|
||||
|
||||
# Notify the incoming situation.
|
||||
# A global callback before entering
|
||||
if (@enter)
|
||||
@enter(oldRoomId, newRoomId)
|
||||
newRoom.entering(this, oldRoomId)
|
||||
|
||||
newRoom.entering(oldRoomId)
|
||||
|
||||
# additional hook for when the situation text has already been printed
|
||||
if (@afterEnter)
|
||||
|
|
Loading…
Reference in a new issue