Ejemplo n.º 1
0
        private void _Draw(bool force)
        {
            if (!force && !Visible && CBase.Settings.GetProgramState() != EProgramState.EditTheme)
            {
                return;
            }

            // Update Text
            Text = Text;

            SColorF currentColor = (Selected) ? SelColor : Color;
            var     color        = new SColorF(currentColor.R, currentColor.G, currentColor.B, currentColor.A * Alpha);

            CBase.Fonts.DrawText(_Text, CalculatedFont, Rect.X, Rect.Y, Z, color);

            if (_ReflectionHeight > 0)
            {
                CBase.Fonts.DrawTextReflection(_Text, CalculatedFont, Rect.X, Rect.Y, Z, color, _ReflectionSpace, _ReflectionHeight);
            }

            if (Selected && (CBase.Settings.GetProgramState() == EProgramState.EditTheme))
            {
                CBase.Drawing.DrawRect(new SColorF(0.5f, 1f, 0.5f, 0.5f), new SRectF(Rect.X, Rect.Y, Rect.W, Rect.H, Z));
            }
        }
Ejemplo n.º 2
0
        public CText(float x, float y, float z, float h, float mw, EAlignment align, EStyle style, string fontFamily, SColorF col, string text, int partyModeID = -1,
                     float rheight = 0,
                     float rspace  = 0) : this(partyModeID)
        {
            _Theme = new SThemeText {
                FontFamily = fontFamily, FontStyle = style, FontHeight = h, Text = text, Color = { A = col.A, B = col.B, G = col.G, R = col.R }
            };
            ThemeLoaded = false;
            _ButtonText = false;

            MaxRect      = new SRectF(x, y, mw, h, z);
            Align        = align;
            ResizeAlign  = EHAlignment.Center;
            _Font.Name   = fontFamily;
            _Font.Style  = style;
            _Font.Height = h;

            Color    = col;
            SelColor = col;

            Text = text;

            Selected = false;

            _ReflectionSpace  = rspace;
            _ReflectionHeight = rheight;
        }
Ejemplo n.º 3
0
        public CFontStyle(string file, EStyle style, float outline, SColorF outlineColor)
        {
            _FilePath    = file;
            _Style       = style;
            Outline      = outline;
            OutlineColor = outlineColor;

            switch (CConfig.Config.Graphics.TextureQuality)
            {
            case ETextureQuality.TR_CONFIG_TEXTURE_LOWEST:
                _MaxGlyphHeight = 20f;
                break;

            case ETextureQuality.TR_CONFIG_TEXTURE_LOW:
                _MaxGlyphHeight = 40f;
                break;

            case ETextureQuality.TR_CONFIG_TEXTURE_MEDIUM:
                _MaxGlyphHeight = 60f;
                break;

            case ETextureQuality.TR_CONFIG_TEXTURE_HIGH:
                _MaxGlyphHeight = 80f;
                break;

            case ETextureQuality.TR_CONFIG_TEXTURE_HIGHEST:
                _MaxGlyphHeight = 100f;
                break;

            default:
                _MaxGlyphHeight = 60f;
                break;
            }
        }
Ejemplo n.º 4
0
        private void _DrawNote(SRectF rect, SColorF color, float factor)
        {
            if (factor <= 0)
            {
                return;
            }

            float dh = (1f - factor) * rect.H / 2;
            float dw = Math.Min(dh, rect.W / 2);

            var noteRect = new SRectF(rect.X + dw, rect.Y + dh, rect.W - 2 * dw, rect.H - 2 * dh, rect.Z);

            CTextureRef noteBegin  = CBase.Themes.GetSkinTexture(_Theme.SkinLeft, _PartyModeID);
            CTextureRef noteMiddle = CBase.Themes.GetSkinTexture(_Theme.SkinMiddle, _PartyModeID);
            CTextureRef noteEnd    = CBase.Themes.GetSkinTexture(_Theme.SkinRight, _PartyModeID);

            //Width of each of the ends (round parts)
            //Need 2 of them so use minimum
            float endsW = Math.Min(noteRect.H * noteBegin.OrigAspect, noteRect.W / 2);

            CBase.Drawing.DrawTexture(noteBegin, new SRectF(noteRect.X, noteRect.Y, endsW, noteRect.H, noteRect.Z), color);

            var middleRect = new SRectF(noteRect.X + endsW, noteRect.Y, noteRect.W - 2 * endsW, noteRect.H, noteRect.Z);

            if (noteRect.W >= 4 * endsW)
            {
                CBase.Drawing.DrawTexture(noteMiddle, middleRect, color);
            }
            else
            {
                CBase.Drawing.DrawTexture(noteMiddle, new SRectF(middleRect.X, middleRect.Y, 2 * endsW, middleRect.H, middleRect.Z), color, middleRect);
            }

            CBase.Drawing.DrawTexture(noteEnd, new SRectF(noteRect.X + noteRect.W - endsW, noteRect.Y, endsW, noteRect.H, noteRect.Z), color);
        }
