Search in sources :

Example 6 with GuiStringHandlerButton

use of logisticspipes.utils.gui.GuiStringHandlerButton in project LogisticsPipes by RS485.

the class GuiProvider method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    buttonList.add(new GuiStringHandlerButton(0, width / 2 + 40, height / 2 - 59, 45, 20, () -> _provider.isExcludeFilter() ? "Exclude" : "Include"));
    /*
		buttonList.add(new GuiStringHandlerButton(2, width / 2 + 50, height / 2 - 38, 45, 20, new GuiStringHandlerButton.StringHandler() {
		@Override
		public String getContent() {
			return _provider.isActive() ? "Send" : "Hold";
		}
		}));
		 */
    buttonList.add(new GuiButton(1, width / 2 - 90, height / 2 - 41, 38, 20, "Switch"));
}
Also used : GuiButton(net.minecraft.client.gui.GuiButton) GuiStringHandlerButton(logisticspipes.utils.gui.GuiStringHandlerButton)

Aggregations

GuiStringHandlerButton (logisticspipes.utils.gui.GuiStringHandlerButton)6 GuiButton (net.minecraft.client.gui.GuiButton)2 SmallGuiButton (logisticspipes.utils.gui.SmallGuiButton)1