Jump to content

Recommended Posts

Posted (edited)

Hello,

 

basically the FontRenderer is rendering a given text in white, unless I am holding any Item or Block in my hand. Pictures of what I mean (the Strings in the middle are what Im talking about):

 

[EDIT: It seems like I pasted the code and question inside the spoiler as well and it doesnt let me edit the text. Is there a "raw" option, which shows the bb code instead of compiling them inside the editor?]

 

 

Bcj5Zp5.png

qvtkxQp.png

 

Now, here is the code I tried, without success:

 

				RenderHelper.disableStandardItemLighting();
				this.fontRenderer.drawStringWithShadow(this.viewZone.name, textX, textY, 0xFFFFFF);
				RenderHelper.enableStandardItemLighting();

				GL11.glEnable(GL11.GL_BLEND);
				this.fontRenderer.drawStringWithShadow(this.viewZone.name, textX, textY, 0xFFFFFF);
				GL11.glDisable(GL11.GL_BLEND);
				GL11.glColor4f(1f, 1f, 1f, 1f);
				this.fontRenderer.drawStringWithShadow(this.viewZone.name, textX, textY, 0xFFFFFF);

 

If anyone knows the solution to this and could help me; I would be very thankful!

 

Thanks!

Edited by CAS_ual_TY

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.