Exemplo n.º 1
0
        private void btnInversePalette_Click(object sender, EventArgs e)
        {
            inversePalette = !inversePalette;
            this.palette   = NFTR.CalculatePalette(this.font.plgc.depth, inversePalette);

            // Update
            picFont.Image = NFTR.Get_Chars(font, MAX_WIDTH, palette, ZOOM);
            txtBox_TextChanged(txtBox, null);
        }
Exemplo n.º 2
0
        public FontControl(IPluginHost pluginHost, sNFTR font)
        {
            InitializeComponent();

            this.pluginHost = pluginHost;
            this.font       = font;
            ReadLanguage();
            this.palette = NFTR.CalculatePalette(font.plgc.depth, inversePalette);
            for (int i = 0; i < font.plgc.tiles.Length; i++)
            {
                comboChar.Items.Add("Char " + i.ToString());
            }

            picFont.Image = NFTR.Get_Chars(font, MAX_WIDTH, palette, ZOOM);

            Fill_CharTile();

            comboChar.SelectedIndex     = 0;
            comboEncoding.SelectedIndex = font.fnif.encoding;
        }