Example #1
0
  public void init() {
    if (hud != null) {
      if (hud.getRelativeY() >= 0) {
        txtRelY.setText(hud.getRelativeY() + "");
      }
      if (hud.getRelativeX() >= 0) {
        txtRelX.setText(hud.getRelativeX() + "");
      }

      if (hud.getRelativeHeight() > 0) {
        txtHei.setText(hud.getRelativeHeight() + "");
      }

      if (hud.getRelativeWidth() > 0) {
        txtWid.setText(hud.getRelativeWidth() + "");
      }
    }
  }