Esempio n. 1
0
        private void spawnDropdown_SelectedIndexChanged(object sender, EventArgs e)
        {
            List <IChunkType> plyrChunks = _data.GetChunksOfType(DZSChunkTypes.PLYR);

            _plyrChunk = (PlyrChunk)plyrChunks[spawnDropdown.SelectedIndex];
            UpdateUIControlsFromFile();
        }
Esempio n. 2
0
        /// <summary>
        /// Called when the user changes the scls Dropdown.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void sclsDropdown_SelectedIndexChanged(object sender, EventArgs e)
        {
            List <IChunkType> sclsChunks = _data.GetChunksOfType(DZSChunkTypes.SCLS);

            _sclsChunk = (SclsChunk)sclsChunks[sclsDropdown.SelectedIndex];
            UpdateSclsControlsFromFile();
        }
Esempio n. 3
0
        private void LoadDZSForStage(ZeldaArc stage)
        {
            int srcOffset = 0;
            _data = new DZSFormat(stage.DZRs[0].FileEntry.GetFileData(), ref srcOffset);

            List<IChunkType> plyrChunks = _data.GetChunksOfType(DZSChunkTypes.PLYR);
            if (plyrChunks == null)
                return;

            for (int i = 0; i < plyrChunks.Count; i++)
            {
                PlyrChunk plyrChunk = (PlyrChunk)plyrChunks[i];
                spawnDropdown.Items.Add("[" + i + "] - " + plyrChunk.Name);
            }

            spawnDropdown.SelectedIndex = 0;
            _plyrChunk = (PlyrChunk)plyrChunks[spawnDropdown.SelectedIndex];
            UpdateUIControlsFromFile();
        }
Esempio n. 4
0
        /// <summary>
        /// This is temporary until we replace out the main form's version of the DZS loading stuff.
        /// Sorry!
        /// </summary>
        /// <param name="stage"></param>
        private void LoadDZSForStage(ZeldaArc stage)
        {
            int srcOffset = 0;
            _data = new DZSFormat(stage.DZRs[0].FileEntry.GetFileData(), ref srcOffset);

            List<IChunkType> sclsChunks = _data.GetChunksOfType(DZSChunkTypes.SCLS);
            if (sclsChunks == null)
                return;

            for (int i = 0; i < sclsChunks.Count; i++)
            {
                SclsChunk exitChunk = (SclsChunk) sclsChunks[i];
                sclsDropdown.Items.Add("[" + i + "] - " + exitChunk.DestinationName);
            }

            sclsDropdown.SelectedIndex = 0;
            _sclsChunk = (SclsChunk) sclsChunks[sclsDropdown.SelectedIndex];
            UpdateSclsControlsFromFile();
        }
Esempio n. 5
0
        /// <summary>
        /// This is temporary until we replace out the main form's version of the DZS loading stuff.
        /// Sorry!
        /// </summary>
        /// <param name="stage"></param>
        private void LoadDZSForStage(ZeldaArc stage)
        {
            int srcOffset = 0;

            _data = new DZSFormat(stage.DZRs[0].FileEntry.GetFileData(), ref srcOffset);

            List <IChunkType> sclsChunks = _data.GetChunksOfType(DZSChunkTypes.SCLS);

            if (sclsChunks == null)
            {
                return;
            }

            for (int i = 0; i < sclsChunks.Count; i++)
            {
                SclsChunk exitChunk = (SclsChunk)sclsChunks[i];
                sclsDropdown.Items.Add("[" + i + "] - " + exitChunk.DestinationName);
            }

            sclsDropdown.SelectedIndex = 0;
            _sclsChunk = (SclsChunk)sclsChunks[sclsDropdown.SelectedIndex];
            UpdateSclsControlsFromFile();
        }
Esempio n. 6
0
        private void LoadDZSForStage(ZeldaArc stage)
        {
            int srcOffset = 0;

            _data = new DZSFormat(stage.DZRs[0].FileEntry.GetFileData(), ref srcOffset);

            List <IChunkType> plyrChunks = _data.GetChunksOfType(DZSChunkTypes.PLYR);

            if (plyrChunks == null)
            {
                return;
            }

            for (int i = 0; i < plyrChunks.Count; i++)
            {
                PlyrChunk plyrChunk = (PlyrChunk)plyrChunks[i];
                spawnDropdown.Items.Add("[" + i + "] - " + plyrChunk.Name);
            }

            spawnDropdown.SelectedIndex = 0;
            _plyrChunk = (PlyrChunk)plyrChunks[spawnDropdown.SelectedIndex];
            UpdateUIControlsFromFile();
        }
Esempio n. 7
0
 /// <summary>
 /// Called when the user changes the EnvR dropdown index. We'll need to update all of the Values to point to
 /// the new EnvR element.
 /// </summary>
 private void EnvRDropdown_SelectedIndexChanged(object sender, EventArgs e)
 {
     _envrChunk = (EnvRChunk)_data.GetChunksOfType(DZSChunkTypes.EnvR)[EnvRDropdown.SelectedIndex];
     UpdateEnvrGroupBox();
 }