PDA

View Full Version : add a spash logo to config


JustaSmoken
12th October 2004, 00:44
For anyone who wants to know, this is how I added the splashscreen to ganja. First download the attached rar file(.cpp, .h,and .bmp). Then add them to your project(config section ofcourse). Then add this stuff to your PainConfigSheet.cpp (EvilConfigSheet.cpp)



#include "SplashScreenEx.h"



Search for

BOOL CPainConfigSheet::OnInitDialog()
{

add this below

CSplashScreenEx *pSplash=new CSplashScreenEx();
pSplash->Create(this,"Ganja Cheat Loading",0,CSS_FADE | CSS_CENTERSCREEN | CSS_SHADOW);
pSplash->SetBitmap(IDB_BITMAP2,255,0,255);
pSplash->SetTextFont("Arial",125,CSS_TEXT_BOLD);
pSplash->SetTextRect(CRect(125,45,291,104));
pSplash->SetTextColor(RGB(141,231,35));
pSplash->SetTextFormat(DT_SINGLELINE | DT_CENTER | DT_VCENTER);
pSplash->Show();

Sleep(1000);
pSplash->SetText("Cheating is just fun!");
Sleep(1000);

pSplash->Hide();

If you havn't already, add .bmp as a resource(I included mine but sure you will replace it with your own). Make any changes to above code as necessary, such as IDB_BITMAP2(bmp your gonna use) may be different on your source, and text messages, font size, font color, and more. You prolly get the idea. I'm sure you can vary from this, I tryed adding it to painconfig.cpp first to load splash b4 hack checks pb version but it gave me an error so I just added it here, and it works great. I didn't write this code, only showing you all how I added it to my hax, the original author is in the .cpp @ top. This doesn't improve fuctionality of the hack, just adds a nice touch in my opinion.