Search in sources :

Example 6 with ToolTip

use of buildcraft.lib.gui.elem.ToolTip in project BuildCraft by BuildCraft.

the class GuiZonePlan method initGui.

@SuppressWarnings("unchecked")
@Override
public void initGui() {
    super.initGui();
    tool = new GuiBetterButton(0, guiLeft + 27, guiTop + 111, 15, StandardButtonTextureSets.SMALL_BUTTON, "+");
    tool.setToolTip(new ToolTip(new ToolTipLine(LocaleUtil.localize("tip.tool.add"))));
    buttonList.add(tool);
    fsButton = new GuiBetterButton(1, guiLeft + 44, guiTop + 111, 20, StandardButtonTextureSets.SMALL_BUTTON, "FS");
    fsButton.setToolTip(new ToolTip(new ToolTipLine(LocaleUtil.localize("tip.tool.fullscreen"))));
    buttonList.add(fsButton);
    savedButtonList = buttonList;
    textField = new GuiTextField(1, this.fontRendererObj, 28, 129, 156, 12);
    textField.setMaxStringLength(DefaultProps.MAX_NAME_SIZE);
    textField.setText(zonePlan.mapName);
    textField.setFocused(true);
}
Also used : ToolTip(buildcraft.lib.gui.elem.ToolTip) ToolTipLine(buildcraft.core.lib.gui.tooltips.ToolTipLine) GuiBetterButton(buildcraft.lib.gui.button.GuiBetterButton) GuiTextField(net.minecraft.client.gui.GuiTextField)

Aggregations

ToolTip (buildcraft.lib.gui.elem.ToolTip)6 ToolTipLine (buildcraft.core.lib.gui.tooltips.ToolTipLine)2 GuiElementToolTip (buildcraft.lib.gui.GuiElementToolTip)2 ITooltipElement (buildcraft.lib.gui.ITooltipElement)2 GuiBetterButton (buildcraft.lib.gui.button.GuiBetterButton)2 IGuiArea (buildcraft.lib.gui.pos.IGuiArea)2 GuiTextField (net.minecraft.client.gui.GuiTextField)2 ISprite (buildcraft.api.core.render.ISprite)1 BCCoreSprites (buildcraft.core.BCCoreSprites)1 IToolTipProvider (buildcraft.core.lib.gui.tooltips.IToolTipProvider)1 BCLibSprites (buildcraft.lib.BCLibSprites)1 FunctionContext (buildcraft.lib.expression.FunctionContext)1 INodeBoolean (buildcraft.lib.expression.api.IExpressionNode.INodeBoolean)1 INodeObject (buildcraft.lib.expression.api.IExpressionNode.INodeObject)1 InvalidExpressionException (buildcraft.lib.expression.api.InvalidExpressionException)1 GuiBC8 (buildcraft.lib.gui.GuiBC8)1 GuiIcon (buildcraft.lib.gui.GuiIcon)1 ISimpleDrawable (buildcraft.lib.gui.ISimpleDrawable)1 GuiButtonDrawable (buildcraft.lib.gui.button.GuiButtonDrawable)1 GuiElementDrawable (buildcraft.lib.gui.elem.GuiElementDrawable)1