public void Set_Map(MapBase new_map) { this.map = new_map.Map; this.width = new_map.Width; this.height = new_map.Height; startByte = 0; loaded = true; // Get the original byte data List <Byte> data = new List <byte>(); for (int i = 0; i < map.Length; i++) { data.AddRange(BitConverter.GetBytes(Actions.MapInfo(map[i]))); } original = data.ToArray(); }
public ImageControl(IPluginHost pluginHost, ImageBase image, PaletteBase palette, MapBase map) { InitializeComponent(); this.pluginHost = pluginHost; this.isMap = true; this.palette = palette; this.image = image; this.map = map; Update_Info(); this.comboDepth.SelectedIndexChanged += new EventHandler(comboDepth_SelectedIndexChanged); this.numericWidth.ValueChanged += new EventHandler(numericSize_ValueChanged); this.numericHeight.ValueChanged += new EventHandler(numericSize_ValueChanged); this.numericStart.ValueChanged += new EventHandler(numericStart_ValueChanged); ReadLanguage(); Update_Image(); }
public ImageControl(IPluginHost pluginHost, bool isMap) { InitializeComponent(); this.pluginHost = pluginHost; this.isMap = isMap; this.palette = pluginHost.Get_Palette(); this.image = pluginHost.Get_Image(); if (isMap) this.map = pluginHost.Get_Map(); Update_Info(); this.comboDepth.SelectedIndexChanged += new EventHandler(comboDepth_SelectedIndexChanged); this.numericWidth.ValueChanged += new EventHandler(numericSize_ValueChanged); this.numericHeight.ValueChanged += new EventHandler(numericSize_ValueChanged); this.numericStart.ValueChanged += new EventHandler(numericStart_ValueChanged); ReadLanguage(); Update_Image(); }
public ImageControl(XElement lang, ImageBase image, PaletteBase palette, MapBase map) { InitializeComponent(); this.isMap = true; this.palette = palette; this.image = image; this.map = map; Update_Info(); btnImport.Enabled = false; groupBox2.Enabled = false; this.comboDepth.SelectedIndexChanged += new EventHandler(comboDepth_SelectedIndexChanged); this.numericWidth.ValueChanged += new EventHandler(numericSize_ValueChanged); this.numericHeight.ValueChanged += new EventHandler(numericSize_ValueChanged); this.numericStart.ValueChanged += new EventHandler(numericStart_ValueChanged); ReadLanguage(lang); Update_Image(); }
public ImageControl(IPluginHost pluginHost, bool isMap) { InitializeComponent(); this.pluginHost = pluginHost; this.isMap = isMap; this.palette = pluginHost.Get_Palette(); this.image = pluginHost.Get_Image(); if (isMap) { this.map = pluginHost.Get_Map(); } Update_Info(); this.comboDepth.SelectedIndexChanged += new EventHandler(comboDepth_SelectedIndexChanged); this.numericWidth.ValueChanged += new EventHandler(numericSize_ValueChanged); this.numericHeight.ValueChanged += new EventHandler(numericSize_ValueChanged); this.numericStart.ValueChanged += new EventHandler(numericStart_ValueChanged); ReadLanguage(); Update_Image(); }
public void Set_Map(MapBase new_map) { this.map = new_map.Map; this.width = new_map.Width; this.height = new_map.Height; startByte = 0; loaded = true; // Get the original byte data List<Byte> data = new List<byte>(); for (int i = 0; i < map.Length; i++) data.AddRange(BitConverter.GetBytes(Actions.MapInfo(map[i]))); original = data.ToArray(); }
public void Set_Map(MapBase map) { this.map = map; }