示例#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
文件: MapBase.cs 项目: ShadeDBZ/tinke
        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;
 }