felipesmoke94 Posted April 5, 2020 Share Posted April 5, 2020 if (Globals.Me.PvpStatusEnabled) { if (pvpStatusStartTimer == null) { pvpStatusStartTimer = new Stopwatch(); } if (!pvpStatusStartTimer.IsRunning) { pvpStatusStartTimer.Start(); } if (pvpStatusStartTimer.ElapsedMilliseconds < remainingPvpStatusTimeMs) { TimeSpan remainingTime = new TimeSpan(0, 0, 0, 0, remainingPvpStatusTimeMs); TimeSpan time = remainingTime.Subtract(pvpStatusStartTimer.Elapsed); inputBoxMessage = new InputBox(Strings.Pvp.pvpStatusStartTitle, string.Format(Strings.Pvp.pvpStatusStartMessage, time.ToString(@"mm\:ss")), true, InputBox.InputType.OkayOnly, null, null, null); //message.RewriteText(string.Format(Strings.Pvp.pvpStatusStartMessage, remainingTime.Subtract(pvpStatusStartTimer.Elapsed).ToString(@"mm\:ss"))); return; } else { pvpStatusStartTimer.Reset(); inputBoxMessage = null; } } Guys I'm trying to make a countdown appear on the screen, can someone help me with this? Link to comment Share on other sites More sharing options...
Question
felipesmoke94
Guys I'm trying to make a countdown appear on the screen, can someone help me with this?
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now