5.9 Todo List #1387
Replies: 6 comments 19 replies
-
No clue how to fix either of these. |
Beta Was this translation helpful? Give feedback.
-
Valid point, though. Should double check. This better? MORE OLD CODE REMOVED
KEEP SCROLLING... |
Beta Was this translation helpful? Give feedback.
-
Okay, Pertex, I think I've got it all together... We'd have to change <function name="ShowMenuResponse" parameters="option"><![CDATA[
if (game.menucallback = null) {
error ("Unexpected menu response")
}
else {
parameters = NewStringDictionary()
dictionary add (parameters, "result", UnescapeQuotes(option))
script = game.menucallback
if (GetBoolean (game, "donotclearmenus")) {
DisableMenu
}
else {
ClearMenu
}
if (not GetBoolean(game, "disambiguating")) {
game.runturnscripts = true
}
else {
if (GetBoolean (game, "showmenuresponses")) {
obj = GetObject (option)
if (obj <> null){
option = GetDisplayAlias(obj)
}
msg (Template("ShowMenuResponsePrompt") + option)
}
}
game.disambiguating = false
invoke (script, parameters)
FinishTurn
}
]]></function> Then add these two functions: <function name="DisableMenu">
DisableMenuOutputSection (game.menuoutputsection)
game.menuoutputsection = null
game.menuoptions = null
game.menucallback = null
</function>
<function name="DisableMenuOutputSection" parameters="section">
JS.disableMenuOutputSection (section)
</function> Then add this to playercore.js (if there isn't already a function like this, but I couldn't find one): function disableMenuOutputSection (el){
$('.' + el + ' .cmdlink').addClass('disabled').attr('onclick',null);
} Also, I don't know if we should add these to the game object by default (if yes, possibly along with editor controls, but probably not?): <donotclearmenus type="boolean">false</donotclearmenus>
<showmenuresponses type="boolean">false</showmenuresponses> |
Beta Was this translation helpful? Give feedback.
-
yes, above 'Verb Menu' with a new Headline 'Menus' |
Beta Was this translation helpful? Give feedback.
-
Is everything done here now? Or are there still issues to be added? |
Beta Was this translation helpful? Give feedback.
-
The only other things on my list are adding spell check and "extending" word-wrap to also work in the script textboxes when the option is selected in the user settings. Spell-check would need a new user setting, and it probably wouldn't work correctly in certain languages anyway. ...and I found no easy way to add code to make word-wrap in script textboxes tied to Quest's current word-wrap user settings. Neither of these sound worthwhile to me at this juncture. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ShowMenuResponse
result = GetDisplayAlias(result)
This code is already written. Waiting on a file in an open PR.
32015d8
Beta Was this translation helpful? Give feedback.
All reactions