* Work with prompts. Prompts now handle special menu "submit" block without form IDs/etc.

This commit is contained in:
Bryan Ashby
2015-08-06 23:08:10 -06:00
parent a0a97350fe
commit b8d4741c18
8 changed files with 111 additions and 8 deletions

Binary file not shown.

BIN
mods/art/doortoomany.ans Normal file

Binary file not shown.

BIN
mods/art/menu_prompt.ans Normal file

Binary file not shown.

View File

@@ -220,6 +220,7 @@
"mainMenu" : {
"art" : "MAINMENU",
"options" : { "cls" : true },
/*
"form" : {
"0" : {
"ET" : {
@@ -254,7 +255,26 @@
}
}
}
}
},*/
"prompt" : "menuCommand",
"submit" : [
{
"value" : { "command" : "G" },
"action" : "@menu:logoff"
},
{
"value" : { "command" : "D" },
"action" : "@menu:doorPimpWars"
},
{
"value" : { "command" : "L" },
"action" : "@menu:doorLORD"
},
{
"value" : 1,
"action" : "@menu:mainMenu"
}
]
},
"doorPimpWars" : {
"module" : "abracadabra",

View File

@@ -15,6 +15,22 @@
}
}
},
"menuCommand" : {
"art" : "menu_prompt.ans",
"mci" : {
"ET2" : {
"argName" : "command",
"width" : 20,
"maxLength" : 20,
"submit" : true,
"textStyle" : "U",
"focus" : true
}
}
},
///////////////////////////////////////////////////////////////////////
// Standard / Required
///////////////////////////////////////////////////////////////////////
"pause" : {
//
// Any menu 'pause' will use this prompt
@@ -40,7 +56,8 @@
* echoKey : false
*/
}/*,
}
/*,
"standard" : {
// any menu 'pause' will display this, pause for a key, then erase and move on
"pause" : {