Search in sources :

Example 1 with CenteredLabel

use of convenientadditions.api.gui.widget.label.CenteredLabel in project ConvenientAdditions by Necr0.

the class GuiJumpPad method initGui.

@Override
public void initGui() {
    super.initGui();
    addWidget(new CenteredLabel(leftX + 52, topY + 22, Helper.localize("key.jump")));
    addWidget(new CenteredLabel(leftX + 124, topY + 22, Helper.localize("key.sneak")));
}
Also used : CenteredLabel(convenientadditions.api.gui.widget.label.CenteredLabel)

Example 2 with CenteredLabel

use of convenientadditions.api.gui.widget.label.CenteredLabel in project ConvenientAdditions by Necr0.

the class GuiTransmutationTomeRecipeLookup method initClearable.

public void initClearable() {
    int start = page * 10;
    int end = Math.min(page * 10 + 9, currentLookups.size() - 1);
    for (int i = 0; i < (end - start + 1); i++) {
        clearable.add(addWidget(new ItemViewMulti(getBases(currentLookups.get(start + i)), leftX + (i >= 5 ? 84 : 0) + 8, topY + 18 + (i % 5) * 18)));
        clearable.add(addWidget(new ItemViewMulti(getTransmutators(currentLookups.get(start + i)), leftX + (i >= 5 ? 84 : 0) + 26, topY + 18 + (i % 5) * 18)));
        clearable.add(addWidget(new CenteredLabelMulti(leftX + (i >= 5 ? 84 : 0) + 54, topY + 21 + (i % 5) * 18, getLevels(currentLookups.get(start + i)), 0x009900)));
        clearable.add(addWidget(new ItemViewMulti(getResults(currentLookups.get(start + i)), leftX + (i >= 5 ? 84 : 0) + 68, topY + 18 + (i % 5) * 18)));
    }
    if (getPages() != 0)
        clearable.add(addWidget(new CenteredLabel(leftX + 86, topY + 110, Helper.localize(ModConstants.Mod.MODID + ":page") + ": " + (page + 1) + "/" + getPages())));
    else
        clearable.add(addWidget(new CenteredLabel(leftX + 86, topY + 110, Helper.localize(ModConstants.Mod.MODID + ":page") + ": 0/0")));
}
Also used : CenteredLabel(convenientadditions.api.gui.widget.label.CenteredLabel) CenteredLabelMulti(convenientadditions.api.gui.widget.label.CenteredLabelMulti) ItemViewMulti(convenientadditions.api.gui.widget.itemView.ItemViewMulti)

Aggregations

CenteredLabel (convenientadditions.api.gui.widget.label.CenteredLabel)2 ItemViewMulti (convenientadditions.api.gui.widget.itemView.ItemViewMulti)1 CenteredLabelMulti (convenientadditions.api.gui.widget.label.CenteredLabelMulti)1