Jump to content
  • 0

regressive counter


felipesmoke94

Question

 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

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...