Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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();
        }
Пример #4
0
        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();
        }
Пример #5
0
        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();
        }
Пример #6
0
        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();
        }
Пример #7
0
        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();
        }
Пример #8
0
        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();
        }
Пример #9
0
 public void Set_Map(MapBase map)
 {
     this.map = map;
 }