コード例 #1
0
  private void drawSettingGenderUI() {
    g.drawPixmap(
        Assets.bnd_fish,
        (int) (Settings.screenWidth * 0.25),
        (int) (Settings.screenHeight * 0.25),
        (int) (Settings.screenWidth * 0.5),
        (int) (Settings.screenHeight * 0.5));

    g.drawPixmap(
        Assets.btn_settingGender,
        (int) (Settings.screenWidth * 0.5),
        (int) (Settings.screenHeight * 0.2),
        (int) (Settings.screenWidth * 0.3),
        (int) (Settings.screenHeight * 0.1));

    int j = mainNote % 12;
    int index = mainNote / 12;

    switch (j) {
      case 1:
      case 3:
      case 6:
      case 7:
      case 10:
        g.drawPixmap(
            Assets.sharp,
            (int) (Settings.screenWidth * 0.45),
            (int) (Settings.screenHeight * 0.4),
            (int) (Settings.screenWidth * 0.1),
            (int) (Settings.screenWidth * 0.1));
    }
    g.drawPixmap(
        Assets.notes[j],
        (int) (Settings.screenWidth * 0.35),
        (int) (Settings.screenHeight * 0.4),
        (int) (Settings.screenWidth * 0.1),
        (int) (Settings.screenWidth * 0.1));

    g.drawPixmap(
        Assets.numberBlue[index + 2],
        (int) (Settings.screenWidth * 0.55),
        (int) (Settings.screenHeight * 0.4),
        (int) (Settings.screenWidth * 0.1),
        (int) (Settings.screenWidth * 0.1));
  }
コード例 #2
0
  @Override
  public void present(float deltaTime) {
    // bg
    g.drawPixmap(Assets.bg_main, 0, 0, Settings.screenWidth, Settings.screenHeight);

    g.drawPixmap(
        Assets.mop[2],
        (int) (Settings.screenWidth * 0.15),
        (int) (Settings.screenHeight * 0.8),
        (int) (Settings.screenWidth * 0.12),
        (int) (Settings.screenWidth * 0.12));
    g.drawPixmap(
        Assets.mop[4],
        (int) (Settings.screenWidth * 0.3),
        (int) (Settings.screenHeight * 0.78),
        (int) (Settings.screenWidth * 0.15),
        (int) (Settings.screenWidth * 0.15));

    g.drawPixmap(Assets.btn_back);

    if (state == 0) drawSettingUI();
    if (state == 1) drawSettingGenderUI();
    if (state == 2) drawSettingNoiseUI();
  }
コード例 #3
0
  private void drawSettingNoiseUI() {

    g.drawPixmap(
        Assets.bnd_fish,
        (int) (Settings.screenWidth * 0.25),
        (int) (Settings.screenHeight * 0.25),
        (int) (Settings.screenWidth * 0.5),
        (int) (Settings.screenHeight * 0.5));

    g.drawPixmap(
        Assets.btn_settingNoise,
        (int) (Settings.screenWidth * 0.5),
        (int) (Settings.screenHeight * 0.2),
        (int) (Settings.screenWidth * 0.3),
        (int) (Settings.screenHeight * 0.1));

    g.drawPixmap(
        Assets.numberBlue[decibelArray[0]],
        (int) (Settings.screenWidth * 0.35),
        (int) (Settings.screenHeight * 0.42),
        (int) (Settings.screenWidth * 0.1),
        (int) (Settings.screenWidth * 0.1));
    g.drawPixmap(
        Assets.numberBlue[decibelArray[1]],
        (int) (Settings.screenWidth * 0.4),
        (int) (Settings.screenHeight * 0.42),
        (int) (Settings.screenWidth * 0.1),
        (int) (Settings.screenWidth * 0.1));
    g.drawPixmap(
        Assets.numberBlue[decibelArray[2]],
        (int) (Settings.screenWidth * 0.45),
        (int) (Settings.screenHeight * 0.42),
        (int) (Settings.screenWidth * 0.1),
        (int) (Settings.screenWidth * 0.1));

    g.drawPixmap(
        Assets.db,
        (int) (Settings.screenWidth * 0.52),
        (int) (Settings.screenHeight * 0.4),
        (int) (Settings.screenWidth * 0.1),
        (int) (Settings.screenWidth * 0.1));
  }
