List of usage examples for net.minecraftforge.fml.client.config HoverChecker HoverChecker
public HoverChecker(int top, int bottom, int left, int right, int threshold)
From source file:appeng.integration.modules.jei.CondenserOutputWrapper.java
License:Open Source License
CondenserOutputWrapper(CondenserOutput condenserOutput, ItemStack outputItem, IDrawable buttonIcon) {
this.condenserOutput = condenserOutput;
this.outputItem = outputItem;
this.buttonIcon = buttonIcon;
this.buttonHoverChecker = new HoverChecker(28, 28 + 16, 78, 78 + 16, 0);
}
From source file:com.kegare.friendlymobs.client.gui.GuiSelectMob.java
License:Minecraft Mod Public
@Override public void initGui() { Keyboard.enableRepeatEvents(true);//ww w . j a va 2 s .co m if (mobList == null) { mobList = new MobList(this); } mobList.setDimensions(width, height, 32, height - 28); if (doneButton == null) { doneButton = new GuiButtonExt(0, 0, 0, 145, 20, I18n.format("gui.done")); } doneButton.xPosition = width / 2 + 10; doneButton.yPosition = height - doneButton.height - 4; buttonList.clear(); buttonList.add(doneButton); if (filterTextField == null) { filterTextField = new GuiTextField(1, fontRendererObj, 0, 0, 150, 16); filterTextField.setMaxStringLength(100); } filterTextField.xPosition = width / 2 - filterTextField.width - 5; filterTextField.yPosition = height - filterTextField.height - 6; if (selectedHoverChecker == null) { selectedHoverChecker = new HoverChecker(0, 20, 0, 100, 800); } }