Search in sources :

Example 1 with WidgetTabItemLister

use of com.bluepowermod.client.gui.widget.WidgetTabItemLister in project BluePower by Qmunity.

the class GuiContainerBaseBP method initGui.

@Override
public void initGui() {
    super.initGui();
    lastLeftStat = lastRightStat = null;
    if (inventory instanceof TileMachineBase) {
        WidgetTabItemLister backlogTab = new WidgetTabItemLister(this, "gui.bluepower:tab.stuffed", Refs.MODID + ":textures/gui/widgets/gui_stuffed.png", guiLeft + xSize, guiTop + 5, 0xFFc13d40, null, false);
        lastRightStat = backlogTab;
        backlogTab.setItems(((TileMachineBase) inventory).getBacklog());
        addWidget(backlogTab);
    }
    String unlocalizedInfo = inventory.getInventoryName() + ".info";
    String localizedInfo = I18n.format(unlocalizedInfo);
    if (!unlocalizedInfo.equals(localizedInfo)) {
        addAnimatedStat("gui.bluepower:tab.info", Refs.MODID + ":textures/gui/widgets/gui_info.png", 0xFF8888FF, isInfoStatLeftSided()).setText(unlocalizedInfo);
    }
}
Also used : TileMachineBase(com.bluepowermod.tile.TileMachineBase) WidgetTabItemLister(com.bluepowermod.client.gui.widget.WidgetTabItemLister)

Aggregations

WidgetTabItemLister (com.bluepowermod.client.gui.widget.WidgetTabItemLister)1 TileMachineBase (com.bluepowermod.tile.TileMachineBase)1