use of buildcraft.lib.gui.elem.GuiElementContainerScissor in project BuildCraft by BuildCraft.
the class ElementTypeContainer method deserialize0.
@Override
protected IGuiElement deserialize0(BuildCraftJsonGui gui, IGuiPosition parent, JsonGuiInfo info, JsonGuiElement json) {
FunctionContext ctx = createContext(json);
boolean scissor = resolveEquationBool(json, "limit", ctx, false);
if (scissor) {
IGuiArea area = resolveArea(json, "area", parent, ctx);
return new GuiElementContainerScissor(gui, area);
} else {
IGuiPosition pos = resolvePosition(json, "pos", parent, ctx);
return new GuiElementContainerResizing(gui, pos);
}
}
Aggregations