Ejemplo n.º 5
0
        private void _DrawNormalNote(CSongNote note, SColorF color)
        {
            SRectF rect = _GetNoteRect(note);

            _DrawNoteBG(rect, color);
            _DrawNoteBase(rect, new SColorF(_NoteBaseColor, _NoteBaseColor.A * Alpha), 1f);
        }
Ejemplo n.º 6
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;
        }
Ejemplo n.º 7
0
        public CProgressBar(CProgressBar pb)
        {
            _PartyModeID = pb._PartyModeID;

            _TextureBackground    = pb.TextureBackground;
            _TextureForeground    = pb.TextureForeground;
            _TextureProgressLeft  = pb.TextureProgressLeft;
            _TextureProgressMid   = pb._TextureProgressMid;
            _TextureProgressRight = pb._TextureProgressRight;
            _AnimateMovement      = pb._AnimateMovement;
            _AnimateColoring      = pb._AnimateColoring;
            _Direction            = pb._Direction;
            _ProgressColors       = pb._ProgressColors;

            ColorBackground = pb.ColorBackground;
            ColorForeground = pb.ColorForeground;

            MaxRect          = pb.MaxRect;
            Reflection       = pb.Reflection;
            ReflectionSpace  = pb.ReflectionHeight;
            ReflectionHeight = pb.ReflectionSpace;

            AllMonitors = pb.AllMonitors;

            Alpha   = pb.Alpha;
            Visible = pb.Visible;

            _AnimTimer = new Stopwatch();
        }
Ejemplo n.º 8
0
        public CButton(CButton button)
        {
            _PartyModeID = button._PartyModeID;
            _Theme       = new SThemeButton
            {
                Skin         = button._Theme.Skin,
                SkinSelected = button._Theme.SkinSelected
            };

            MaxRect    = button.MaxRect;
            Color      = button.Color;
            SelColor   = button.SelColor;
            Texture    = button.Texture;
            SelTexture = button.SelTexture;

            Text        = new CText(button.Text);
            _SelText    = _SelText == null ? null : new CText(button._SelText);
            Selected    = false;
            EditMode    = false;
            _Selectable = button._Selectable;

            _Reflection       = button._Reflection;
            _ReflectionHeight = button._ReflectionHeight;
            _ReflectionSpace  = button._ReflectionSpace;

            _SelReflection       = button._SelReflection;
            _SelReflectionHeight = button._SelReflectionHeight;
            _SelReflectionSpace  = button._SelReflectionSpace;
        }
Ejemplo n.º 9
0
        public CText(float x, float y, float z, float h, float mw, EAlignment align, EStyle style, string font, SColorF col, string text)
        {
            _Theme       = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText  = false;

            X        = x;
            Y        = y;
            Z        = z;
            Height   = h;
            MaxWidth = mw;
            Align    = align;
            Style    = style;
            Fon      = font;

            Color  = col;
            SColor = new SColorF(col);

            Text = text;

            Selected = false;

            if (MaxWidth > 0)
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, MaxWidth, 3f * CSettings.iRenderH, 0f);
            }
            else
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, 3f * CSettings.iRenderW, 3f * CSettings.iRenderH, 0f);
            }

            Reflection = false;
        }
Ejemplo n.º 10
0
 public CStatic(int partyModeID, string textureSkinName, SColorF color, SRectF rect)
 {
     _PartyModeID = partyModeID;
     _Theme.Skin  = textureSkinName;
     Color        = color;
     MaxRect      = rect;
 }
