Social Icons

Thursday, 3 May 2012

[TUT] Customizable Fonts!! Never Before Seen!!![TUT]

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.

Code:
public static string CCFONT = "Some Font";

Obvious skid protection is Obvious.
inb4YITNOWORK

Method you need.
[Image: a4ab33ffcb18406389d78a7.png]

Remember to change this in your UNICODE.

[Image: f91484822a114e9987f4c1e.png]

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