Beispiel #1
0
            public void UpdateSettings(TextureSettingsBase settings)
            {
                _settings = (GCNTextureSettings)settings;

                FormatCombobox.Bind(typeof(Decode_Gamecube.TextureFormats), settings, _settings.GCNFormat);
                PaletteFormatCombobox.Bind(typeof(Decode_Gamecube.PaletteFormats), settings, _settings.GCNPaletteFormat);
                MipCount.Value = _settings.MipCount;

                FormatCombobox.SelectedValue        = _settings.GCNFormat;
                PaletteFormatCombobox.SelectedValue = _settings.GCNPaletteFormat;
            }
        private void listViewCustom1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listViewCustom1.SelectedIndices.Count == 0)
            {
                return;
            }

            int index = listViewCustom1.SelectedIndices[0];

            ActiveSetting = Settings[index];

            UpdateSettingsDisplay();
            UpdateImage(ActiveSetting);
        }
 public void UpdateSettings(TextureSettingsBase settings)
 {
 }
        private void UpdateImage(TextureSettingsBase settings)
        {
            var image = settings.GetDecodedImage();

            pictureBoxCustom1.Image = image;
        }