* Tons of work with menu/prompts refactoring -- more to come soon

* More work with menu/prompt accets
This commit is contained in:
Bryan Ashby 2015-04-19 02:13:13 -06:00
parent 5faa11664b
commit bac2f63c1a
21 changed files with 871 additions and 238 deletions

View file

@ -70,42 +70,14 @@ function connectEntry(client) {
ansiQueryTermSizeIfNeeded(client);
prepareTerminal(term);
//
// Always show a ENiGMA½ banner
//
displayBanner(term);
setTimeout(function onTimeout() {
term.write(ansi.clearScreen());
var dispOptions = {
name : 'CONNECT',
client : client,
};
// :TODO: if connect.js were a MenuModule, MCI/etc. would function here!
// ... could also avoid some of the boilerplate code
theme.displayThemeArt(dispOptions, function artDisplayed(err) {
var timeout = err ? 0 : 2000;
setTimeout(function timeout() {
client.gotoMenuModule( { name : Config.entryMod } );
}, timeout);
});
/*artwork.getArt('CONNECT', { random : true, readSauce : true }, function onArt(err, art) {
var timeout = 0;
if(!err) {
term.write(art.data);
timeout = 1000;
}
setTimeout(function onTimeout() {
term.write(ansi.clearScreen());
client.gotoMenuModule({ name : Config.entryMod } );
}, timeout);
});
*/
client.gotoMenuModule( { name : Config.firstMenu });
}, 500);
}