ConfigManager improvements. v0.0.1-alpha.1

Added new configuration option, launchDetached.
Added validation function to ConfigManager to add missing keys (due to updates).
Updated westeroscraft.json
Game process can now be detached from the launcher.
This commit is contained in:
Daniel Scalzi committed 2018-05-10 00:01:38 -04:00
1 parent f1a98f2d45
commit d33476bcf9
6 files changed
+67 -16

No files matched your search

+7 -1
View File
@@ -72,7 +72,7 @@ function showMainUI(){
$('#loadingContainer').fadeOut(500, () => {
$('#loadSpinnerImage').removeClass('rotating')
})
}, 500)
}, 250)
}, 750)
initNews()
@@ -160,6 +160,12 @@ async function validateSelectedAccount(){
}
}
/**
* Temporary function to update the selected account along
* with the relevent UI elements.
*
* @param {string} uuid The UUID of the account.
*/
function setSelectedAccount(uuid){
const authAcc = ConfigManager.setSelectedAccount(uuid)
ConfigManager.save()