Ejemplo n.º 11
0
        public CSelectSlide()
        {
            _Theme       = new SThemeSelectSlide();
            _ThemeLoaded = false;

            Rect           = new SRectF();
            RectArrowLeft  = new SRectF();
            RectArrowRight = new SRectF();

            Color  = new SColorF();
            SColor = new SColorF();

            ColorArrow  = new SColorF();
            SColorArrow = new SColorF();

            TextColor  = new SColorF();
            STextColor = new SColorF();
            TextH      = 1f;
            MaxW       = 0f;

            _Selected     = false;
            _Textures     = new List <STexture>();
            _ValueIndexes = new List <int>();
            _ValueNames   = new List <string>();
        }
Ejemplo n.º 12
0
        public CText(float x, float y, float z, EAlignment align, float h, float mw, float r, float g, float b, float a, EStyle style, string font, string text, float rspace, float rheight)
        {
            _Theme       = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText  = false;

            X        = x;
            Y        = y;
            Z        = z;
            Height   = h;
            MaxWidth = mw;
            Align    = align;
            Style    = style;
            Fon      = font;

            Color  = new SColorF(r, g, b, a);
            SColor = new SColorF(r, g, b, a);

            Text = text;

            Selected = false;

            if (MaxWidth > 0)
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, MaxWidth, 3f * CSettings.iRenderH, 0f);
            }
            else
            {
                Bounds = new SRectF(-CSettings.iRenderW, -CSettings.iRenderH, 3f * CSettings.iRenderW, 3f * CSettings.iRenderH, 0f);
            }

            Reflection       = true;
            ReflectionSpace  = rspace;
            ReflectionHeight = rheight;
        }
Ejemplo n.º 13
0
        public CNoteBars(int partyModeID, int player, SRectF rect, SThemeSingBar theme)
        {
            _Player      = player;
            _Theme       = theme;
            _PartyModeID = partyModeID;
            Rect         = rect;

            _Color = CBase.Themes.GetPlayerColor(player + 1);

            if (!CBase.Themes.GetColor("NoteLinesColor", _PartyModeID, out _NoteLinesColor))
            {
                _NoteLinesColor = new SColorF(Color.Gray, 0.5f);
            }

            if (!CBase.Themes.GetColor("NoteBaseColor", _PartyModeID, out _NoteBaseColor))
            {
                _NoteBaseColor = new SColorF(Color.White);
            }

            SPlayer playerData = CBase.Game.GetPlayers()[player];

            _Lines = CBase.Game.GetSong().Notes.GetVoice(playerData.VoiceNr).Lines;

            _SemiToneRange = ((CBase.Settings.GetNumNoteLines()) * 2) - 1;

            _SongBaseLine = SetSongBaseLine();

            _NumNoteLines   = (_SemiToneRange + 1) / 2;
            _ToneHeight     = Rect.H / _NumNoteLines;
            _SemiToneHeight = _ToneHeight / 2;
            _NoteWidth      = _ToneHeight * 2f;
            _AddNoteHeight  = _ToneHeight / 2f * (2f - (int)CBase.Profiles.GetDifficulty(playerData.ProfileID));
        }
