mirror of
https://gitlab.com/Oreolek/salet-module.git
synced 2024-06-26 03:50:49 +03:00
Room name argument for SaletRoom.optionText
This commit is contained in:
parent
08b9e4bf0e
commit
1cf8b33621
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "salet",
|
||||
"version": "1.6.6",
|
||||
"version": "1.6.7",
|
||||
"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",
|
||||
|
|
|
@ -167,7 +167,7 @@ class SaletView
|
|||
if (room == currentRoom)
|
||||
continue
|
||||
|
||||
optionText = room.optionText.fcall(currentRoom)
|
||||
optionText = room.optionText.fcall(room, currentRoom.name)
|
||||
if (!optionText)
|
||||
optionText = "choice".l({number:i+1})
|
||||
$option = $("<li>")
|
||||
|
|
Loading…
Reference in a new issue