mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Fix showing tips on the login screen from the localized tip dataset (#29640)
Regression introduced in #28285
This commit is contained in:
parent
e0697763f8
commit
ca87fb8bc5
1 changed files with 2 additions and 2 deletions
|
|
@ -116,7 +116,7 @@ namespace Content.Client.Launcher
|
|||
private void ChangeLoginTip()
|
||||
{
|
||||
var tipsDataset = _cfg.GetCVar(CCVars.LoginTipsDataset);
|
||||
var loginTipsEnabled = _prototype.TryIndex<DatasetPrototype>(tipsDataset, out var tips);
|
||||
var loginTipsEnabled = _prototype.TryIndex<LocalizedDatasetPrototype>(tipsDataset, out var tips);
|
||||
|
||||
LoginTips.Visible = loginTipsEnabled;
|
||||
if (!loginTipsEnabled)
|
||||
|
|
@ -131,7 +131,7 @@ namespace Content.Client.Launcher
|
|||
|
||||
var randomIndex = _random.Next(tipList.Count);
|
||||
var tip = tipList[randomIndex];
|
||||
LoginTip.SetMessage(tip);
|
||||
LoginTip.SetMessage(Loc.GetString(tip));
|
||||
|
||||
LoginTipTitle.Text = Loc.GetString("connecting-window-tip", ("numberTip", randomIndex));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue