Skip to content

Commit 312ac44

Browse files
committed
New updates linked to ProcessGrammar()
1 parent 011ca40 commit 312ac44

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Assets/Scripts/Game/UserInterface/ToolTip.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public override void Draw()
196196
// Draw tooltip text
197197
for (int i = 0; i < textRows.Length; i++)
198198
{
199-
font.DrawText(GrammarManager.grammarProcessor.ProcessGrammar(textRows[i]), textPos, LocalScale, textColor);
199+
font.DrawText(GrammarManager.grammarProcessor.ProcessGrammar(textRows[i]+"{.Maj}"), textPos, LocalScale, textColor);
200200
textPos.y += font.GlyphHeight * LocalScale.y;
201201
}
202202

Assets/Scripts/Game/UserInterfaceWindows/DaggerfallCourtWindow.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
using DaggerfallConnect.Arena2;
2020
using DaggerfallWorkshop.Game.Utility;
2121
using DaggerfallWorkshop.Game.Guilds;
22+
using DaggerfallWorkshop.Localization;
2223

2324
namespace DaggerfallWorkshop.Game.UserInterfaceWindows
2425
{
@@ -465,7 +466,7 @@ public void UpdatePrisonScreen()
465466
{
466467
daysInPrisonLeft--;
467468
daysUntilFreedomLabel.Text = TextManager.Instance.GetLocalizedText("daysUntilFreedom");
468-
daysUntilFreedomLabel.Text = daysUntilFreedomLabel.Text.Replace("%d", daysInPrisonLeft.ToString());
469+
daysUntilFreedomLabel.Text = GrammarManager.grammarProcessor.ProcessGrammar(daysUntilFreedomLabel.Text.Replace("%d", daysInPrisonLeft.ToString()));
469470

470471
if (daysInPrisonLeft == 0)
471472
{
@@ -519,7 +520,7 @@ protected virtual void SwitchToPrisonScreen()
519520
courtPanel.BackgroundTexture = nativeTexture;
520521

521522
daysUntilFreedomLabel.Text = TextManager.Instance.GetLocalizedText("daysUntilFreedom");
522-
daysUntilFreedomLabel.Text = daysUntilFreedomLabel.Text.Replace("%d", daysInPrison.ToString());
523+
daysUntilFreedomLabel.Text = GrammarManager.grammarProcessor.ProcessGrammar(daysUntilFreedomLabel.Text.Replace("%d", daysInPrison.ToString()));
523524
}
524525
}
525526
}

Assets/Scripts/Game/UserInterfaceWindows/DaggerfallTalkWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public virtual void UpdateNameNPC()
387387
{
388388
if (labelNameNPC != null)
389389
{
390-
labelNameNPC.Text = TalkManager.Instance.NameNPC;
390+
labelNameNPC.Text = GrammarManager.grammarProcessor.ProcessGrammar(TalkManager.Instance.NameNPC+"{.Maj}");
391391
}
392392
}
393393

0 commit comments

Comments
 (0)