mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 07:35:11 +00:00
i fucking give up, this will not hold up.
This commit is contained in:
1 parent
289baf4131
commit
17eb003a12
3 files changed
+50
-7
No files matched your search
@@ -0,0 +1,32 @@
|
||||
package somehussar.gui;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.FontRenderer;
|
||||
import noppes.npcs.client.gui.util.GuiNpcTextField;
|
||||
import somehussar.gui.annotationHandling.field.EditableField;
|
||||
|
||||
public class ImmediateTextField extends GuiNpcTextField{
|
||||
private final EditableField editableField;
|
||||
//
|
||||
// private final GuiNpcTextField encapsulatedField;
|
||||
|
||||
public ImmediateTextField(int id, EditableField field, int xPos, int yPos) {
|
||||
this(id, field, Minecraft.getMinecraft().fontRenderer, xPos, yPos);
|
||||
}
|
||||
public ImmediateTextField(int id, EditableField field, FontRenderer fontRenderer, int xPos, int yPos) {
|
||||
super(id, null, fontRenderer, xPos, yPos, 0, 0, null);
|
||||
|
||||
this.editableField = field;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void drawTextBox(int mousX, int mousY) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseClicked(int xPos, int yPos, int k) {
|
||||
xPos -= this.xPosition;
|
||||
yPos -= this.yPosition;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user