예제 #1
0
        public CEqualizer(SThemeEqualizer theme, int partyModeID)
        {
            _PartyModeID = partyModeID;
            _Theme       = theme;

            ThemeLoaded = true;
        }
예제 #2
0
        public CEqualizer(CEqualizer equalizer)
        {
            _PartyModeID = equalizer._PartyModeID;
            _Theme       = new SThemeEqualizer
            {
                Style        = equalizer._Theme.Style,
                DrawNegative = equalizer._Theme.DrawNegative,
            };

            _Bars   = new float[equalizer._Theme.NumBars];
            Space   = equalizer._Theme.Space;
            MaxRect = equalizer.MaxRect;

            Reflection = equalizer._Theme.Reflection.HasValue;
            if (Reflection)
            {
                Debug.Assert(equalizer._Theme.Reflection != null);
                ReflectionHeight = equalizer._Theme.Reflection.Value.Height;
                ReflectionSpace  = equalizer._Theme.Reflection.Value.Space;
            }

            Color    = equalizer.Color;
            MaxColor = equalizer.MaxColor;

            Reflection       = equalizer.Reflection;
            ReflectionSpace  = equalizer.ReflectionSpace;
            ReflectionHeight = equalizer.ReflectionHeight;
        }
예제 #3
0
        public CEqualizer(int partyModeID)
        {
            _PartyModeID = partyModeID;
            _Theme       = new SThemeEqualizer();
            ThemeLoaded  = false;

            Color    = new SColorF();
            MaxColor = new SColorF();

            Reflection       = false;
            ReflectionSpace  = 0f;
            ReflectionHeight = 0f;
        }