mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 18:49:39 +00:00
Add a new Aim While Shooting Type
This commit is contained in:
1 parent
0877aee3e6
commit
cac5a53997
9 files changed
+52
-13
No files matched your search
@@ -1,6 +1,7 @@
|
||||
package noppes.npcs.client.gui;
|
||||
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.client.gui.GuiTextField;
|
||||
import noppes.npcs.client.gui.util.*;
|
||||
import noppes.npcs.scripted.ScriptParticle;
|
||||
|
||||
@@ -20,7 +21,6 @@ public class SubGuiScriptParticle extends SubGuiInterface implements ITextfieldL
|
||||
public void initGui() {
|
||||
super.initGui();
|
||||
int y = guiTop + 10;
|
||||
// Directory (long textfield)
|
||||
addLabel(new GuiNpcLabel(1, "display.texture", guiLeft + 5, y));
|
||||
addTextField(new GuiNpcTextField(1, this, fontRendererObj, guiLeft + 70, y - 5, 260, 20, particle.directory));
|
||||
|
||||
@@ -104,4 +104,10 @@ public class SubGuiScriptParticle extends SubGuiInterface implements ITextfieldL
|
||||
close();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close(){
|
||||
GuiNpcTextField.unfocus();
|
||||
super.close();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user