From bc7cc885f76344ce8fdda4b62622743fcb1fb7d8 Mon Sep 17 00:00:00 2001 From: JoshuaNavarro Date: Mon, 24 Jun 2019 11:23:14 -0700 Subject: [PATCH] Started displaying page numbes for numerous pages for the menu. --- .../Framework/Menus/MusicManagerMenuV2.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/GeneralMods/StardewSymphonyRemastered/StardewSymphonyRemastered/Framework/Menus/MusicManagerMenuV2.cs b/GeneralMods/StardewSymphonyRemastered/StardewSymphonyRemastered/Framework/Menus/MusicManagerMenuV2.cs index d9fc2cf5..17c70e0e 100644 --- a/GeneralMods/StardewSymphonyRemastered/StardewSymphonyRemastered/Framework/Menus/MusicManagerMenuV2.cs +++ b/GeneralMods/StardewSymphonyRemastered/StardewSymphonyRemastered/Framework/Menus/MusicManagerMenuV2.cs @@ -23,10 +23,12 @@ namespace StardewSymphonyRemastered.Framework.Menus /// TODO: /// Add in next page previous page buttons /// Add in page (x of y) display text + /// -good for songs. Now do it for all pages /// Add in visual display to see what conditionals for that song have been selected. /// -Add in way to delete options from this menu /// Add in search box functionality for selecting albums /// Add in search box functionality for song selection. + /// -Add in confirmation for go back if current selected conditional is un-added (unsaved) /// public class MusicManagerMenuV2 : IClickableMenuExtended { @@ -1892,7 +1894,9 @@ namespace StardewSymphonyRemastered.Framework.Menus return key; } - + /// + /// Clears all selected conditionals options. + /// private void clearAllOptions() { //Check selections for draw mode and then remove if necessary @@ -1927,6 +1931,10 @@ namespace StardewSymphonyRemastered.Framework.Menus this.updateFancyButtons(); } } + /// + /// Selects the music pack album and sets it up. + /// + /// public void selectAlbum(Button b) { if (b.label == "Null") @@ -2005,6 +2013,8 @@ namespace StardewSymphonyRemastered.Framework.Menus foreach (var str in this.texturedStrings) str.draw(b); + + b.DrawString(Game1.smallFont, "Page: " + (this.currentSongPageIndex + 1) + " of " + ((this.fancyButtons.Count / amountToShow) + 1), new Vector2(drawList[0].getVector2().X, drawList[0].getVector2().Y - 50), Color.White); } if (this.drawMode == DrawMode.DifferentSelectionTypesModePage || this.drawMode == DrawMode.SeasonSelection || this.drawMode == DrawMode.WeatherSelection || this.drawMode == DrawMode.DaySelection)