Various changes and improvements.

Added warning message when console is opened, this is in preparation for alpha.
Added a new background image. Restored random backgrounds on launch (for now).
Changed the overlay dismiss/cancel buttons from anchors to buttons.
This commit is contained in:
Daniel Scalzi
2018-04-26 02:01:46 -04:00
parent 2f66d44824
commit 4b8133474d
7 changed files with 33 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ const os = require('os')
const path = require('path')
const rimraf = require('rimraf')
console.log('Preloading')
console.log('%c[Preloader]', 'color: #a02d2a; font-weight: bold', 'Loading..')
// Load ConfigManager
ConfigManager.load()
@@ -22,8 +22,8 @@ if(ConfigManager.getSelectedServer() == null){
// Clean up temp dir incase previous launches ended unexpectedly.
rimraf(path.join(os.tmpdir(), ConfigManager.getTempNativeFolder()), (err) => {
if(err){
console.warn('Error while cleaning temp dir', err)
console.warn('%c[Preloader]', 'color: #a02d2a; font-weight: bold', 'Error while cleaning natives directory', err)
} else {
console.log('Cleaned temp dir.')
console.log('%c[Preloader]', 'color: #a02d2a; font-weight: bold', 'Cleaned natives directory.')
}
})