Fixed playtime requirement tooltip (#10756)

This commit is contained in:
Martin Petkovski
2022-08-22 05:14:24 +10:00
committed by GitHub
parent 56b7b175b0
commit c24a8a072a
2 changed files with 11 additions and 7 deletions

View File

@@ -247,7 +247,7 @@ namespace Content.Client.LateJoin
string? reason = null; string? reason = null;
if (value == 0 || !tracker.IsAllowed(prototype, out reason)) if (!tracker.IsAllowed(prototype, out reason))
{ {
jobButton.Disabled = true; jobButton.Disabled = true;
@@ -256,6 +256,10 @@ namespace Content.Client.LateJoin
jobButton.ToolTip = reason; jobButton.ToolTip = reason;
} }
} }
else if (value == 0)
{
jobButton.Disabled = true;
}
_jobButtons[id][prototype.ID] = jobButton; _jobButtons[id][prototype.ID] = jobButton;
} }

View File

@@ -1,8 +1,8 @@
role-timer-department-insufficient = Require {TOSTRING($time, "0")} more minutes in {$department} department. role-timer-department-insufficient = You require {TOSTRING($time, "0")} more minutes in {$department} department to play this role.
role-timer-department-too-high = Requires {TOSTRING($time, "0")} fewer minutes in {$department} department. (Are you trying to play a trainee role?) role-timer-department-too-high = You require {TOSTRING($time, "0")} fewer minutes in {$department} department to play this role. (Are you trying to play a trainee role?)
role-timer-overall-insufficient = Require {TOSTRING($time, "0")} more minutes of playtime. role-timer-overall-insufficient = You require {TOSTRING($time, "0")} more minutes of playtime to play this role.
role-timer-overall-too-high = Require {TOSTRING($time, "0")} fewer minutes of playtime. (Are you trying to play a trainee role?) role-timer-overall-too-high = You require {TOSTRING($time, "0")} fewer minutes of playtime to play this role. (Are you trying to play a trainee role?)
role-timer-role-insufficient = Require {TOSTRING($time, "0")} more minutes with {$job} for this role. role-timer-role-insufficient = You require {TOSTRING($time, "0")} more minutes with {$job} to play this role.
role-timer-role-too-high = Require {TOSTRING($time, "0")} fewer minutes with {$job} for this role. (Are you trying to play a trainee role?) role-timer-role-too-high = You require {TOSTRING($time, "0")} fewer minutes with {$job} to play this role. (Are you trying to play a trainee role?)
role-timer-locked = Locked (hover for details) role-timer-locked = Locked (hover for details)