feat(webui): show available warframe slots
All checks were successful
Build / build (18) (push) Successful in 1m9s
Build / build (20) (push) Successful in 1m8s
Build / build (22) (push) Successful in 36s
Build / build (18) (pull_request) Successful in 1m9s
Build / build (22) (pull_request) Successful in 35s
Build / build (20) (pull_request) Successful in 1m9s

This commit is contained in:
Sainan 2025-02-26 06:12:32 +01:00
parent a1c00b6153
commit 1a12751f62
4 changed files with 7 additions and 1 deletions

View File

@ -147,7 +147,7 @@
<div class="row g-3"> <div class="row g-3">
<div class="col-lg-6"> <div class="col-lg-6">
<div class="card mb-3" style="height: 400px;"> <div class="card mb-3" style="height: 400px;">
<h5 class="card-header" data-loc="inventory_suits"></h5> <h5 class="card-header"><span data-loc="inventory_suits"></span> <span id="SuitBin" class="badge text-bg-secondary"></span></h5>
<div class="card-body overflow-auto"> <div class="card-body overflow-auto">
<form class="input-group mb-3" onsubmit="doAcquireEquipment('Suits');return false;"> <form class="input-group mb-3" onsubmit="doAcquireEquipment('Suits');return false;">
<input class="form-control" id="acquire-type-Suits" list="datalist-Suits" /> <input class="form-control" id="acquire-type-Suits" list="datalist-Suits" />

View File

@ -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 // Populate mods route
document.getElementById("riven-list").innerHTML = ""; document.getElementById("riven-list").innerHTML = "";
document.getElementById("mods-list").innerHTML = ""; document.getElementById("mods-list").innerHTML = "";

View File

@ -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_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_addModsConfirm: `Are you sure you want to add |COUNT| mods to your account?`,
code_succImport: `Successfully imported.`, 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_description: `Login using your OpenWF account credentials (same as in-game when connecting to this server).`,
login_emailLabel: `Email address`, login_emailLabel: `Email address`,
login_passwordLabel: `Password`, login_passwordLabel: `Password`,

View File

@ -37,6 +37,7 @@ dict = {
code_focusUnlocked: `Разблокировано |COUNT| новых школ фокуса! Для отображения изменений в игре потребуется обновление инвентаря. Посещение навигации — самый простой способ этого добиться.`, code_focusUnlocked: `Разблокировано |COUNT| новых школ фокуса! Для отображения изменений в игре потребуется обновление инвентаря. Посещение навигации — самый простой способ этого добиться.`,
code_addModsConfirm: `Вы уверены, что хотите добавить |COUNT| модов на ваш аккаунт?`, code_addModsConfirm: `Вы уверены, что хотите добавить |COUNT| модов на ваш аккаунт?`,
code_succImport: `Успешно импортировано.`, code_succImport: `Успешно импортировано.`,
code_freeSlots: `[UNTRANSLATED] |SLOTS| Slots`,
login_description: `Войдите, используя учетные данные OpenWF (те же, что и в игре при подключении к этому серверу).`, login_description: `Войдите, используя учетные данные OpenWF (те же, что и в игре при подключении к этому серверу).`,
login_emailLabel: `Адрес электронной почты`, login_emailLabel: `Адрес электронной почты`,
login_passwordLabel: `Пароль`, login_passwordLabel: `Пароль`,