Search in sources :

Example 1 with GuiSearcher

use of pneumaticCraft.client.gui.GuiSearcher in project PneumaticCraft by MineMaarten.

the class GuiSearchUpgradeOptions method actionPerformed.

@Override
public void actionPerformed(GuiButton button) {
    if (button.id == 10) {
        searchGui = new GuiSearcher(player);
        if (player.getCurrentArmor(3) != null) {
            searchGui.setSearchStack(ItemPneumaticArmor.getSearchedStack(player.getCurrentArmor(3)));
        }
        FMLClientHandler.instance().showGuiScreen(searchGui);
    } else {
        FMLCommonHandler.instance().showGuiScreen(new GuiMoveStat(renderHandler));
    }
}
Also used : GuiSearcher(pneumaticCraft.client.gui.GuiSearcher)

Example 2 with GuiSearcher

use of pneumaticCraft.client.gui.GuiSearcher in project PneumaticCraft by MineMaarten.

the class GuiProgWidgetItemFilter method actionPerformed.

@Override
public void actionPerformed(GuiButton button) {
    if (button.id == 0) {
        searchGui = new GuiSearcher(FMLClientHandler.instance().getClient().thePlayer);
        searchGui.setSearchStack(widg.getFilter());
        FMLClientHandler.instance().showGuiScreen(searchGui);
    } else if (button.id == 1) {
        invSearchGui = new GuiInventorySearcher(FMLClientHandler.instance().getClient().thePlayer);
        invSearchGui.setSearchStack(widg.getFilter());
        FMLClientHandler.instance().showGuiScreen(invSearchGui);
    } else if (button.id == 2) {
        if (--widg.specificMeta < 0)
            widg.specificMeta = 15;
    } else if (button.id == 3) {
        if (++widg.specificMeta > 15)
            widg.specificMeta = 0;
    }
    super.actionPerformed(button);
}
Also used : GuiSearcher(pneumaticCraft.client.gui.GuiSearcher) GuiInventorySearcher(pneumaticCraft.client.gui.GuiInventorySearcher)

Aggregations

GuiSearcher (pneumaticCraft.client.gui.GuiSearcher)2 GuiInventorySearcher (pneumaticCraft.client.gui.GuiInventorySearcher)1