]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix showing tips on the login screen from the localized tip dataset (#29640)
authorjmcb <joelsgp@protonmail.com>
Mon, 1 Jul 2024 16:27:49 +0000 (17:27 +0100)
committerGitHub <noreply@github.com>
Mon, 1 Jul 2024 16:27:49 +0000 (12:27 -0400)
Regression introduced in #28285

Content.Client/Launcher/LauncherConnectingGui.xaml.cs

index ac74ad7b60d21e9ff05918ab0ef25dfed7339d26..5015b710eb48a11f74d8303e30f67b24bef2cf89 100644 (file)
@@ -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));
         }