fix credits (from eye pr lol) (#380)

yoinked
This commit is contained in:
Noah 2022-09-12 15:26:56 -04:00 committed by GitHub
commit d20db7d211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ namespace NewHorizons.Handlers
private static void AddCreditsSection(string sectionName, string[] entries, ref XmlDocument xml) private static void AddCreditsSection(string sectionName, string[] entries, ref XmlDocument xml)
{ {
var finalCredits = xml.SelectSingleNode("Credits/section"); var finalCredits = xml.SelectSingleNode("Credits/section[@name='CreditsFinal']");
/* /*
* Looks bad, would need more customization, complicated, messes up music timing, wont do for now * Looks bad, would need more customization, complicated, messes up music timing, wont do for now
@ -134,11 +134,8 @@ namespace NewHorizons.Handlers
{ {
var rootSection = MakeNode(doc, "section", new Dictionary<string, string>() var rootSection = MakeNode(doc, "section", new Dictionary<string, string>()
{ {
{ "platform", "All" }, { "name", "Custom" },
{ "type", "Scroll" }, { "credits-type", "Final Fast Krazy" }
{ "scrollDuration", "214" },
{ "spacing", "12" },
{ "width", "1590" }
}); });
var titleLayout = MakeNode(doc, "layout", new Dictionary<string, string>() var titleLayout = MakeNode(doc, "layout", new Dictionary<string, string>()