Beispiel #1
0
        public override bool HandleImport(CharsetScreenProject CharScreen, CharsetScreenEditor Editor)
        {
            switch (comboImportFromDefault.SelectedIndex)
            {
            case 0:
                for (int i = 0; i < 256; ++i)
                {
                    for (int j = 0; j < 8; ++j)
                    {
                        CharScreen.CharSet.Characters[i].Tile.Data.SetU8At(j, ConstantData.UpperCaseCharsetC64.ByteAt(i * 8 + j));
                    }
                    CharScreen.CharSet.Characters[i].Tile.CustomColor = 1;
                }
                Editor.CharsetChanged();
                return(true);

            case 1:
                for (int i = 0; i < 256; ++i)
                {
                    for (int j = 0; j < 8; ++j)
                    {
                        CharScreen.CharSet.Characters[i].Tile.Data.SetU8At(j, ConstantData.LowerCaseCharsetC64.ByteAt(i * 8 + j));
                    }
                    CharScreen.CharSet.Characters[i].Tile.CustomColor = 1;
                }
                Editor.CharsetChanged();
                return(true);

            case 2:
                for (int i = 0; i < 256; ++i)
                {
                    for (int j = 0; j < 8; ++j)
                    {
                        CharScreen.CharSet.Characters[i].Tile.Data.SetU8At(j, ConstantData.UpperCaseCharsetViC20.ByteAt(i * 8 + j));
                    }
                    CharScreen.CharSet.Characters[i].Tile.CustomColor = 1;
                }
                Editor.CharsetChanged();
                return(true);

            case 3:
                for (int i = 0; i < 256; ++i)
                {
                    for (int j = 0; j < 8; ++j)
                    {
                        CharScreen.CharSet.Characters[i].Tile.Data.SetU8At(j, ConstantData.LowerCaseCharsetViC20.ByteAt(i * 8 + j));
                    }
                    CharScreen.CharSet.Characters[i].Tile.CustomColor = 1;
                }
                Editor.CharsetChanged();
                return(true);
            }
            return(false);
        }
Beispiel #2
0
 public override void Apply()
 {
     foreach (var singleChar in CharsetData)
     {
         singleChar.Tile.Data.CopyTo(Project.CharSet.Characters[singleChar.Index].Tile.Data);
         Project.CharSet.Characters[singleChar.Index].Tile.CustomColor = singleChar.Tile.CustomColor;
         Project.CharSet.Characters[singleChar.Index].Category         = singleChar.Category;
     }
     Editor.CharsetChanged();
     Editor.SetModified();
 }
Beispiel #3
0
        public override void Apply()
        {
            Project.CharSet.Colors.BackgroundColor = BackgroundColor;
            Project.Mode = Mode;
            Project.CharSet.Colors.MultiColor1 = Multicolor1;
            Project.CharSet.Colors.MultiColor2 = Multicolor2;
            Project.CharSet.Colors.BGColor4    = BGColor4;
            Project.CharOffset = CharOffset;

            Editor.ValuesChanged();
            Editor.CharsetChanged();
            Editor.SetModified();
        }