예제 #1
0
        public Config(OldConfig oldConfig)
        {
            Version        = 2;
            TweakVersion   = "0.0.0";
            SilenceUpdates = false;

            ConfigX       = oldConfig.ConfigX;
            ConfigY       = oldConfig.ConfigY;
            ConfigKeyBind = new KeyBind {
                Key   = KeyCode.F6,
                Ctrl  = true,
                Alt   = false,
                Shift = true
            };

            Enabled        = oldConfig.Enabled;
            EnabledKeyBind = new KeyBind {
                Key   = KeyCode.F6,
                Ctrl  = false,
                Alt   = false,
                Shift = false
            };

            FC          = oldConfig.FC;
            NotesMissed = oldConfig.NotesMissed;
            FailDelay   = oldConfig.FailDelay;

            DisplayImage = new ColorablePositionableLabel {
                Visible   = oldConfig.DisplayImage,
                X         = (int)oldConfig.DisplayImageX,
                Y         = (int)oldConfig.DisplayImageY,
                Size      = oldConfig.DisplayImageScale,
                Bold      = oldConfig.DisplayImageBold,
                Italic    = oldConfig.DisplayImageItalic,
                Alignment = TextAnchor.MiddleLeft,
                Color     = new ColorARGB(oldConfig.DisplayImageColorARGB)
            };

            RemainingNotesLeft = new ColorablePositionableLabel {
                Visible   = oldConfig.RemainingNotesLeft,
                X         = (int)oldConfig.RemainingNotesLeftX,
                Y         = (int)oldConfig.RemainingNotesLeftY,
                Size      = oldConfig.RemainingNotesLeftScale,
                Bold      = oldConfig.RemainingNotesLeftBold,
                Italic    = oldConfig.RemainingNotesLeftItalic,
                Alignment = TextAnchor.MiddleLeft,
                Color     = new ColorARGB(oldConfig.RemainingNotesLeftColorARGB)
            };

            RestartIndicator = new ColorablePositionableLabel {
                Visible   = true,
                X         = Screen.width / 2,
                Y         = (int)(1360.0f * Screen.height / 1440.0f),
                Size      = Screen.height * 50 / 1440,
                Bold      = true,
                Italic    = false,
                Alignment = TextAnchor.MiddleCenter,
                Color     = new ColorARGB(Color.white)
            };
        }
예제 #2
0
        public OldConfig()
        {
            ConfigX     = 200.0f;
            ConfigY     = 200.0f;
            Enabled     = false;
            FC          = true;
            NotesMissed = 0;
            FailDelay   = 2.0f;

            DisplayImage          = true;
            DisplayImageX         = 30.0f;
            DisplayImageY         = Screen.height - 80.0f;
            DisplayImageBold      = true;
            DisplayImageItalic    = false;
            DisplayImageColorARGB = OldConfig.ColorToARGB(Color.white);
            DisplayImageScale     = 50;

            RemainingNotesLeft          = true;
            RemainingNotesLeftX         = 30.0f;
            RemainingNotesLeftY         = Screen.height - 130.0f;
            RemainingNotesLeftBold      = false;
            RemainingNotesLeftItalic    = true;
            RemainingNotesLeftColorARGB = OldConfig.ColorToARGB(Color.white);
            RemainingNotesLeftScale     = 40;
        }