コード例 #4
0
  private void drawSettingUI() {
    g.drawPixmap(
        Assets.bnd_settingTable,
        (int) (Settings.screenWidth * 0.55),
        (int) (Settings.screenHeight * 0.1),
        (int) (Settings.screenWidth * 0.4),
        (int) (Settings.screenHeight * 0.7));

    g.drawPixmap(Assets.btn_settingGender);

    if (genderMode == 0) {
      g.drawPixmap(Assets.btn_settingGenderMalec);
      g.drawPixmap(Assets.btn_settingGenderFemale);
    } else if (genderMode == 1) {
      g.drawPixmap(Assets.btn_settingGenderMale);
      g.drawPixmap(Assets.btn_settingGenderFemalec);
    }

    g.drawPixmap(Assets.btn_settingNoise);

    g.drawPixmap(Assets.bnd_main); // main_board

    // coin
    g.drawPixmap(
        Assets.numberBlack[Settings.coinArray_SaveFile[0]],
        (int) (Settings.screenWidth * 0.35),
        (int) (Settings.screenHeight * 0.11),
        (int) (Settings.screenWidth * 0.03),
        (int) (Settings.screenHeight * 0.08));
    g.drawPixmap(
        Assets.numberBlack[Settings.coinArray_SaveFile[1]],
        (int) (Settings.screenWidth * 0.37),
        (int) (Settings.screenHeight * 0.11),
        (int) (Settings.screenWidth * 0.03),
        (int) (Settings.screenHeight * 0.08));
    g.drawPixmap(
        Assets.numberBlack[Settings.coinArray_SaveFile[2]],
        (int) (Settings.screenWidth * 0.39),
        (int) (Settings.screenHeight * 0.11),
        (int) (Settings.screenWidth * 0.03),
        (int) (Settings.screenHeight * 0.08));
    g.drawPixmap(
        Assets.numberBlack[Settings.coinArray_SaveFile[3]],
        (int) (Settings.screenWidth * 0.41),
        (int) (Settings.screenHeight * 0.11),
        (int) (Settings.screenWidth * 0.03),
        (int) (Settings.screenHeight * 0.08));
    g.drawPixmap(
        Assets.numberBlack[Settings.coinArray_SaveFile[4]],
        (int) (Settings.screenWidth * 0.43),
        (int) (Settings.screenHeight * 0.11),
        (int) (Settings.screenWidth * 0.03),
        (int) (Settings.screenHeight * 0.08));

    // // level

    g.drawPixmap(
        Assets.numberBlack[Settings.levelArray_SaveFile[3]],
        (int) (Settings.screenWidth * 0.17),
        (int) (Settings.screenHeight * 0.225),
        (int) (Settings.screenWidth * 0.03),
        (int) (Settings.screenHeight * 0.08));
    g.drawPixmap(
        Assets.numberBlack[Settings.levelArray_SaveFile[4]],
        (int) (Settings.screenWidth * 0.19),
        (int) (Settings.screenHeight * 0.225),
        (int) (Settings.screenWidth * 0.03),
        (int) (Settings.screenHeight * 0.08));

    // // exp gauge
    g.drawPixmap(
        Assets.expGauge,
        0,
        0,
        Assets.expGauge.getBitmapWidth() * Settings.savefile.getExp() / 100,
        Assets.expGauge.getBitmapHeight(),
        (int) (Settings.screenWidth * 0.23),
        (int) (Settings.screenHeight * 0.23),
        (int) (Settings.screenWidth * 0.25) * Settings.savefile.getExp() / 100,
        (int) (Settings.screenHeight * 0.08));

    g.drawPixmap(Assets.bnd_exp);

    // // exp %
    g.drawPixmap(
        Assets.numberWhite[Settings.expArray_SaveFile[3]],
        (int) (Settings.screenWidth * 0.33),
        (int) (Settings.screenHeight * 0.24),
        (int) (Settings.screenWidth * 0.03),
        (int) (Settings.screenHeight * 0.07));
    g.drawPixmap(
        Assets.numberWhite[Settings.expArray_SaveFile[4]],
        (int) (Settings.screenWidth * 0.35),
        (int) (Settings.screenHeight * 0.24),
        (int) (Settings.screenWidth * 0.03),
        (int) (Settings.screenHeight * 0.07));
    g.drawPixmap(
        Assets.percent,
        (int) (Settings.screenWidth * 0.38),
        (int) (Settings.screenHeight * 0.25),
        (int) (Settings.screenWidth * 0.02),
        (int) (Settings.screenHeight * 0.05));

    // // item

    for (Item item : Settings.savefile.item) {
      if (item.getUsing()) {
        if (item.type == 0) {
          g.drawPixmap(
              Assets.item_bundle[item.id],
              (int) (Settings.screenWidth * 0.13),
              (int) (Settings.screenHeight * 0.51),
              (int) (Settings.screenWidth * 0.15),
              (int) (Settings.screenHeight * 0.25));
          g.drawPixmap(
              Assets.item_TxtRope[item.id],
              (int) (Settings.screenWidth * 0.16),
              (int) (Settings.screenHeight * 0.48),
              (int) (Settings.screenWidth * 0.1),
              (int) (Settings.screenHeight * 0.05));
        } else if (item.type == 1) {
          g.drawPixmap(
              Assets.item_miki[item.id],
              (int) (Settings.screenWidth * 0.32),
              (int) (Settings.screenHeight * 0.53),
              (int) (Settings.screenWidth * 0.15),
              (int) (Settings.screenHeight * 0.21));
          g.drawPixmap(
              Assets.item_TxtMiki[item.id],
              (int) (Settings.screenWidth * 0.345),
              (int) (Settings.screenHeight * 0.48),
              (int) (Settings.screenWidth * 0.1),
              (int) (Settings.screenHeight * 0.05));
        }
      }
    }
  }