Ejemplo n.º 14
0
        private void _DrawNote(SRectF rect, SColorF color, CTextureRef noteBegin, CTextureRef noteMiddle, CTextureRef noteEnd, float factor)
        {
            if (factor <= 0 || rect.X > Rect.X + Rect.W || rect.X + rect.W < Rect.X)
            {
                return;
            }

            //Width-related variables rounded and then floored to prevent 1px gaps in notes
            rect.X = (float)Math.Round(rect.X);
            rect.W = (float)Math.Round(rect.W);

            int dh = (int)((1f - factor) * rect.H / 2);
            int dw = (int)Math.Min(dh, rect.W / 2);

            var noteRect     = new SRectF(rect.X + dw, rect.Y + dh, rect.W - 2 * dw, rect.H - 2 * dh, rect.Z);
            var noteBoundary = noteRect;

            if (noteBoundary.X < Rect.X)
            {
                noteBoundary.X  = Rect.X;
                noteBoundary.W -= Rect.X - noteBoundary.X;
            }
            if (noteBoundary.X + noteBoundary.W > Rect.X + Rect.W)
            {
                noteBoundary.W -= (noteBoundary.X + noteBoundary.W) - (Rect.X + Rect.W);
            }

            //Width of each of the ends (round parts)
            //Need 2 of them so use minimum
            int endsW = (int)Math.Min(noteRect.H * noteBegin.OrigAspect, noteRect.W / 2);

            CBase.Drawing.DrawTexture(noteBegin, new SRectF(noteRect.X, noteRect.Y, endsW, noteRect.H, noteRect.Z), color, noteBoundary, false, false);

            SRectF middleRect = new SRectF(noteRect.X + endsW, noteRect.Y, noteRect.W - 2 * endsW, noteRect.H, noteRect.Z);

            int midW = (int)Math.Round(noteRect.H * noteMiddle.OrigAspect);

            int midCount = (int)middleRect.W / midW;

            for (int i = 0; i < midCount; ++i)
            {
                CBase.Drawing.DrawTexture(noteMiddle, new SRectF(middleRect.X + (i * midW), noteRect.Y, midW, noteRect.H, noteRect.Z), color, noteBoundary, false, false);
            }

            SRectF lastMidRect = new SRectF(middleRect.X + midCount * midW, noteRect.Y, middleRect.W - (midCount * midW), noteRect.H, noteRect.Z);

            if (lastMidRect.X + lastMidRect.W > Rect.X + Rect.W)
            {
                lastMidRect.W -= (lastMidRect.X + lastMidRect.W) - (Rect.X + Rect.W);
            }
            else if (lastMidRect.X < Rect.X)
            {
                lastMidRect.X  = Rect.X;
                lastMidRect.W -= Rect.X - lastMidRect.X;
            }

            CBase.Drawing.DrawTexture(noteMiddle, new SRectF(middleRect.X + (midCount * midW), middleRect.Y, midW, middleRect.H, middleRect.Z), color, lastMidRect, false, false);

            CBase.Drawing.DrawTexture(noteEnd, new SRectF(noteRect.X + noteRect.W - endsW, noteRect.Y, endsW, noteRect.H, noteRect.Z), color, noteBoundary, false, false);
        }
Ejemplo n.º 15
0
        public CSelectSlide(CSelectSlide slide)
        {
            _PartyModeID = slide._PartyModeID;
            _Theme       = slide._Theme;

            ThemeLoaded = false;

            MaxRect        = slide.MaxRect;
            RectArrowLeft  = slide.RectArrowLeft;
            RectArrowRight = slide.RectArrowRight;

            _Color    = slide._Color;
            _SelColor = slide._SelColor;

            _ColorArrow    = slide._ColorArrow;
            _SelColorArrow = slide._SelColorArrow;

            _TextColor     = slide._TextColor;
            _SelTextColor  = slide._SelTextColor;
            _TextH         = slide._TextH;
            _TextRelativeX = slide._TextRelativeX;
            _TextRelativeY = slide._TextRelativeY;
            _MaxW          = slide._MaxW;

            _Values.AddRange(slide._Values);
            _Selection  = slide._Selection;
            _NumVisible = slide._NumVisible;

            DrawTextures = slide.DrawTextures;
            Visible      = slide.Visible;
        }
Ejemplo n.º 16
0
        private void _DrawNotes(SColorF color)
        {
            for (int i = 0; i < _Lines.Count(); i++)
            {
                foreach (CSongNote note in _Lines[i].Notes)
                {
                    switch (note.Type)
                    {
                    case ENoteType.Normal:
                        _DrawNormalNote(note, color);
                        break;

                    case ENoteType.Golden:
                        _DrawGoldenNote(note, color);
                        break;

                    case ENoteType.Freestyle:
                        _DrawFreeStyleNote(note, color);
                        break;

                    default:
                        break;
                    }
                }
            }
        }
Ejemplo n.º 17
0
        public void Draw()
        {
            if (_Bars == null || _Theme.Style != EEqualizerStyle.Columns)
            {
                return;
            }

            float dx       = Rect.W / _Bars.Length;
            float scaleVal = (_Bars[_MaxBar] < 0.00001f) ? 0f : 1 / _Bars[_MaxBar];

            for (int i = 0; i < _Bars.Length; i++)
            {
                float   value = _Bars[i] * scaleVal;
                var     bar   = new SRectF(Rect.X + dx * i, Rect.Y + Rect.H - value * Rect.H, dx - Space, value * Rect.H, Rect.Z);
                SColorF color = Color;
                if (i == _MaxBar)
                {
                    color = MaxColor;
                }

                CBase.Drawing.DrawRect(color, bar);

                if (Reflection)
                {
                    CBase.Drawing.DrawRectReflection(color, bar, ReflectionSpace, ReflectionHeight);
                }
            }
        }
