public void hide() {
   visible = false;
   hud.refresh();
 }
 public void toggle() {
   visible = !visible;
   hud.refresh();
 }
 // show/hide methods:
 public void show() {
   visible = true;
   hud.refresh();
 }