void draw::draw_credit_line(graphicsLib_gSurface &surface, unsigned short initial_line) { if (initial_line < credits_list.size()) { std::size_t found = credits_list.at(initial_line).find("--- "); if (found != std::string::npos) { graphLib.draw_centered_text(RES_H, credits_list.at(initial_line), surface, st_color(95, 151, 255)); } else { graphLib.draw_centered_text(RES_H, credits_list.at(initial_line), surface, st_color(235, 235, 235)); } } }
void draw::create_credits_text(graphicsLib_gSurface &surface) { if (credits_list.size() > 0) { return; } credits_list.push_back("--- COPYRIGHT NOTICE ---"); credits_list.push_back("MEGAMAN AND ROCKMAN ARE TRADEMARKS"); credits_list.push_back("OF CAPCOM INC. SOME OF THE GRAPHICS"); credits_list.push_back("AND SOUND EFFECTS USED IN THIS GAME"); credits_list.push_back("ARE PROPERTY OF CAPCOM INC."); credits_list.push_back(""); credits_list.push_back("THIS FANGAME IS A TRIBUTE TO MEGAMAN,"); credits_list.push_back("FREE AND OPEN-SOURCE"); credits_list.push_back(""); credits_list.push_back("WE THANK CAPCOM FOR CREATING MEGAMAN"); credits_list.push_back("AND ITS CLASSIC GAMES, ALSO FOR"); credits_list.push_back("BEING FRIENDLY TOWARDS FANGAMES."); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back("--- PLANNER ---"); credits_list.push_back("IURI FIEDORUK"); credits_list.push_back(""); credits_list.push_back("--- CHARACTER DESIGN ---"); credits_list.push_back("IURI FIEDORUK"); credits_list.push_back("ARIS KSF"); credits_list.push_back(""); credits_list.push_back("--- PIXEL GRAPHICS ---"); credits_list.push_back("IURI FIEDORUK"); credits_list.push_back("GIO AKIRA FAGANELLO"); credits_list.push_back("RODRIGO M. HAHN"); credits_list.push_back("HUNTER TRAMMELL"); credits_list.push_back("BOBERATU"); credits_list.push_back("PROF. CHRIS"); credits_list.push_back(""); credits_list.push_back("--- DERIVATED GRAPHICS ---"); credits_list.push_back("CAPCOM"); credits_list.push_back(""); credits_list.push_back("--- ILLUSTRATION ---"); credits_list.push_back("IURI FIEDORUK"); credits_list.push_back("ARIS KSF"); credits_list.push_back(""); credits_list.push_back("--- MUSIC COMPOSE ---"); credits_list.push_back("MODARCHIVE.ORG"); credits_list.push_back(""); credits_list.push_back("--- SOUND EFFECTS ---"); credits_list.push_back("CAPCOM"); credits_list.push_back(""); credits_list.push_back("--- PROGRAMMER ---"); credits_list.push_back("IURI FIEDORUK"); credits_list.push_back("DEMETRIO NETO"); credits_list.push_back(""); credits_list.push_back("--- PORTING ---"); credits_list.push_back("DINGUX: SHIN-NIL"); credits_list.push_back("PANDORA: SIGMA NL"); credits_list.push_back("PS2: RAGNAROK2040"); credits_list.push_back("PS2: WOON-YUNG LIU"); credits_list.push_back("PS2: SP193"); credits_list.push_back("ANDROID: PELYA"); credits_list.push_back(""); credits_list.push_back("--- TESTING ---"); credits_list.push_back("IURI FIEDORUK"); credits_list.push_back("ARIS KSF"); credits_list.push_back("LUIS AGUIRRE"); credits_list.push_back("BENOITREN (PSP)"); credits_list.push_back("BATANEN (PSP)"); credits_list.push_back("SAIYAN X (PSP)"); credits_list.push_back("AGENT 13 (PS2)"); credits_list.push_back("MK2ESCORT (PS2)"); credits_list.push_back("FOUADTJUHMASTER (ANDROID)"); credits_list.push_back(""); credits_list.push_back("--- SPECIAL THANKS ---"); credits_list.push_back("FREE SDK DEVELOPERS"); credits_list.push_back("LIBSDL PORTERS"); credits_list.push_back("DEVIANTART COMMUNITY"); credits_list.push_back("PIXELJOIN COMMUNITY"); credits_list.push_back("VENOM"); credits_list.push_back("JERONIMO"); credits_list.push_back(""); credits_list.push_back("--- DEVELOPMENT TOOLS ---"); credits_list.push_back("LIBSDL"); credits_list.push_back("LIBQT4"); credits_list.push_back("DIGIA QT"); credits_list.push_back("QT CREATOR"); credits_list.push_back("UBUNTU LINUX"); credits_list.push_back("GIMP"); credits_list.push_back("PAINT TOOL SAI"); credits_list.push_back("COREL DRAW"); credits_list.push_back("SIMPLE SCREEN RECORD"); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back(""); credits_list.push_back("--- PRESENTED BY ---"); credits_list.push_back("UPPERLAND STUDIOS"); credits_list.push_back("GREENNEKO WEB & DESIGN"); for (unsigned int i=0; i<=RES_H/12 && i<credits_list.size(); i++) { std::size_t found = credits_list.at(i).find("--- "); if (found != std::string::npos) { graphLib.draw_centered_text(12*i, credits_list.at(i), surface, st_color(95, 151, 255)); } else { graphLib.draw_centered_text(12*i, credits_list.at(i), surface, st_color(235, 235, 235)); } } }