Ejemplo n.º 18
0
        private CParticleEffect _GetStarParticles(int numStars, bool isRed, SRectF rect, bool bigParticles)
        {
            SColorF partColor = isRed ? new SColorF(1, 0, 0, 1) : new SColorF(0.149f, 0.415f, 0.819f, 1);
            int     partSize  = bigParticles ? 35 : 25;

            return(GetNewParticleEffect(numStars, partColor, rect, _TexPerfectNoteStar, partSize, EParticleType.Star));
        }
Ejemplo n.º 19
0
        public CBackground()
        {
            _ThemeLoaded = false;
            _Theme       = new SThemeBackground();

            Color = new SColorF(0f, 0f, 0f, 1f);
        }
Ejemplo n.º 20
0
 public void LoadTextures()
 {
     if (_Theme.ColorName != String.Empty)
     {
         Color = CTheme.GetColor(_Theme.ColorName);
     }
 }
Ejemplo n.º 21
0
        public CText(CText text)
        {
            _Theme       = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText  = false;

            X        = text._X;
            Y        = text._Y;
            Z        = text._Z;
            Height   = text._Height;
            MaxWidth = text._MaxWidth;
            Bounds   = new SRectF(text._Bounds);
            Align    = text._Align;
            HAlign   = text._HAlign;
            Style    = text._Style;
            Fon      = text._Fon;

            Color            = new SColorF(text.Color);
            SColor           = new SColorF(text.SColor);
            Reflection       = text.Reflection;
            ReflectionSpace  = text.ReflectionSpace;
            ReflectionHeight = text.ReflectionHeight;

            Text     = text._Text;
            Selected = text.Selected;
            Visible  = text.Visible;
            Alpha    = text.Alpha;

            EditMode = text.EditMode;
        }
Ejemplo n.º 22
0
        private static void LoadCursor(XPathNavigator navigator, int SkinIndex)
        {
            string value = String.Empty;

            CHelper.GetValueFromXML("//root/Cursor/Skin", navigator, ref Cursor.SkinName, value);

            CHelper.TryGetFloatValueFromXML("//root/Cursor/W", navigator, ref Cursor.w);
            CHelper.TryGetFloatValueFromXML("//root/Cursor/H", navigator, ref Cursor.h);

            if (CHelper.GetValueFromXML("//root/Cursor/Color", navigator, ref value, value))
            {
                SColorF color = GetColor(value);
                Cursor.r     = color.R;
                Cursor.g     = color.G;
                Cursor.b     = color.B;
                Cursor.a     = color.A;
                Cursor.color = value;
            }
            else
            {
                Cursor.color = String.Empty;
                CHelper.TryGetFloatValueFromXML("//root/Cursor/R", navigator, ref Cursor.r);
                CHelper.TryGetFloatValueFromXML("//root/Cursor/G", navigator, ref Cursor.g);
                CHelper.TryGetFloatValueFromXML("//root/Cursor/B", navigator, ref Cursor.b);
                CHelper.TryGetFloatValueFromXML("//root/Cursor/A", navigator, ref Cursor.a);
            }
        }
Ejemplo n.º 23
0
        public CText()
        {
            _Theme       = new SThemeText();
            _ThemeLoaded = false;
            _ButtonText  = false;

            X        = 0f;
            Y        = 0f;
            Z        = 0f;
            Height   = 1f;
            MaxWidth = 0f;
            Bounds   = new SRectF();
            Align    = EAlignment.Left;
            Style    = EStyle.Normal;
            Fon      = "Normal";

            Color            = new SColorF();
            SColor           = new SColorF();
            Reflection       = false;
            ReflectionSpace  = 0f;
            ReflectionHeight = 0f;

            Text     = String.Empty;
            Selected = false;
            Visible  = true;
            Alpha    = 1f;
        }
Ejemplo n.º 24
0
        public void Draw(EAspect aspect, float scale = 1f, float zModify = 0f, bool forceDraw = false)
        {
            CTextureRef texture = Texture;
            SRectF      bounds  = Rect.Scale(scale);

            bounds.Z += zModify;
            SRectF rect  = texture == null ? bounds : CHelper.FitInBounds(bounds, texture.OrigAspect, aspect);
            var    color = new SColorF(Color.R, Color.G, Color.B, Color.A * Alpha);

            if (Visible || forceDraw || (CBase.Settings.GetProgramState() == EProgramState.EditTheme))
            {
                if (texture != null)
                {
                    CBase.Drawing.DrawTexture(texture, rect, color, bounds);
                    if (Reflection)
                    {
                        CBase.Drawing.DrawTextureReflection(texture, rect, color, bounds, ReflectionSpace, ReflectionHeight);
                    }
                }
                else
                {
                    CBase.Drawing.DrawRect(color, rect);
                }
            }

            if (Selected && (CBase.Settings.GetProgramState() == EProgramState.EditTheme))
            {
                CBase.Drawing.DrawRect(new SColorF(1f, 1f, 1f, 0.5f), rect);
            }
        }
