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();
}
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();
}
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();
}
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();
}
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();
}
Aggregations