mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-25 17:03:03 +02:00
Add server name to the loading screen
This commit is contained in:
parent
649bb0452d
commit
41da54a27c
@ -3205,10 +3205,12 @@ class LoadingScreen {
|
|||||||
let $waitTimeBox = LoadingScreen.#$waitTimeBox;
|
let $waitTimeBox = LoadingScreen.#$waitTimeBox;
|
||||||
if (!$waitTimeBox) {
|
if (!$waitTimeBox) {
|
||||||
$waitTimeBox = CE('div', {'class': 'bx-wait-time-box'},
|
$waitTimeBox = CE('div', {'class': 'bx-wait-time-box'},
|
||||||
|
CE('label', {}, __('server')),
|
||||||
|
CE('span', {}, getPreferredServerRegion()),
|
||||||
CE('label', {}, __('wait-time-estimated')),
|
CE('label', {}, __('wait-time-estimated')),
|
||||||
$estimated = CE('span', {'class': 'bx-wait-time-estimated'}),
|
$estimated = CE('span', {}),
|
||||||
CE('label', {}, __('wait-time-countdown')),
|
CE('label', {}, __('wait-time-countdown')),
|
||||||
$countDown = CE('span', {'class': 'bx-wait-time-countdown'}),
|
$countDown = CE('span', {}),
|
||||||
);
|
);
|
||||||
|
|
||||||
document.documentElement.appendChild($waitTimeBox);
|
document.documentElement.appendChild($waitTimeBox);
|
||||||
@ -8143,15 +8145,16 @@ div[class*=StreamMenu-module__menuContainer] > div[class*=Menu-module] {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bx-wait-time-estimated, .bx-wait-time-countdown {
|
.bx-wait-time-box span {
|
||||||
display: block;
|
display: block;
|
||||||
font-family: var(--bx-monospaced-font);
|
font-family: var(--bx-monospaced-font);
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bx-wait-time-estimated {
|
.bx-wait-time-box span:last-of-type {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* REMOTE PLAY */
|
/* REMOTE PLAY */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user