Ejemplo n.º 1
0
        public frmPalette(PaletteLoader p, Form1 f, int tileset, int pal, Program.GameTypes game)
        {
            g       = game;
            pLoader = p;
            form1   = f; //To call the LoadTileset method

            InitializeComponent();
            nTileset.Enabled = nPalette.Enabled = false;

            nTileset.Value = tileset;
            nPalette.Value = pal;
            pLoader        = new PaletteLoader(f.gb);

            palette = pLoader.LoadPalette((int)nPalette.Value, g);
            drawPalette();
            pTileset.Image = f.loadTileset(tileset);
        }
Ejemplo n.º 2
0
 private void nPalette_ValueChanged(object sender, EventArgs e)
 {
     palette = pLoader.LoadPalette((int)nPalette.Value, g);
     drawPalette();
     pTileset.Image = form1.loadTileset((int)nTileset.Value, palette);
 }