Skip to content

Commit

Permalink
and now reduce grid column counts
Browse files Browse the repository at this point in the history
  • Loading branch information
Murph9 committed Oct 1, 2023
1 parent 329e420 commit 6eb2669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion godot/scenes/SongDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private void LoadSong() {
GetNode<Label>("ArtistLabel").Text = "Artist: " + songInfo.Metadata.Artist;
GetNode<Label>("SongNameLabel").Text = "Name: " + songInfo.Metadata.Name;
GetNode<Label>("AlbumLabel").Text = "Album: " + songInfo.Metadata.Album;
GetNode<Label>("YearLabel").Text = "Year:" + songInfo.Metadata.Year.ToString();
GetNode<Label>("YearLabel").Text = "Year: " + songInfo.Metadata.Year.ToString();
GetNode<Label>("OtherLabel").Text = "Length: " + songInfo.Metadata.SongLength.ToMinSec();

var grid = GetNode<GridContainer>("InstrumentGridContainer");
Expand Down
12 changes: 2 additions & 10 deletions godot/scenes/SongList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ public Row(SongFile song, Action<SongFile> buttonAction) {
CreateLabel(song.Album.FixedWidthString(20)),
CreateLabel(song.Year.ToString()),
CreateLabel(song.Length.ToMinSec()),
CreateLabel(song.GetInstrumentChars()),
CreateLabel(mainI?.Name),
CreateLabel(Instrument.CalcTuningName(mainI?.Tuning)),
CreateLabel(mainI?.NoteCount.ToString()),
CreateLabel(mainI?.GetNoteDensity(song).ToFixedPlaces(2, false))
CreateLabel(song.GetInstrumentChars())
};
}

Expand All @@ -87,11 +83,7 @@ private void RowSelectedForReal(InputEvent @event)
new Column("Album", (s) => s.Album),
new Column("Year", (s) => s.Year),
new Column("Length", (s) => s.Length),
new Column("Parts", (s) => s.GetInstrumentChars()),
new Column("Main", (s) => s.GetMainInstrument()?.Name),
new Column("Tuning", (s) => Instrument.CalcTuningName(s.GetMainInstrument()?.Tuning, s.GetMainInstrument()?.CapoFret)),
new Column("Notes", (s) => s.GetMainInstrument()?.GetNoteDensity(s)),
new Column("Density", (s) => s.GetMainInstrument()?.NoteCount),
new Column("Parts", (s) => s.GetInstrumentChars())
};

private readonly List<Row> _rows;
Expand Down

0 comments on commit 6eb2669

Please sign in to comment.