Okay I'm going to show you how to make a Customizable Font system in your client.
Obvious skid protection is obvious.
I'm sure that nobody has done a tut for this yet.
Okay first you have to have a boolean for your Font System.
Remember that shit you used for your unicode.
Make a method for it cause you'll need it and make a string for the font.
String you need to make.
Obvious skid protection is Obvious.
inb4YITNOWORK
Method you need.
Remember to change this in your UNICODE.
To this VV
Lastly make a console command for this.
Oh and one last thing.
Obvious skid protection is obvious.
I'm sure that nobody has done a tut for this yet.
Okay first you have to have a boolean for your Font System.
Remember that shit you used for your unicode.
Make a method for it cause you'll need it and make a string for the font.
String you need to make.
Code:
public static string CCFONT = "Some Font";
Obvious skid protection is Obvious.
inb4YITNOWORK
Method you need.
Remember to change this in your UNICODE.
To this VV
Code:
CFont = new UnicodeFont(new Font(Wherevarsare.CCFONT, 1 + 16));
Lastly make a console command for this.
Code:
if(g.startswith("cuni")) // What the command is to type in.
{
String as32[] = par1Str.split(" "); // Makes String as32[] be what ever is after the space.
Wherevarsare.CCFONT = as32[1]; // Says that as32[1] is going to change Your boolean.
GuiIngame.retard(); // Makes that method of your's run so the font refreshes.
}
Oh and one last thing.
No comments:
Post a Comment