Rendering MOTD / Text on DirectConnectScreen #4801
Unanswered
DevKnochen
asked this question in
Player support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I want to display the servers MOTD, player count and ping on the DirectConnectScreen, similar to how it is in the multiplayer server list. Ive created a mixin for the DirectConnectScreen to draw the information. Im able to successfully fetch the servers icon and display it.
I can also fetch the MOTD and print it to the console, so I know the information is being retrieved correctly. My main issue is that I cant seem to render any text on the screen. The icon appears, but the MOTD, player count, and ping icon do not. I'm not getting any errors in the logs related to rendering. Here is some of my code:
part of DirectConnectScreenMixin.java:
part of DirectConnectScreenMOTDHelper.java (The drawing part):
Maybe Im missing something fundamental about how text rendering works? Is there a different way I should be rendering text because its a MOTD? This is 1.21.8
Beta Was this translation helpful? Give feedback.
All reactions