mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* Lots of work with fonts: Support mappings of various cterm/SyncTERM fonts.
* Load font info from SAUCE * Better work with defaults & theme values
This commit is contained in:
parent
586f3d60b3
commit
5faa11664b
15 changed files with 233 additions and 39 deletions
|
@ -2,7 +2,8 @@
|
|||
'use strict';
|
||||
|
||||
var ansi = require('./ansi_term.js');
|
||||
var artwork = require('./art.js');
|
||||
//var artwork = require('./art.js');
|
||||
var theme = require('./theme.js');
|
||||
var moduleUtil = require('./module_util.js');
|
||||
var Log = require('./logger.js').log;
|
||||
var Config = require('./config.js').config;
|
||||
|
@ -74,7 +75,23 @@ function connectEntry(client) {
|
|||
setTimeout(function onTimeout() {
|
||||
term.write(ansi.clearScreen());
|
||||
|
||||
artwork.getArt('CONNECT', { random : true, readSauce : true }, function onArt(err, art) {
|
||||
|
||||
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) {
|
||||
|
@ -88,6 +105,7 @@ function connectEntry(client) {
|
|||
client.gotoMenuModule({ name : Config.entryMod } );
|
||||
}, timeout);
|
||||
});
|
||||
*/
|
||||
}, 500);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue