コード例 #1
0
ファイル: KerriUtils.java プロジェクト: sonicram/hnh_union
  // minimap panel button curio
  public static void makeButtonSC() {
    new IButton(
            new Coord(140, 8),
            UI.instance.minimappanel,
            Resource.loadimg("gfx/hud/buttons/curiosityu"),
            Resource.loadimg("gfx/hud/buttons/curiosityd")) {
          // Kerrigan
          // я в душе не ибу правильно ли это, я в яву не могу
          // оверрайд так через жопу подстанавливается автоматически, не ругайте меня, это хотябы
          // вроде работает
          @Override
          public void setPushed(boolean pushed) {
            super.setPushed(Config.show_minimap_profits);
          }

          public void click() {
            Config.show_minimap_profits = !Config.show_minimap_profits;
            setPushed(Config.show_minimap_profits);
            UI.instance.slenhud.error(
                "Show objects on minimap: " + Boolean.toString(Config.show_minimap_profits));
            Config.saveOptions();
          }
        }.tooltip =
        "Show different shit on minimap";
  }
コード例 #2
0
ファイル: KerriUtils.java プロジェクト: sonicram/hnh_union
  // minimap panel button other players
  public static void makeButtonOP() {
    new IButton(
            new Coord(160, 8),
            UI.instance.minimappanel,
            Resource.loadimg("gfx/hud/buttons/humanu"),
            Resource.loadimg("gfx/hud/buttons/humand")) {
          @Override
          public void setPushed(boolean pushed) {
            super.setPushed(Config.show_minimap_players);
          }

          public void click() {
            Config.show_minimap_players = !Config.show_minimap_players;
            setPushed(Config.show_minimap_players);
            UI.instance.slenhud.error(
                "Show hearthlings on minimap: " + Boolean.toString(Config.show_minimap_players));
            Config.saveOptions();
          }
        }.tooltip =
        "Show other players on minimap";
  }
コード例 #3
0
ファイル: KerriUtils.java プロジェクト: sonicram/hnh_union
  // minimap panel buton object health
  public static void makeButtonOH() {
    new IButton(
            new Coord(200, 8),
            UI.instance.minimappanel,
            Resource.loadimg("gfx/hud/buttons/healthu"),
            Resource.loadimg("gfx/hud/buttons/healthd")) {
          @Override
          public void setPushed(boolean pushed) {
            super.setPushed(Config.show_gob_health);
          }

          public void click() {
            Config.show_gob_health = !Config.show_gob_health;
            setPushed(Config.show_gob_health);
            UI.instance.slenhud.error(
                "Show objects health: " + Boolean.toString(Config.show_gob_health));
            Config.saveOptions();
          }
        }.tooltip =
        "Show objects health";
  }
コード例 #4
0
ファイル: KerriUtils.java プロジェクト: sonicram/hnh_union
  // minimap panel button vision radius
  public static void makeButtonVR() {
    new IButton(
            new Coord(180, 8),
            UI.instance.minimappanel,
            Resource.loadimg("gfx/hud/buttons/radiusu"),
            Resource.loadimg("gfx/hud/buttons/radiusd")) {
          @Override
          public void setPushed(boolean pushed) {
            super.setPushed(Config.show_minimap_radius);
          }

          public void click() {

            Config.show_minimap_radius = !Config.show_minimap_radius;
            setPushed(Config.show_minimap_radius);
            UI.instance.slenhud.error(
                "Show vision rect: " + Boolean.toString(Config.show_minimap_radius));
            Config.saveOptions();
          }
        }.tooltip =
        "Show vision radius on minimap";
  }