コード例 #1
0
        public void LoadFile(FileFormats.SdsMemory.Entry entry)
        {
            this.Text += ": " + entry.Description;
            this.Entry = entry;

            this.UpdatePreview();
        }
コード例 #2
0
        public void LoadFile(FileFormats.SdsMemory.Entry entry)
        {
            var resource = new FileFormats.ResourceTypes.TextureResource();

            resource.Deserialize(entry.Header, entry.Data);
            this.Text += ": " + entry.Description;

            this.Entry    = entry;
            this.Resource = resource;

            this.UpdatePreview();
        }
コード例 #3
0
        public void LoadFile(FileFormats.SdsMemory.Entry entry)
        {
            var resource = new FileFormats.ResourceTypes.MemFileResource();

            resource.Deserialize(entry.Header, entry.Data);

            this.Text += ": " + resource.Name;
            this.hexBox.ByteProvider = new DynamicByteProvider(resource.Data);
            this.hexBox.ReadOnly     = true;

            this.Entry    = entry;
            this.Resource = resource;
        }
コード例 #4
0
        public void LoadFile(FileFormats.SdsMemory.Entry entry)
        {
            var tables = new FileFormats.ResourceTypes.TableResource();

            tables.Deserialize(entry.Header, entry.Data);

            this.comboBox.Items.Clear();
            foreach (var table in tables.Tables)
            {
                this.comboBox.Items.Add(table);
            }
            if (this.comboBox.Items.Count > 0)
            {
                this.comboBox.SelectedIndex = 0;
            }
        }
コード例 #5
0
        public void LoadFile(FileFormats.SdsMemory.Entry entry)
        {
            var resource = new FileFormats.ResourceTypes.XmlResource();

            resource.Deserialize(entry.Header, entry.Data);

            this.Text += ": " + resource.Name + " (" + resource.Tag + ")";

            this.contentTextBox.Text = resource.Content;
            this.contentTextBox.Select(0, 0);

            this.Entry    = entry;
            this.Resource = resource;

            if (this.Resource.Unk3 == true)
            {
                this.saveButton.Enabled = false;
            }
        }
コード例 #6
0
        public void LoadFile(FileFormats.SdsMemory.Entry entry)
        {
            var resource = new FileFormats.ResourceTypes.ScriptResource();

            resource.Deserialize(entry.Header, entry.Data);

            this.Text += ": " + resource.Path;

            this.comboBox.Items.Clear();
            foreach (var script in resource.Scripts)
            {
                this.comboBox.Items.Add(script);
            }

            this.Entry    = entry;
            this.Resource = resource;

            if (this.comboBox.Items.Count > 0)
            {
                this.comboBox.SelectedIndex = 0;
            }
        }