Example #1
0
        public bool Equals(RunningScript other)
        {
            if (other == null)
            {
                return(false);
            }

            return(NextScriptPointer.Equals(other.NextScriptPointer) &&
                   PrevScriptPointer.Equals(other.PrevScriptPointer) &&
                   Id.Equals(other.Id) &&
                   Field10h.Equals(other.Field10h) &&
                   InstructionPointer.Equals(other.InstructionPointer) &&
                   Stack.SequenceEqual(other.Stack) &&
                   StackPointer.Equals(other.StackPointer) &&
                   Locals.SequenceEqual(other.Locals) &&
                   TimerA.Equals(other.TimerA) &&
                   TimerB.Equals(other.TimerB) &&
                   Field1FCh.Equals(other.Field1FCh) &&
                   WakeTime.Equals(other.WakeTime) &&
                   Field204h.Equals(other.Field204h) &&
                   Field208h.Equals(other.Field208h) &&
                   Field20Ch.Equals(other.Field20Ch) &&
                   Field20Dh.Equals(other.Field20Dh) &&
                   Field20Eh.Equals(other.Field20Eh) &&
                   Name.Equals(other.Name) &&
                   Field217h.Equals(other.Field217h));
        }
Example #2
0
        public bool Equals(RunningScript other)
        {
            if (other == null)
            {
                return(false);
            }

            return(NextScriptPointer.Equals(other.NextScriptPointer) &&
                   PrevScriptPointer.Equals(other.PrevScriptPointer) &&
                   Name.Equals(other.Name) &&
                   InstructionPointer.Equals(other.InstructionPointer) &&
                   Stack.SequenceEqual(other.Stack) &&
                   StackPointer.Equals(other.StackPointer) &&
                   Locals.SequenceEqual(other.Locals) &&
                   TimerA.Equals(other.TimerA) &&
                   TimerB.Equals(other.TimerB) &&
                   ConditionResult.Equals(other.ConditionResult) &&
                   IsMissionScript.Equals(other.IsMissionScript) &&
                   ClearMessages.Equals(other.ClearMessages) &&
                   WakeTime.Equals(other.WakeTime) &&
                   AndOrState.Equals(other.AndOrState) &&
                   NotFlag.Equals(other.NotFlag) &&
                   WastedBustedCheckEnabled.Equals(other.WastedBustedCheckEnabled) &&
                   WastedBustedCheckResult.Equals(other.WastedBustedCheckResult) &&
                   MissionFlag.Equals(other.MissionFlag));
        }
Example #3
0
        private void TimerB_Tick(object sender, EventArgs e)
        {
            if (g <= 65)
            {
                b += 1;
                ExitBtn.ForeColor  = Color.FromArgb(r, g, b);
                MinBtn.ForeColor   = Color.FromArgb(r, g, b);
                NavPanel.BackColor = Color.FromArgb(r, g, b);
                if (b >= 244)
                {
                    TimerB.Stop();
                    TimerR.Start();
                }
            }

            if (g >= 244)
            {
                b -= 1;
                ExitBtn.ForeColor  = Color.FromArgb(r, g, b);
                MinBtn.ForeColor   = Color.FromArgb(r, g, b);
                NavPanel.BackColor = Color.FromArgb(r, g, b);
                if (b <= 64)
                {
                    TimerB.Stop();
                    TimerR.Start();
                }
            }
        }
Example #4
0
        private void TimerG_Tick(object sender, EventArgs e)
        {
            if (r <= 65)
            {
                g += 1;
                ExitBtn.ForeColor      = Color.FromArgb(r, g, b);
                RainbowLabel.ForeColor = Color.FromArgb(r, g, b);
                if (g >= 244)
                {
                    TimerG.Stop();
                    TimerB.Start();
                }
            }

            if (r >= 244)
            {
                g -= 1;
                ExitBtn.ForeColor      = Color.FromArgb(r, g, b);
                RainbowLabel.ForeColor = Color.FromArgb(r, g, b);
                if (g <= 65)
                {
                    TimerG.Stop();
                    TimerB.Start();
                }
            }
        }
Example #5
0
 private void tilesetB_ValueChanged(object sender, EventArgs e)
 {
     if (Program.ChangingStory || this.changingScreen)
     {
         return;
     }
     TimerB.Stop();
     TimerB.Start();
 }