* Work with prompts. Prompts now handle special menu "submit" block without form IDs/etc.
This commit is contained in:
Binary file not shown.
BIN
mods/art/doortoomany.ans
Normal file
BIN
mods/art/doortoomany.ans
Normal file
Binary file not shown.
BIN
mods/art/menu_prompt.ans
Normal file
BIN
mods/art/menu_prompt.ans
Normal file
Binary file not shown.
@@ -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",
|
||||
|
||||
@@ -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" : {
|
||||
|
||||
Reference in New Issue
Block a user