mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Rework stencil table GUI
This commit is contained in:
1 parent
5dd0e0c8fa
commit
bd997ab05e
9 files changed
+252
-39
No files matched your search
@@ -13,6 +13,8 @@ import tconstruct.library.tools.ToolCore;
|
||||
|
||||
public class TConstructClientRegistry
|
||||
{
|
||||
public static ArrayList<StencilGuiElement> stencilButtons = new ArrayList<StencilGuiElement>();
|
||||
public static ArrayList<StencilGuiElement> stencilButtons2 = new ArrayList<StencilGuiElement>();
|
||||
public static ArrayList<ToolGuiElement> toolButtons = new ArrayList<ToolGuiElement>(20);
|
||||
public static ArrayList<ToolGuiElement> tierTwoButtons = new ArrayList<ToolGuiElement>();
|
||||
public static Map<String, ItemStack> manualIcons = new HashMap<String, ItemStack>();
|
||||
@@ -103,6 +105,27 @@ public class TConstructClientRegistry
|
||||
}
|
||||
|
||||
//Gui
|
||||
public static void addStencilButton (StencilGuiElement element)
|
||||
{
|
||||
stencilButtons.add(element);
|
||||
}
|
||||
|
||||
public static void addStencilButton (int xButton, int yButton, int index, String domain, String texture)
|
||||
{
|
||||
stencilButtons.add(new StencilGuiElement(xButton, yButton, index, domain, texture));
|
||||
}
|
||||
|
||||
public static void addStencilButton2 (StencilGuiElement element)
|
||||
{
|
||||
stencilButtons.add(element);
|
||||
}
|
||||
|
||||
// adds a button to the right side of the stencil table
|
||||
public static void addStencilButton2 (int xButton, int yButton, int index, String domain, String texture)
|
||||
{
|
||||
stencilButtons2.add(new StencilGuiElement(xButton, yButton, index, domain, texture));
|
||||
}
|
||||
|
||||
public static void addToolButton (ToolGuiElement element)
|
||||
{
|
||||
toolButtons.add(element);
|
||||
|
||||
Reference in new issue
Block a user