Main menu you got there looks nice Maybe if you aligned the buttons differently and added other information (Sort of like Xenon's menu)
Alright so this is a quick short tutorial for you lot.
So, this is just a simple code to show your username on the Main Menu, a bit like this.
Ok, to get started, open up your custom MainMenu. If you're lazy and cant be bothered to create hooks for guis, go ahead and open up GuiMainMenu. Its pretty much the same thing.
Next scroll down to where the "Copyright blah blah stuff. Do not distribute!" is. Then underneath the drawstring of the var10 (which is the Copyright thing), initialize a String called whatever. This string will get the username from Session class.
After, we just have to draw the string.
So overall, your code should look a little bit like this...
Code:String user = Session.username; String var89 = "Username: " + user; this.drawString(this.fontRenderer, var89, this.width / 2 + 10, this.height / 2 - 5, 0xffffff);
Of-course you can just do this.fontRenderer, "Username: " + user,... but its just more convenient for me like this.
Main menu you got there looks nice Maybe if you aligned the buttons differently and added other information (Sort of like Xenon's menu)
@LordPankake Thanks, tho im quite crappy at gui stuff.. It took me a good few minutes to align each of the buttons up And yeah I like Xenons main menu, but i wont just copy the looks of it Id like to make something more unique-ish.. Maybe ill redo the whole client and create maybe a new main menu or stuff, but for now Im sticking with what ive got and what I made.
Well, here's a little bit of what I added a while ago... I honestly have no idea what else to add.. Any ideas? Uhm, it uses the getMinecraftVersion() string and the org.lwjgl.Sys.getVersion(); for the versions so no need to manually change the strings.. Ah im bored... I talk shit when Im bored..
+ I have no idea what colours i should use.. so.. its just hanging there atm..
Last edited by Wampwire; 06-28-2013 at 02:10 PM.
Gotta say, your one of the people on this forum who aren't idiots. Nice main menu, clean. If you going to add news I would suggest making it read the news from a web based text folder
LordPankake (06-28-2013)
Yeah, then just upload a file to my website and make it get the text file from the url. I was thinking about it, but I cant be bothered to create a whole website for something.. I aint bothered to maintain it and stuff.. So might aswell just add a txt file along with all class files and use something like bufferedReader.. \(.-.)/ no idea..
Nice tutorial, you deserve a thanks.
Mess with the best, die like the rest.