diff --git a/static/webui/index.html b/static/webui/index.html index 0d4b3e95..669d3c62 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -147,7 +147,7 @@
-
+
diff --git a/static/webui/script.js b/static/webui/script.js index 1c55cf4d..7d1e848f 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -356,6 +356,10 @@ function updateInventory() { }); }); + const SuitBin_totalSlots = (3 + data.SuitBin.Slots + data.SuitBin.Extra); + const SuitBin_usedSlots = data.Suits.length; + document.getElementById("SuitBin").textContent = loc("code_freeSlots").split("|SLOTS|").join(SuitBin_totalSlots - SuitBin_usedSlots); + // Populate mods route document.getElementById("riven-list").innerHTML = ""; document.getElementById("mods-list").innerHTML = ""; diff --git a/static/webui/translations/en.js b/static/webui/translations/en.js index 421acdd4..0d4183aa 100644 --- a/static/webui/translations/en.js +++ b/static/webui/translations/en.js @@ -36,6 +36,7 @@ dict = { code_focusUnlocked: `Unlocked |COUNT| new focus schools! An inventory update will be needed for the changes to be reflected in-game. Visiting the navigation should be the easiest way to trigger that.`, code_addModsConfirm: `Are you sure you want to add |COUNT| mods to your account?`, code_succImport: `Successfully imported.`, + code_freeSlots: `|SLOTS| Slots`, login_description: `Login using your OpenWF account credentials (same as in-game when connecting to this server).`, login_emailLabel: `Email address`, login_passwordLabel: `Password`, diff --git a/static/webui/translations/ru.js b/static/webui/translations/ru.js index b85344c1..e9d1b9c2 100644 --- a/static/webui/translations/ru.js +++ b/static/webui/translations/ru.js @@ -37,6 +37,7 @@ dict = { code_focusUnlocked: `Разблокировано |COUNT| новых школ фокуса! Для отображения изменений в игре потребуется обновление инвентаря. Посещение навигации — самый простой способ этого добиться.`, code_addModsConfirm: `Вы уверены, что хотите добавить |COUNT| модов на ваш аккаунт?`, code_succImport: `Успешно импортировано.`, + code_freeSlots: `[UNTRANSLATED] |SLOTS| Slots`, login_description: `Войдите, используя учетные данные OpenWF (те же, что и в игре при подключении к этому серверу).`, login_emailLabel: `Адрес электронной почты`, login_passwordLabel: `Пароль`,