UnofficalProjectAresTeam/mod_Ares — pull request #42 by molenzwiebel (2013-04-30 18:58:54+00:00)
Title: Add GuiButtonTooltip, allows buttons to have tooltips

This Pull request adds GuiButtonTooltip, a extension of GuiButton which is very easy to use.

Change
````java
this.buttonList.add(new GuiButton(200, x, y, 150, 20, stringtranslate.translateKey("gui.done"));
````
to
````java
this.buttonList.add(new GuiButtonTooltip(200, this.width / 2 - 170, this.height - 28, 150, 20, stringtranslate.translateKey("gui.done"), "Closes the gui"));
````

Short version:
````java
GuiButton to GuiButtonToolip
Add a extra string argument to the constructor which is the text in the tooltip.
````