mirror of
https://github.com/namooplol/unknow-dmb.git
synced 2025-04-28 15:08:07 +00:00
update
This commit is contained in:
parent
52fa2f7f25
commit
83c32a0ca3
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
# Unknow-DMB Project Launcher
|
# DMB Project Launcher
|
||||||
Based on Helios Launcher
|
Based on Helios Launcher
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
@ -150,9 +150,13 @@ function updateSelectedAccount(authUser){
|
|||||||
if(authUser.displayName != null){
|
if(authUser.displayName != null){
|
||||||
username = authUser.displayName
|
username = authUser.displayName
|
||||||
}
|
}
|
||||||
|
if (authUser.type != "dpcloudev") {
|
||||||
if (authUser.uuid != null){
|
if (authUser.uuid != null){
|
||||||
document.getElementById('avatarContainer').style.backgroundImage = `url('https://mc-heads.net/body/${authUser.uuid}/right')`
|
document.getElementById('avatarContainer').style.backgroundImage = `url('https://mc-heads.net/body/${authUser.uuid}/right')`
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
document.getElementById('avatarContainer').style.backgroundImage = ``
|
||||||
|
}
|
||||||
}
|
}
|
||||||
user_text.innerHTML = username
|
user_text.innerHTML = username
|
||||||
}
|
}
|
||||||
@ -713,7 +717,7 @@ async function dlAsync(login = true) {
|
|||||||
setLaunchDetails(Lang.queryJS('landing.dlAsync.doneEnjoyServer'))
|
setLaunchDetails(Lang.queryJS('landing.dlAsync.doneEnjoyServer'))
|
||||||
|
|
||||||
// Init Discord Hook
|
// Init Discord Hook
|
||||||
/*
|
|
||||||
if(distro.rawDistribution.discord != null && serv.rawServer.discord != null){
|
if(distro.rawDistribution.discord != null && serv.rawServer.discord != null){
|
||||||
DiscordWrapper.initRPC(distro.rawDistribution.discord, serv.rawServer.discord)
|
DiscordWrapper.initRPC(distro.rawDistribution.discord, serv.rawServer.discord)
|
||||||
hasRPC = true
|
hasRPC = true
|
||||||
@ -724,7 +728,7 @@ async function dlAsync(login = true) {
|
|||||||
proc = null
|
proc = null
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
|
||||||
|
@ -635,13 +635,19 @@ function populateAuthAccounts(){
|
|||||||
let microsoftAuthAccountStr = ''
|
let microsoftAuthAccountStr = ''
|
||||||
let mojangAuthAccountStr = ''
|
let mojangAuthAccountStr = ''
|
||||||
|
|
||||||
|
|
||||||
authKeys.forEach((val) => {
|
authKeys.forEach((val) => {
|
||||||
const acc = authAccounts[val]
|
const acc = authAccounts[val]
|
||||||
|
let skinimage = ``
|
||||||
|
|
||||||
|
if (acc.type != "dpcloudev") {
|
||||||
|
skinimage = `<div class="settingsAuthAccountLeft">
|
||||||
|
<img class="settingsAuthAccountImage" alt="${acc.displayName}" src=https://mc-heads.net/body/${acc.uuid}/60">
|
||||||
|
</div>`
|
||||||
|
}
|
||||||
|
|
||||||
const accHtml = `<div class="settingsAuthAccount" uuid="${acc.uuid}">
|
const accHtml = `<div class="settingsAuthAccount" uuid="${acc.uuid}">
|
||||||
<div class="settingsAuthAccountLeft">
|
${skinimage}
|
||||||
<img class="settingsAuthAccountImage" alt="${acc.displayName}" src="https://mc-heads.net/body/${acc.uuid}/60">
|
|
||||||
</div>
|
|
||||||
<div class="settingsAuthAccountRight">
|
<div class="settingsAuthAccountRight">
|
||||||
<div class="settingsAuthAccountDetails">
|
<div class="settingsAuthAccountDetails">
|
||||||
<div class="settingsAuthAccountDetailPane">
|
<div class="settingsAuthAccountDetailPane">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Custom Language File for Launcher Customizer
|
# Custom Language File for Launcher Customizer
|
||||||
|
|
||||||
[ejs.app]
|
[ejs.app]
|
||||||
title = "Unknow DMB"
|
title = "DMB"
|
||||||
|
|
||||||
[ejs.landing]
|
[ejs.landing]
|
||||||
mediaGitHubURL = "https://git.damp11113.xyz/Mirror/unknow-dmb"
|
mediaGitHubURL = "https://git.damp11113.xyz/Mirror/unknow-dmb"
|
||||||
@ -15,6 +15,6 @@ sourceGithubLink = "https://git.damp11113.xyz/Mirror/unknow-dmb"
|
|||||||
supportLink = "https://damp11113.xyz/donate"
|
supportLink = "https://damp11113.xyz/donate"
|
||||||
|
|
||||||
[ejs.welcome]
|
[ejs.welcome]
|
||||||
welcomeHeader = "Welcome to Unknow-DMB Project"
|
welcomeHeader = "Welcome to DMB Project"
|
||||||
welcomeDescription = "Hello world!"
|
welcomeDescription = "Hello world!"
|
||||||
welcomeDescCTA = "Hello world!"
|
welcomeDescCTA = "Hello world!"
|
||||||
|
@ -12,9 +12,11 @@
|
|||||||
<div id="rightContainer">
|
<div id="rightContainer">
|
||||||
<div id="user_content">
|
<div id="user_content">
|
||||||
<span id="user_text"><%- lang('landing.usernamePlaceholder') %></span>
|
<span id="user_text"><%- lang('landing.usernamePlaceholder') %></span>
|
||||||
|
|
||||||
<div id="avatarContainer">
|
<div id="avatarContainer">
|
||||||
<button id="avatarOverlay"><%- lang('landing.usernameEditButton') %></button>
|
<button id="avatarOverlay"><%- lang('landing.usernameEditButton') %></button>
|
||||||
</div>
|
</div>
|
||||||
|
-
|
||||||
</div>
|
</div>
|
||||||
<div id="mediaContent">
|
<div id="mediaContent">
|
||||||
<div id="internalMedia">
|
<div id="internalMedia">
|
||||||
|
39
distro.json
Normal file
39
distro.json
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"version": "1.0.0",
|
||||||
|
"discord": {
|
||||||
|
"clientId": "1290669565231108106",
|
||||||
|
"smallImageText": "",
|
||||||
|
"smallImageKey": ""
|
||||||
|
},
|
||||||
|
"java": {
|
||||||
|
"adoptium": "https://adoptium.net/temurin/releases/?package=jdk&version=18",
|
||||||
|
"supported": ">=17",
|
||||||
|
"suggestedMajor": 18,
|
||||||
|
"ram": {
|
||||||
|
"recommended": 2048,
|
||||||
|
"minimum": 1024
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rss": "",
|
||||||
|
"servers": [
|
||||||
|
{
|
||||||
|
"id": "DMB",
|
||||||
|
"name": "DMB Client",
|
||||||
|
"description": "",
|
||||||
|
"icon": "",
|
||||||
|
"version": "1.0",
|
||||||
|
"address": "localhost",
|
||||||
|
"minecraftVersion": "1.20.1",
|
||||||
|
"discord": {
|
||||||
|
"shortId": "Example",
|
||||||
|
"largeImageText": "WesterosCraft Example Server",
|
||||||
|
"largeImageKey": "server-example"
|
||||||
|
},
|
||||||
|
"mainServer": true,
|
||||||
|
"autoconnect": true,
|
||||||
|
"modules": [
|
||||||
|
"Module Objects Here"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user