Пример #1
0
        public BitmapInjectionForm(HaloMap.Map.Map Map, string Filename, ParsedBitmap ParsedBitm, int NumDDS)
        {
            InitializeComponent();

            this.bitm     = ParsedBitm;
            this.filename = Filename;
            this.map      = Map;

            // Load the DDS info & picture
            loadDDSInfo(filename, this.bitm);

            // Get the filename variable from the path / filename combo
            filename = filename.Substring(filename.LastIndexOf('\\') + 1);

            // Populate Bitmap Injection box with number of bitmaps in current selection
            for (int i = 0; i < NumDDS; i++)
            {
                lbInjectionBitmap.Items.Add("Bitmap #" + i.ToString());
            }

            #region inject_Form
            this.Text = "Inject " + filename + " to...";
            if (lbInjectionBitmap.Items.Count > 0)
            {
                lbInjectionBitmap.SelectedIndex = 0;
            }

            #endregion
        }
Пример #2
0
        public BitmapInjectionForm(HaloMap.Map.Map Map, string Filename, ParsedBitmap ParsedBitm, int NumDDS)
        {
            InitializeComponent();

            this.bitm = ParsedBitm;
            this.filename = Filename;
            this.map = Map;

            // Load the DDS info & picture
            loadDDSInfo(filename, this.bitm);

            // Get the filename variable from the path / filename combo
            string fname = filename.Substring(filename.LastIndexOf('\\') + 1);

            // Populate Bitmap Injection box with number of bitmaps in current selection
            for (int i = 0; i < NumDDS; i++)
            {
                lbInjectionBitmap.Items.Add("Bitmap #" + i.ToString());
            }

            #region inject_Form
            this.Text = "Inject " + fname + " to...";
            if (lbInjectionBitmap.Items.Count > 0)
            {
                lbInjectionBitmap.SelectedIndex = 0;
            }

            #endregion
        }
Пример #3
0
        public WinMetaEditor(MapForm sender, HaloMap.Map.Map map)
        {
            InitializeComponent();

            this.map   = map;
            this.Owner = sender;
            mapForm    = sender;
            this.Text  = map.filePath.Substring(map.filePath.LastIndexOf('\\') + 1).ToUpper();
        }
Пример #4
0
        public WinMetaEditor(MapForm sender, HaloMap.Map.Map map)
        {
            InitializeComponent();

            this.map = map;
            this.Owner = sender;
            mapForm = sender;
            this.Text = map.filePath.Substring(map.filePath.LastIndexOf('\\') + 1).ToUpper();
        }