HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Making threads to link to banned members content grants an automatic ban
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 How to Change the "Parsing Scripts..." Text on the Loading Bar

View previous topic View next topic Go down 
AuthorMessage
venw0lf

avatar

Game username : Venwolf
Server : Last Moon (Global Mod)
Female Posts : 102
Join date : 2015-05-14
Age : 15
Location : off the grid

PostSubject: How to Change the "Parsing Scripts..." Text on the Loading Bar   Sat May 07, 2016 2:42 pm

Here's a nice and easy tutorial for those of you that want to change the caption above the Loading bar when you start up the game. I changed mine to "Loading (game name)..." But you can do whatever you want.

First open your source and open "MagixLoadingBar.cpp"

Then scroll down a little bit in there to this.
Code:
// ResourceGroupListener callbacks
void MagixLoadingBar::resourceGroupScriptingStarted(const String& groupName, size_t scriptCount)
{
 assert(mNumGroupsInit > 0 && "You stated you were not going to init "
 "any groups, but you did! Divide by zero would follow...");
 // Lets assume script loading is 70%
 mProgressBarInc = mProgressBarMaxSize * mInitProportion / (Real)scriptCount;
 mProgressBarInc /= mNumGroupsInit;
 mLoadingDescriptionElement->setCaption("Parsing Scripts...");
 mWindow->update();
}

DO NOT change anything but the stuff where Parsing Scripts is UNLESS YOU KNOW WHAT YOU'RE DOING!!! (which I really don't so I won't be touching anything else lmao)

Okay, so now change the part that says ("Parsing Scripts...") To whatever you want.. Like I changed mine to ("Loading Fluorescent Skies..")
Code:
// ResourceGroupListener callbacks
void MagixLoadingBar::resourceGroupScriptingStarted(const String& groupName, size_t scriptCount)
{
 assert(mNumGroupsInit > 0 && "You stated you were not going to init "
 "any groups, but you did! Divide by zero would follow...");
 // Lets assume script loading is 70%
 mProgressBarInc = mProgressBarMaxSize * mInitProportion / (Real)scriptCount;
 mProgressBarInc /= mNumGroupsInit;
 mLoadingDescriptionElement->setCaption("Loading Fluorescent Skies...");
 mWindow->update();
}
Done. Make sure to NOT change the (" stuff. Or else you will fail c:
Back to top Go down
Zilla

avatar

Game username : Zilla
Server : None
Female Posts : 102
Join date : 2015-10-25
Age : 15

PostSubject: Re: How to Change the "Parsing Scripts..." Text on the Loading Bar   Sat May 07, 2016 3:05 pm

Awesome tutorial, thank you for sharing this!
Back to top Go down
 
How to Change the "Parsing Scripts..." Text on the Loading Bar
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Tutorials-
Jump to: