コード例 #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
ファイル: ImageControl.cs プロジェクト: ShadeDBZ/tinke
        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
ファイル: ImageControl.cs プロジェクト: ShadeDBZ/tinke
        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
ファイル: ImageControl.cs プロジェクト: ShadeDBZ/tinke
        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
ファイル: PluginHost.cs プロジェクト: MetLob/tinke
 public void Set_Map(MapBase map)
 {
     this.map = map;
 }