|
@@ -1,21 +1,14 @@
|
|
|
package com.gmail.nossr50.datatypes.buttons;
|
|
|
|
|
|
-import org.getspout.spoutapi.gui.GenericButton;
|
|
|
-
|
|
|
import com.gmail.nossr50.datatypes.PlayerProfile;
|
|
|
|
|
|
-public class ButtonPartyToggle extends GenericButton
|
|
|
-{
|
|
|
- public ButtonPartyToggle(PlayerProfile PP)
|
|
|
- {
|
|
|
- this.setText("Party HUD: "+PP.getPartyHUD());
|
|
|
- this.setTooltip("Toggle the Party HUD!");
|
|
|
- this.setWidth(120).setHeight(20);
|
|
|
- this.setDirty(true);
|
|
|
- }
|
|
|
- public void updateText(PlayerProfile PP)
|
|
|
- {
|
|
|
- this.setText("Party HUD: "+PP.getPartyHUD());
|
|
|
- this.setDirty(true);
|
|
|
- }
|
|
|
-}
|
|
|
+public class ButtonPartyToggle extends ButtonToggle {
|
|
|
+
|
|
|
+ public ButtonPartyToggle(PlayerProfile PP) {
|
|
|
+ super("Party HUD: ", ((Boolean) PP.getPartyHUD()).toString(), "Toggle the Party HUD!");
|
|
|
+ }
|
|
|
+
|
|
|
+ public void updateText(PlayerProfile PP) {
|
|
|
+ super.updateText("Party HUD: ", ((Boolean) PP.getPartyHUD()).toString());
|
|
|
+ }
|
|
|
+}
|