From 54e0fc260cd6d63bb70bcb0e416bb8e2198ff8ff Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Fri, 14 Dec 2012 23:11:26 +0000 Subject: [PATCH] Replace the scrolling contributor credits with a static programmatic three-column layout. git-svn-id: https://svn.eduke32.com/eduke32@3294 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/menus.c | 64 ++++++++++++++++++---------------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/polymer/eduke32/source/menus.c b/polymer/eduke32/source/menus.c index 409975733..60c554154 100644 --- a/polymer/eduke32/source/menus.c +++ b/polymer/eduke32/source/menus.c @@ -2052,8 +2052,8 @@ cheat_for_port_credits: minitext(160-(Bstrlen(p)<<1), 138+10-l, p, 8, 10+16+128); p = "Visit www.eduke32.com for news and updates"; - minitext(161-(Bstrlen(p)<<1), 136+10+10+10+10+4-l, p, 4, 10+16+128); - minitext(160-(Bstrlen(p)<<1), 135+10+10+10+10+4-l, p, 8, 10+16+128); + minitext(161-(Bstrlen(p)<<1), 139+10+10+10+10+4-l, p, 4, 10+16+128); + minitext(160-(Bstrlen(p)<<1), 138+10+10+10+10+4-l, p, 8, 10+16+128); break; case MENU_CREDITS5: @@ -2064,7 +2064,7 @@ cheat_for_port_credits2: if (g_scriptVersion == 13) l = (-2); mgametext(160,38-l,"License and Other Contributors",0,2+8+16); { - const char *scroller[] = + const char *header[] = { "This program is distributed under the terms of the", "GNU General Public License version 2 as published by the", @@ -2072,6 +2072,9 @@ cheat_for_port_credits2: " ", "Thanks to the following people for their contributions:", " ", + }; + const char *body[] = + { "Adam Fazakerley", // netcode NAT traversal "Alan Ondra", // testing "Bioman", // GTK work, APT repository and package upkeep @@ -2102,41 +2105,42 @@ cheat_for_port_credits2: "Stephen Anthony", // early 64-bit porting work "tueidj", // Wii port " ", + }; + const char *footer[] = + { " ", "BUILD engine technology available under BUILDLIC.", - " ", - "--x--", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " " }; - const int32_t numlines = sizeof(scroller)/sizeof(char *); - for (m=0,i=(totalclock/104)%numlines; m<18; m++,i++) + + const int32_t header_numlines = sizeof(header)/sizeof(char *); + const int32_t body_numlines = sizeof(body)/sizeof(char *); + const int32_t footer_numlines = sizeof(footer)/sizeof(char *); + + i = 0; + for (m=0; m