mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 12:08:21 +02:00
* Tons of work with menu/prompts refactoring -- more to come soon
* More work with menu/prompt accets
This commit is contained in:
parent
5faa11664b
commit
bac2f63c1a
21 changed files with 871 additions and 238 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue