public void method_0() { byte[] byte_; ZIPManager.smethod_3(this.string_1, out byte_, "songs.info", "TGH9ZIP2PASS4MXKR"); zzGenericNode1 @class = new zzGenericNode1("songs", KeyGenerator.smethod_8(byte_, "SNG4AES4KEY9MXKR")); foreach (StructurePointerNode class302_ in @class.Nodes) { GH3Song gH3Song = new GH3Song(class302_); gH3Song.editable = true; this.gh3Songlist_0.method_0(gH3Song, this.string_0 != null); } ZIPManager.smethod_3(this.string_1, out byte_, "tier.info", "TGH9ZIP2PASS4MXKR"); this.gh3Tier_0.method_1(new GH3Tier((StructureHeaderNode) new zzGenericNode1("tier", KeyGenerator.smethod_8(byte_, "TIR4AES4KEY9MXKR")).Nodes[0], this.gh3Songlist_0)); if (this.string_0 != null) { List <string> list = new List <string>(); List <string> list2 = new List <string>(); foreach (GH3Song current in this.gh3Tier_0.songs) { if (current.editable) { list.Add(current.name + "_song.pak.xen"); list2.Add(this.string_0 + "songs\\" + current.name + "_song.pak.xen"); list.Add(current.name + ".dat.xen"); list2.Add(this.string_0 + "music\\" + current.name + ".dat.xen"); list.Add(current.name + ".fsb.xen"); list2.Add(this.string_0 + "music\\" + current.name + ".fsb.xen"); } } ZIPManager.smethod_11(this.string_1, list2, list, "TGH9ZIP2PASS4MXKR"); } }
public SongProperties(string songName) { this.InitializeComponent(); this.Song = new GH3Song(); this.Text = this.Text + " (" + songName + ")"; this.SingerBox.SelectedIndex = 0; this.CountOffBox.SelectedIndex = 0; this.BassistBox.SelectedIndex = 0; this.BossBox.SelectedIndex = 0; }
public SongProperties(GH3Song song) : this(song.name) { this.Song = song; if (this.Song is GHASong) { this.BassistBox.Enabled = false; this.BossBox.Items.Add("Joe Perry Props"); this.BossBox.Items.Add("Tom Morello Props"); } else { this.AeroGroupBox.Enabled = false; this.SingerBox.Items.Add("Bret Michaels"); this.BossBox.Items.Add("Tom Morello Props"); this.BossBox.Items.Add("Slash Props"); this.BossBox.Items.Add("Lou Props"); } this.btnApply.Enabled = true; // this.gh3Song_0.editable; this.TitleTxt.Text = this.Song.title; this.ArtistTxt.Text = this.Song.artist; this.YearTxt.Text = this.Song.year; this.chkOriginal.Checked = this.Song.original_artist; this.chkRhythm.Checked = !this.Song.no_rhythm_track; this.chkKeyboard.Checked = this.Song.keyboard; this.chkCoop.Checked = this.Song.use_coop_notetracks; this.rBtnBass.Checked = !(this.rBtnRhythm.Checked = this.Song.not_bass); if (this.Song.artist_text is bool) { this.FamousByBtn.Checked = !(this.ByBtn.Checked = (bool)this.Song.artist_text); } else { this.ArtistTextBox.Text = (string)this.Song.artist_text; this.CustomTxtBtn.Checked = true; } this.GuitarVolBox.Value = (decimal)this.Song.guitar_vol; this.BandVolBox.Value = (decimal)this.Song.band_vol; this.HammerOnBox.Value = (decimal)this.Song.hammer_on; this.OffsetBox.Value = this.Song.gem_offset; if (this.Song.singer.Equals("")) { this.SingerBox.SelectedIndex = 0; } else if (this.Song.singer.Equals("male")) { this.SingerBox.SelectedIndex = 1; } else if (this.Song.singer.Equals("female")) { this.SingerBox.SelectedIndex = 2; } else if (this.Song.singer.Equals("bret")) { this.SingerBox.SelectedItem = "Bret Michaels"; } this.CountOffBox.SelectedItem = this.Song.countoff.ToLower(); this.BassistBox.SelectedItem = this.Song.bassist; if (this.Song.boss.Equals("")) { this.BossBox.SelectedIndex = 0; } else if (this.Song.boss.Equals("boss_tommorello_props")) { this.BossBox.SelectedItem = "Tom Morello Props"; } else if (this.Song.boss.Equals("boss_slash_props")) { this.BossBox.SelectedItem = "Slash Props"; } else if (this.Song.boss.Equals("boss_devil_props")) { this.BossBox.SelectedItem = "Lou Props"; } else if (this.Song.boss.Equals("boss_joe_props")) { this.BossBox.SelectedItem = "Joe Perry Props"; } if (this.AeroGroupBox.Enabled) { GHASong gHASong = (GHASong)this.Song; this.CoveredTxt.Text = gHASong.covered_by; this.SingAnimPakTxt.Text = gHASong.singer_anim_pak; this.BandBox.SelectedItem = gHASong.band; this.BPM8NoteBox.Value = gHASong.thin_fretbar_8note_params_high_bpm; this.AeroGuitaristBox.Checked = gHASong.guitarist_checksum; this.PerryMicBox.Checked = gHASong.perry_mic_stand; } }