TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ Update()

override void Terraria.ModLoader.UI.UIForcedDelayInfoMessage.Update ( GameTime gameTime)
inlinevirtual

Reimplemented from Terraria.UI.UIElement.

Definition at line 58 of file UIForcedDelayInfoMessage.cs.

59 {
60 base.Update(gameTime);
61 if (timeLeft > 0)
62 {
63 timeLeft--;
64 waitPanel.SetText(Language.GetTextValue("tModLoader.WaitXSeconds", timeLeft / 60 + 1));
65 if (timeLeft == 0)
66 {
67 _area.AddOrRemoveChild(waitPanel, add: false);
68 _area.AddOrRemoveChild(_button, add: true);
69 }
70 }
71 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12

References Terraria.ModLoader.UI.UIInfoMessage._area, Terraria.ModLoader.UI.UIInfoMessage._button, Terraria.Localization.Language.GetTextValue(), Terraria.GameContent.UI.Elements.UITextPanel< T >.SetText(), Terraria.ModLoader.UI.UIForcedDelayInfoMessage.timeLeft, and Terraria.ModLoader.UI.UIForcedDelayInfoMessage.waitPanel.

+ Here is the call graph for this function: