bare minimum function hud editor
This commit is contained in:
parent
9ab102a648
commit
31ecdd4f04
7 changed files with 154 additions and 3 deletions
|
@ -0,0 +1,22 @@
|
|||
package me.kawaiizenbo.moonlight.ui.hud.modules;
|
||||
|
||||
import me.kawaiizenbo.moonlight.ui.hud.HUDModule;
|
||||
import net.minecraft.client.font.TextRenderer;
|
||||
import net.minecraft.client.gui.DrawContext;
|
||||
|
||||
public class TestModuleHUD extends HUDModule
|
||||
{
|
||||
public TestModuleHUD(int x, int y)
|
||||
{
|
||||
super("Test HUD Module", x, y);
|
||||
this.width = 96;
|
||||
this.height = 12;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void render(DrawContext drawContext, int mouseX, int mouseY, TextRenderer textRenderer, boolean editMode)
|
||||
{
|
||||
super.render(drawContext, mouseX, mouseY, textRenderer, editMode);
|
||||
drawContext.drawText(textRenderer, "heloooooo", x, y, 0x55FFFF, false);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue