Index: ps/trunk/binaries/data/mods/public/gui/credits/texts/misc.json =================================================================== --- ps/trunk/binaries/data/mods/public/gui/credits/texts/misc.json (revision 23179) +++ ps/trunk/binaries/data/mods/public/gui/credits/texts/misc.json (nonexistent) @@ -1,54 +0,0 @@ -{ - "Title": "Miscellaneous", - "Content": [ - { - "Title": "History References", - "Content": [ - { - "Subtitle": "Head", - "List": [{"nick": "Shogun 144", "name": "Joshua Gilbert"}] - }, - { - "List": [ - {"nick": "fede_histpop", "name": "Federico Odorizzi"}, - {"nick": "I_Would_Say", "name": "Nathan Benjamin"}, - {"nick": "Paul", "name": "Paul Withers"}, - {"nick": "Paal_101", "name": "Paul Basar"}, - {"nick": "Phormio"}, - {"nick": "Saqqara", "name": "Ashley King"}, - {"nick": "Sting", "name": "Borislav Chernev"}, - {"nick": "Thorfinn the Shallow Minded", "name": "Forrest Peterson"} - ] - } - ] - }, - { - "Title": "Community and Management", - "List": [ - {"nick": "Black OP", "name": "Randy Sage"}, - {"nick": "bstempi", "name": "Brian Stempin"}, - {"nick": "chichigrande", "name": "Matthew Rogers"}, - {"nick": "CodeOptimist", "name": "Nathanael Barbettini"}, - {"name": "Danny Reese"}, - {"nick": "DarkAngelBGE", "name": "Tim Koschuetzki"}, - {"nick": "darkfires (aka lethalhunter)", "name": "Jonathan Wright"}, - {"nick": "fabio", "name": "Fabio Pedretti"}, - {"nick": "formlesstree4", "name": "Adam Sears"}, - {"nick": "gudo"}, - {"nick": "implodedok", "name": "Jan Middelkoop"}, - {"nick": "Jeru", "name": "Aviv Sharon"}, - {"nick": "jshores", "name": "Jason Shores"}, - {"nick": "Kimball", "name": "Rob Kimball"}, - {"nick": "King Tutankhamun", "name": "Desmond Talkington"}, - {"nick": "MishFTW", "name": "A. Mishra"}, - {"nick": "Morgan", "name": "Morgan Ramsay"}, - {"nick": "Red_08", "name": "Joshua Barker"}, - {"nick": "ricotz", "name": "Rico Tzschichholz"}, - {"nick": "Rodrigo", "name": "Klass Van Waesberghe"}, - {"nick": "Sam (aka Ph4ntom)", "name": "Sam Carlton"}, - {"nick": "Sunshine", "name": "Belle Green"}, - {"nick": "Yiuel", "name": "Ugo Lachapelle"} - ] - } - ] -} Property changes on: ps/trunk/binaries/data/mods/public/gui/credits/texts/misc.json ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Index: ps/trunk/binaries/data/mods/public/gui/credits/credits.js =================================================================== --- ps/trunk/binaries/data/mods/public/gui/credits/credits.js (revision 23179) +++ ps/trunk/binaries/data/mods/public/gui/credits/credits.js (revision 23180) @@ -1,89 +1,97 @@ /** * Order in which the tabs should show up. */ -var g_OrderTabNames = ["special", "programming", "art", "translators", "misc", "donators"]; +var g_OrderTabNames = [ + "special", + "programming", + "art", + "history", + "community", + "translators", + "donators" +]; /** * Array of Objects containg all relevant data per tab. */ var g_PanelData = []; /** * Vertical size of a tab button. */ -var g_TabButtonHeight = 30; +var g_TabButtonHeight = 35; /** * Vertical space between two tab buttons. */ var g_TabButtonDist = 5; function init() { // Load credits list from the disk and parse them for (let category of g_OrderTabNames) { let json = Engine.ReadJSONFile("gui/credits/texts/" + category + ".json"); if (!json || !json.Content) { error("Could not load credits for " + category + "!"); continue; } translateObjectKeys(json, ["Title", "Subtitle"]); g_PanelData.push({ "label": json.Title || category, "content": parseHelper(json.Content) }); } placeTabButtons( g_PanelData, g_TabButtonHeight, g_TabButtonDist, selectPanel, category => { Engine.GetGUIObjectByName("creditsText").caption = g_PanelData[category].content; }); } // Run through a "Content" list and parse elements for formatting and translation function parseHelper(list) { let result = ""; for (let object of list) { if (object.LangName) result += setStringTags(object.LangName + "\n", { "font": "sans-bold-stroke-14" }); if (object.Title) result += setStringTags(object.Title + "\n", { "font": "sans-bold-stroke-14" }); if (object.Subtitle) result += setStringTags(object.Subtitle + "\n", { "font": "sans-bold-14" }); if (object.List) { for (let element of object.List) { let credit; if (element.nick && element.name) credit = sprintf(translate("%(nick)s - %(name)s"), { "nick": element.nick, "name": element.name }); else if (element.nick) credit = element.nick; else if (element.name) credit = element.name; if (credit) result += setStringTags(credit + "\n", { "font": "sans-14" }); } result += "\n"; } if (object.Content) result += "\n" + parseHelper(object.Content) + "\n"; } return result; } Index: ps/trunk/binaries/data/mods/public/gui/credits/texts/community.json =================================================================== --- ps/trunk/binaries/data/mods/public/gui/credits/texts/community.json (nonexistent) +++ ps/trunk/binaries/data/mods/public/gui/credits/texts/community.json (revision 23180) @@ -0,0 +1,32 @@ +{ + "Title": "Community and Management", + "Content": [ + { + "List": [ + { "nick": "Black OP", "name": "Randy Sage" }, + { "nick": "bstempi", "name": "Brian Stempin" }, + { "nick": "chichigrande", "name": "Matthew Rogers" }, + { "nick": "CodeOptimist", "name": "Nathanael Barbettini" }, + { "name": "Danny Reese" }, + { "nick": "DarkAngelBGE", "name": "Tim Koschuetzki" }, + { "nick": "darkfires (aka lethalhunter)", "name": "Jonathan Wright" }, + { "nick": "fabio", "name": "Fabio Pedretti" }, + { "nick": "formlesstree4", "name": "Adam Sears" }, + { "nick": "gudo" }, + { "nick": "implodedok", "name": "Jan Middelkoop" }, + { "nick": "Jeru", "name": "Aviv Sharon" }, + { "nick": "jshores", "name": "Jason Shores" }, + { "nick": "Kimball", "name": "Rob Kimball" }, + { "nick": "King Tutankhamun", "name": "Desmond Talkington" }, + { "nick": "MishFTW", "name": "A. Mishra" }, + { "nick": "Morgan", "name": "Morgan Ramsay" }, + { "nick": "Red_08", "name": "Joshua Barker" }, + { "nick": "ricotz", "name": "Rico Tzschichholz" }, + { "nick": "Rodrigo", "name": "Klass Van Waesberghe" }, + { "nick": "Sam (aka Ph4ntom)", "name": "Sam Carlton" }, + { "nick": "Sunshine", "name": "Belle Green" }, + { "nick": "Yiuel", "name": "Ugo Lachapelle" } + ] + } + ] +} Property changes on: ps/trunk/binaries/data/mods/public/gui/credits/texts/community.json ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: ps/trunk/binaries/data/mods/public/gui/credits/texts/history.json =================================================================== --- ps/trunk/binaries/data/mods/public/gui/credits/texts/history.json (nonexistent) +++ ps/trunk/binaries/data/mods/public/gui/credits/texts/history.json (revision 23180) @@ -0,0 +1,23 @@ +{ + "Title": "History References", + "Content": [ + { + "Subtitle": "Head", + "List": [ + { "nick": "Shogun 144", "name": "Joshua Gilbert" } + ] + }, + { + "List": [ + { "nick": "fede_histpop", "name": "Federico Odorizzi" }, + { "nick": "I_Would_Say", "name": "Nathan Benjamin" }, + { "nick": "Paal_101", "name": "Paul Basar" }, + { "nick": "Paul", "name": "Paul Withers" }, + { "nick": "Phormio" }, + { "nick": "Saqqara", "name": "Ashley King" }, + { "nick": "Sting", "name": "Borislav Chernev" }, + { "nick": "Thorfinn the Shallow Minded", "name": "Forrest Peterson" } + ] + } + ] +} Property changes on: ps/trunk/binaries/data/mods/public/gui/credits/texts/history.json ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property