Search in sources :

Example 1 with GuiScrollingButtons

use of betterquesting.api.client.gui.lists.GuiScrollingButtons in project BetterQuesting by Funwayguy.

the class GuiPrerequisiteEditor method initGui.

@Override
public void initGui() {
    super.initGui();
    if (quest == null) {
        mc.displayGuiScreen(parent);
    }
    int btnWidth = sizeX / 2 - 16;
    int sx = sizeX - 32;
    this.searchBox = new GuiBigTextField(mc.fontRenderer, guiLeft + sizeX / 2 + 8, guiTop + 48, btnWidth - 16, 20);
    this.searchBox.setWatermark(I18n.format("betterquesting.gui.search"));
    this.buttonList.add(new GuiButtonThemed(1, guiLeft + 16 + sx / 4 * 3 - 50, guiTop + sizeY - 48, 100, 20, I18n.format("betterquesting.btn.new"), true));
    prBtnList = new GuiScrollingButtons(mc, guiLeft + 16, guiTop + 48, btnWidth - 8, sizeY - 96);
    dbBtnList = new GuiScrollingButtons(mc, guiLeft + sizeX / 2 + 8, guiTop + 68, btnWidth - 8, sizeY - 116);
    this.embedded.add(prBtnList);
    this.embedded.add(dbBtnList);
    RefreshSearch();
    RefreshColumns();
}
Also used : GuiBigTextField(betterquesting.api.client.gui.controls.GuiBigTextField) GuiButtonThemed(betterquesting.api.client.gui.controls.GuiButtonThemed) GuiScrollingButtons(betterquesting.api.client.gui.lists.GuiScrollingButtons)

Example 2 with GuiScrollingButtons

use of betterquesting.api.client.gui.lists.GuiScrollingButtons in project BetterQuesting by Funwayguy.

the class GuiQuestLineEditorB method initGui.

@Override
public void initGui() {
    super.initGui();
    int btnWidth = sizeX / 2 - 16;
    int sx = sizeX - 32;
    this.searchBox = new GuiBigTextField(mc.fontRenderer, guiLeft + sizeX / 2 + 9, guiTop + 49, btnWidth - 18, 18);
    this.searchBox.setWatermark(I18n.format("betterquesting.gui.search"));
    this.buttonList.add(new GuiButtonThemed(1, guiLeft + 16 + sx / 4 * 3 - 50, guiTop + sizeY - 48, 100, 20, I18n.format("betterquesting.btn.new"), true));
    qlBtnList = new GuiScrollingButtons(mc, guiLeft + 16, guiTop + 48, btnWidth - 8, sizeY - 96);
    dbBtnList = new GuiScrollingButtons(mc, guiLeft + sizeX / 2 + 8, guiTop + 68, btnWidth - 8, sizeY - 116);
    this.embedded.add(qlBtnList);
    this.embedded.add(dbBtnList);
    RefreshSearch();
    RefreshColumns();
}
Also used : GuiBigTextField(betterquesting.api.client.gui.controls.GuiBigTextField) GuiButtonThemed(betterquesting.api.client.gui.controls.GuiButtonThemed) GuiScrollingButtons(betterquesting.api.client.gui.lists.GuiScrollingButtons)

Example 3 with GuiScrollingButtons

use of betterquesting.api.client.gui.lists.GuiScrollingButtons in project BetterQuesting by Funwayguy.

the class GuiTaskEditor method initGui.

@Override
public void initGui() {
    super.initGui();
    taskTypes = TaskRegistry.INSTANCE.getAll();
    taskIDs = quest.getTasks().getAllKeys();
    btnsLeft = new GuiScrollingButtons(mc, guiLeft + 16, guiTop + 32, sizeX / 2 - 24, sizeY - 64);
    btnsRight = new GuiScrollingButtons(mc, guiLeft + sizeX / 2 + 8, guiTop + 32, sizeX / 2 - 24, sizeY - 64);
    this.embedded.add(btnsLeft);
    this.embedded.add(btnsRight);
    RefreshColumns();
}
Also used : GuiScrollingButtons(betterquesting.api.client.gui.lists.GuiScrollingButtons)

Example 4 with GuiScrollingButtons

use of betterquesting.api.client.gui.lists.GuiScrollingButtons in project BetterQuesting by Funwayguy.

the class GuiJsonEntitySelection method initGui.

@Override
public void initGui() {
    super.initGui();
    for (ResourceLocation name : EntityList.getEntityNameList()) {
        entityNames.add(name.toString());
    }
    Collections.sort(entityNames);
    this.searchField = new GuiBigTextField(mc.fontRenderer, guiLeft + sizeX / 2 + 1, guiTop + 33, sizeX / 2 - 18, 14);
    this.searchField.setWatermark(I18n.format("betterquesting.gui.search"));
    this.searchField.setMaxStringLength(Integer.MAX_VALUE);
    btnList = new GuiScrollingButtons(mc, guiLeft + sizeX / 2, guiTop + 48, sizeX / 2 - 16, sizeY - 80);
    this.embedded.add(btnList);
    this.searching = entityNames.iterator();
    this.updateSearch();
}
Also used : ResourceLocation(net.minecraft.util.ResourceLocation) GuiBigTextField(betterquesting.api.client.gui.controls.GuiBigTextField) GuiScrollingButtons(betterquesting.api.client.gui.lists.GuiScrollingButtons)

Example 5 with GuiScrollingButtons

use of betterquesting.api.client.gui.lists.GuiScrollingButtons in project BetterQuesting by Funwayguy.

the class GuiRewardEditor method initGui.

@Override
public void initGui() {
    super.initGui();
    rewardTypes = RewardRegistry.INSTANCE.getAll();
    rewardIDs = quest.getRewards().getAllKeys();
    btnsLeft = new GuiScrollingButtons(mc, guiLeft + 16, guiTop + 32, sizeX / 2 - 24, sizeY - 64);
    btnsRight = new GuiScrollingButtons(mc, guiLeft + sizeX / 2 + 8, guiTop + 32, sizeX / 2 - 24, sizeY - 64);
    this.embedded.add(btnsLeft);
    this.embedded.add(btnsRight);
    RefreshColumns();
}
Also used : GuiScrollingButtons(betterquesting.api.client.gui.lists.GuiScrollingButtons)

Aggregations

GuiScrollingButtons (betterquesting.api.client.gui.lists.GuiScrollingButtons)7 GuiBigTextField (betterquesting.api.client.gui.controls.GuiBigTextField)4 GuiButtonThemed (betterquesting.api.client.gui.controls.GuiButtonThemed)4 GuiButtonStorage (betterquesting.api.client.gui.controls.GuiButtonStorage)1 IImporter (betterquesting.api.client.importers.IImporter)1 GuiTextField (net.minecraft.client.gui.GuiTextField)1 ResourceLocation (net.minecraft.util.ResourceLocation)1