Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int drawStringS(String par1Str, float x, float y, int par4, boolean par5)
- {
- this.resetStyles();
- if (this.bidiFlag)
- {
- par1Str = this.bidiReorder(par1Str);
- }
- int var6;
- if (par5)
- {
- var6 = this.renderStringS(par1Str, x + 1, y + 1, par4, true);
- var6 = Math.max(var6, this.renderStringS(par1Str, x, y, par4, false));
- }
- else
- {
- var6 = this.renderStringS(par1Str, x, y, par4, false);
- }
- return var6;
- }
- public int renderStringS(String par1Str, float f, float g, int par4, boolean par5)
- {
- if (par1Str == null)
- {
- return 0;
- }
- else
- {
- this.boundTextureName = 0;
- if ((par4 & -67108864) == 0)
- {
- par4 |= -16777216;
- }
- if (par5)
- {
- par4 = (par4 & 16579836) >> 2 | par4 & -16777216;
- }
- this.red = (float)(par4 >> 16 & 255) / 255.0F;
- this.blue = (float)(par4 >> 8 & 255) / 255.0F;
- this.green = (float)(par4 & 255) / 255.0F;
- this.alpha = (float)(par4 >> 24 & 255) / 255.0F;
- GL11.glColor4f(this.red, this.blue, this.green, this.alpha);
- this.posX = (float)f;
- this.posY = (float)g;
- this.renderStringAtPos(par1Str, par5);
- return (int)this.posX;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement