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 | 
 

 Credits Box Code

View previous topic View next topic Go down 
AuthorMessage
godlikesskittles



Posts : 1
Join date : 2016-05-17

PostSubject: Credits Box Code   Tue May 17, 2016 12:23 pm

Ok hi
today in God makes a thread, you gonna learn how to make a CREDIT BOX IN GAME. Bc like, admit it, who reads the credits on the forum, when credits in game are much more convenient.

It'll look something like this
Spoiler:
 
first in MagixGUI find: void showtargetbiobox(bool flag)
Above it, paste this:
Spoiler:
 


Now search for void update(const FrameEvent &evt) in MagixGUI again
Scroll down and you will find 
updateFriendBox();
under it, put updateCreditsBox();

Now search for this in MagixGUI 
if(mGameStateManager->getGameState()==GAMESTATE_STARTSCREEN && logoCount<=5)
Scroll down a lil and you should find 
mButton[BUTTON_MULTIPLAYER]->hide();
wow
Put mButton[BUTTON_CREDITS]->hide();    under that
Now if you go down a bit more you'll see
mButton[BUTTON_NEWGAME]->show();
woah
now put mButton[BUTTON_CREDITS]->show();    under that too


Again in MagixGUI, search bool skipLogo()
Where it says
mButton[BUTTON_NEWGAME]->show(); 
under this put 
mButton[BUTTON_CREDITS]->show();

Search if(mHoverButton==mButton[BUTTON_MULTIPLAYER]) //multiplayer game

Above it, put this:
Spoiler:
 

you should probably define the button or something at this point so
Find where it says BUTTON_MULTIPLAYER, right click, and click on "GO to definition" 
There should be a massive list of..defines for buttons. 
Find BUTTON_MULTIPLAYER, and put BUTTON_CREDITS, under it and under THAT put BUTTON_CREDITSBOX, (remember the ,) 


Find //CharScreenGUI

Above this, put
Spoiler:
 
aight now you need to define the scroller and mover.
So go back up to the top of MagixGUI until you find a huge list of SCROLLER_ defines
Put SCROLLER_CREDITSBOX, under one of them
Above the scroller defines should be MOVER defines. Put MOVER_CREDITSBOX, under one of them too.

Okay now search 
vector<unsigned short>::type friendBoxListButton;
Under it, put:
vector<String>::type CreditsBoxList;
vector<unsigned short>::type CreditsBoxListButton;

honestly I totally forgot how much code this feature contains, i thought it was less than this im sorry

aight so search //StartScreenGUI 
and you should see:
Spoiler:
 
amirite
Under this, put
Spoiler:
 

We are halfway there

K now search
void updateTargetBioBox()

Above this, put
Spoiler:
 

Now search
void refreshBio()
Above this put:
Spoiler:
 

Now search
void updateSkillText(const Skill *skill)

Above it, put:
Spoiler:
 

Search for 
void toggleShowFriendBox()
Above it, put :
Spoiler:
 

Oh and you need to define the GUI
So
Find GUI_HOMEBOX, at the top of MagixGUI and then paste under it,
GUI_CREDITSBOX,


This SHOULD be everything. There's a ton of stuff here so, recompile, and if something is missing, do tell me and I'll update the thread..somehow. I'll make a new account idk

Now go to your overlays folder and open gui.overlay
Right at the bottom of the whole file, make a new line, and paste:
Spoiler:
 

Lastly, make a new file in notepad or likewise, and write your credits. For now just write "test". Save it as "credits.list" (DO NOT RENAME THIS FILE it MUST be credits.list) Make sure you save it as 'all files'. Just MAKE SURE that it is saved as .list, and not list.txt or other. I think you get the message.
Now when you load the game, you should see credits button on the start screen. Click on it, and you should see the word "test", and the scroller, and the button to exit the box, and you should be able to move the box around.

Mkay now change the credits.list file to whatever credits that you have.
enjoy.
Back to top Go down
Zilla

avatar

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

PostSubject: Re: Credits Box Code   Tue May 17, 2016 1:04 pm

Thank you for sharing this! Very helpful!
Back to top Go down
 
Credits Box Code
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 :: DOWNLOADABLE CONTENT :: Programming Features-
Jump to: