package gregtech.api.gui.widgets; import java.awt.*; import java.util.ArrayList; import java.util.List; public class GT_GuiTooltip { protected Rectangle bounds; private List text; public boolean enabled = true; public GT_GuiTooltip(Rectangle bounds, String... text) { this.bounds = bounds; setToolTipText(text); } protected void updateText() { } public void setToolTipText(String... text) { if (text != null) { this.text = new ArrayList<>(text.length); for (int i = 0; i < text.length; i++) { if (i == 0) this.text.add("\u00a7f" + text[i]); else this.text.add("\u00a77" + text[i]); } } else this.text = new ArrayList<>(); } public List getToolTipText() { return text; } }