Ejemplo n.º 1
0
        public override void Render()
        {
            /* Proposed colors:
             * blue - full run PB (impossible)
             * silver - chapter PB (feasible)
             * gold - room PB (done)
             */

            // Gold is the easiest: Find fastest active ghost.
            if (GhostModule.ModuleSettings.HighlightFastestGhost)
            {
                Ghost fastest = null;
                foreach (Ghost ghost in Ghosts)
                {
                    // While we're at it, reset all colors.
                    ghost.Color = ColorNeutral;

                    if (!ghost.Frame.Data.IsValid)
                    {
                        continue;
                    }

                    if (fastest == null || ghost.Data.Frames.Count < fastest.Data.Frames.Count)
                    {
                        fastest = ghost;
                    }
                }

                if (fastest != null)
                {
                    fastest.Color = ColorGold;
                }
            }

            base.Render();
        }