mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
74a60a61c2
Added a done button which closes the settings UI. Displays a warning before the user logs out of the last saved account. If they proceed with the logout, they will be redirected to the login UI. Added startup handling for when the user has 0 saved accounts. They will be brought directly to the login UI. Accounts are now validated each time they are switched.
59 lines
2.9 KiB
Plaintext
59 lines
2.9 KiB
Plaintext
<div id="settingsContainer" style="display: none;">
|
|
<div id="settingsContainerLeft">
|
|
<div id="settingsNavContainer">
|
|
<div id="settingsNavHeader">
|
|
<span id="settingsNavHeaderText">Settings</span>
|
|
</div>
|
|
<div id="settingsNavItemsContainer">
|
|
<div id="settingsNavItemsContent">
|
|
<button class="settingsNavItem" rSc="settingsTabAccount" selected>Account</button>
|
|
<button class="settingsNavItem" rSc="settingsTabMinecraft">Minecraft</button>
|
|
<button class="settingsNavItem" rSc="settingsTabJava">Java</button>
|
|
<button class="settingsNavItem" rSc="settingsTabLauncher">Launcher</button>
|
|
<div id="settingsNavContentBottom">
|
|
<div class="settingsNavDivider"></div>
|
|
<button id="settingsNavDone">Done</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="settingsContainerRight">
|
|
<div id="settingsTabAccount" class="settingsTab">
|
|
<div class="settingsTabHeader">
|
|
<span class="settingsTabHeaderText">Account Settings</span>
|
|
<span class="settingsTabHeaderDesc">Add new accounts or manage existing ones.</span>
|
|
</div>
|
|
<div id="settingsAddAccountContainer">
|
|
<button id="settingsAddAccount">
|
|
<span id="settingsAddAccountText">+ Add Account</span>
|
|
</button>
|
|
</div>
|
|
<div id="settingsCurrentAccountsHeader">
|
|
<span id="settingsCurrentAccountsHeaderText">Current Accounts</span>
|
|
</div>
|
|
<div id="settingsCurrentAccounts">
|
|
<!-- Auth accounts populated here. -->
|
|
</div>
|
|
</div>
|
|
<div id="settingsTabMinecraft" class="settingsTab" style="display: none;">
|
|
<div class="settingsTabHeader">
|
|
<span class="settingsTabHeaderText">Minecraft Settings</span>
|
|
<span class="settingsTabHeaderDesc">Options related to game launch.</span>
|
|
</div>
|
|
</div>
|
|
<div id="settingsTabJava" class="settingsTab" style="display: none;">
|
|
<div class="settingsTabHeader">
|
|
<span class="settingsTabHeaderText">Java Settings</span>
|
|
<span class="settingsTabHeaderDesc">Manage the Java configuration (advanced).</span>
|
|
</div>
|
|
</div>
|
|
<div id="settingsTabLauncher" class="settingsTab" style="display: none;">
|
|
<div class="settingsTabHeader">
|
|
<span class="settingsTabHeaderText">Launcher Settings</span>
|
|
<span class="settingsTabHeaderDesc">Options related to the launcher itself.</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="./assets/js/scripts/settings.js"></script>
|
|
</div> |