Ejemplo n.º 25
0
        private bool _DrawSlideShow()
        {
            if (_SlideShowTextures.Count > 0)
            {
                if (!_SlideShowTimer.IsRunning)
                {
                    _SlideShowTimer.Start();
                    _SlideShowCurrent = 0;
                }

                if (_SlideShowTimer.ElapsedMilliseconds >= (CBase.Settings.GetSlideShowFadeTime() + CBase.Settings.GetSlideShowImageTime()))
                {
                    _SlideShowTimer.Restart();
                    if (_SlideShowCurrent + 1 < _SlideShowTextures.Count)
                    {
                        _SlideShowCurrent++;
                    }
                    else
                    {
                        _SlideShowCurrent = 0;
                    }
                }

                CTextureRef texture = _SlideShowTextures[_SlideShowCurrent];

                if (texture == null)
                {
                    return(false);
                }

                CBase.Drawing.DrawTexture(texture, Rect, EAspect.Crop);

                if (_SlideShowTimer.ElapsedMilliseconds >= CBase.Settings.GetSlideShowImageTime())
                {
                    if (_SlideShowCurrent + 1 < _SlideShowTextures.Count)
                    {
                        texture = _SlideShowTextures[_SlideShowCurrent + 1];
                    }
                    else if (_SlideShowCurrent != 0)
                    {
                        texture = _SlideShowTextures[0];
                    }
                    else
                    {
                        texture = null;
                    }

                    if (texture != null)
                    {
                        SColorF color = texture.Color;
                        color.A = (_SlideShowTimer.ElapsedMilliseconds - CBase.Settings.GetSlideShowImageTime()) / CBase.Settings.GetSlideShowFadeTime();
                        CBase.Drawing.DrawTexture(texture, Rect, EAspect.Crop, color);
                    }
                }

                return(true);
            }
            return(false);
        }
Ejemplo n.º 26
0
 protected void DrawNoteLines(SRectF Rect, SColorF Color)
 {
     for (int i = 0; i < CSettings.NumNoteLines - 1; i++)
     {
         float y = Rect.Y + Rect.H / CSettings.NumNoteLines * (i + 1);
         CDraw.DrawColor(Color, new SRectF(Rect.X, y, Rect.W, 1, -0.5f));
     }
 }
Ejemplo n.º 27
0
        private void _DrawJudgeLine(SColorF color)
        {
            SRectF judgeRect = Rect;

            judgeRect.W = 2f;
            judgeRect.X = Rect.X + _JudgementLine;
            CBase.Drawing.DrawRect(color, judgeRect, false);
        }
Ejemplo n.º 28
0
        public CStatic(int partyModeID, CTextureRef texture, SColorF color, SRectF rect)
        {
            _PartyModeID = partyModeID;

            _Texture = texture;
            Color    = color;
            MaxRect  = rect;
        }
Ejemplo n.º 29
0
        private void _DrawNoteFill(SRectF rect, SColorF color, float factor)
        {
            CTextureRef noteBegin  = CBase.Themes.GetSkinTexture(_Theme.SkinFillLeft, _PartyModeID);
            CTextureRef noteMiddle = CBase.Themes.GetSkinTexture(_Theme.SkinFillMiddle, _PartyModeID);
            CTextureRef noteEnd    = CBase.Themes.GetSkinTexture(_Theme.SkinFillRight, _PartyModeID);

            _DrawNote(rect, color, noteBegin, noteMiddle, noteEnd, factor);
        }
Ejemplo n.º 30
0
 public override bool GetColor(string name, out SColorF color)
 {
     if (_Parent.Name == "Default" && !_Required.Colors.Contains(name))
     {
         CLog.Debug("Non-Default color: " + name);
     }
     return(base.GetColor(name, out color) || _BaseSkin.GetColor(name, out color));
 }