From 963a351542f0a140b1a1f7795ab3bdc3242134ea Mon Sep 17 00:00:00 2001 From: Zack Backmen Date: Sun, 10 Mar 2024 00:35:39 +0300 Subject: [PATCH] fix --- .../Backmen/Reinforcement/UI/ReinforcementConsoleWindow.cs | 3 ++- Resources/Locale/ru-RU/backmen/reinforcement.ftl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Client/Backmen/Reinforcement/UI/ReinforcementConsoleWindow.cs b/Content.Client/Backmen/Reinforcement/UI/ReinforcementConsoleWindow.cs index 66759d175c5..62d472a403e 100644 --- a/Content.Client/Backmen/Reinforcement/UI/ReinforcementConsoleWindow.cs +++ b/Content.Client/Backmen/Reinforcement/UI/ReinforcementConsoleWindow.cs @@ -126,7 +126,7 @@ public void Update(UpdateReinforcementUi updateReinforcementUi) if (cur < min) { OnKeySelected.Invoke((uint)member, (uint)min); - cur = min; + r.ModelCount = cur = min; } r.JobName.Text = Loc.GetString("reinforcement-row", ("name", Loc.GetString(r.Model!.Name)), ("job", jobTitle)); @@ -179,6 +179,7 @@ private void UpdateRows() } r.PlusBtn.Disabled = max <= cur || r.Model?.MaxCount <= r.ModelCount; + r.MinusBtn.Disabled = r.Model?.MinCount >= r.ModelCount; } } diff --git a/Resources/Locale/ru-RU/backmen/reinforcement.ftl b/Resources/Locale/ru-RU/backmen/reinforcement.ftl index a16d4f0d8a0..1eb74bdf58e 100644 --- a/Resources/Locale/ru-RU/backmen/reinforcement.ftl +++ b/Resources/Locale/ru-RU/backmen/reinforcement.ftl @@ -18,7 +18,7 @@ reinforcement-error-list-2 = Ошибка! Список превышает ог reinforcement-error-brief = Ошибка! Брифинг пуст! reinforcement-team-size = Размер команды: -reinforcement-team-size-min = минмум: { $num } +reinforcement-team-size-min = минимум: { $num } reinforcement-team-size-max = максимум: { $num } reinforcement-ghostrole-name = Подкрепление: { $name }