Esempio n. 1
0
 public void draw1()
 {
     value_change_coin.draw1();
 }
    public void draw1()
    {
        {
            value_change1_1.draw1();
            value_change1_2.draw1();
            value_change2_1.draw1();
            value_change2_2.draw1();

            value_move1.draw1();
            value_move2.draw1();

            shake_move1.draw1();
            shake_move2.draw1();
        }

        {
            //HP
            {
                //    g1.sc(32);
                //    g1.drawRect(0, y4 + y10-24, 720, 48, 0, 1);

                int w1 = 720;
                g1.drawImage2(ic1.loadcheck(4, 2, 0), 0, call_dy(0) - 24 - 4, w1, 32);
                g1.sc(16);
                g1.drawRect(0, call_dy(0) - 24 + 28, 720, 48, 0, 1);

                {
                    int x77 = call_dx(0);
                    int y77 = call_dy(0) + 2;

                    int att1 = s1.battle_run.battle_member_group.call_member_attribute();
                    s1.dm1.attribute_draw(x77, y77, att1, 0.8f, 0, 0);
                }

                for (int t1 = 0; t1 <= 1; t1++)
                {
                    int n1 = 320;

                    int x70 = call_dx(1) + (int)shake_move1.call_move_x() / 2;
                    int x71 = call_dx(2) + (int)shake_move2.call_move_x() / 2;

                    int y70 = call_dy(1) + (int)shake_move1.call_move_y() / 2;
                    int y71 = call_dy(2) + (int)shake_move2.call_move_y() / 2;

                    g1.sc(240);

                    //     g1.drawRect(20, y4 + y10, 360 - 40, 22 - y10, 0, 0);
                    if (t1 == 0)
                    {
                        int num1 = value_hp_call();
                        int num2 = value_mhp_call();

                        s1.dm1.gauge_window_draw1(x70, y70, n1 - 40, 100 * num1 / num2, 101, 12, 0, 0);
                    }


                    if (t1 == 1)
                    {
                        int num1 = value_mp_call();
                        int num2 = value_mmp_call();

                        s1.dm1.gauge_window_draw1(x71, y71, n1 - 40, 100 * num1 / num2, 102, 12, 0, 0);
                    }

                    g1.sc(240);

                    int nt2 = 270;
                    int nt3 = 120;

                    g1.setfont(g1.FONT_1_SMALL_STR);

                    int str_w1 = 10;

                    if (t1 == 0)
                    {
                        int num1    = value_hp_call();
                        int num2    = value_mhp_call();
                        int length1 = m1.strbyte("" + num1) + m1.strbyte("" + num2);

                        g1.str2("HP ", x70 + 8, y70 - 10);
                        //    g1.str2("7200 / 7200", x70 + 8 + nt2 - nt3, y4);
                        g1.str2("" + num1 + " / " + num2, x70 + 8 + nt2 - nt3 + str_w1 * (6 - (length1 - 2)), (y70 - 10));

                        //    g1.str2("7200 / 700", x70 + 8 + nt2 - nt3 + str_w1 * 1, (y70 - 10) - 20);
                        //    g1.str2("720 / 70", x70 + 8 + nt2 - nt3 + str_w1 * 3, (y70 - 10) - 40);
                        //    g1.str2("0 / 0", x70 + 8 + nt2 - nt3 + str_w1 * 6, (y70 - 10) - 60);
                    }

                    if (t1 == 1)
                    {
                        int num1    = value_mp_call();
                        int num2    = value_mmp_call();
                        int length1 = m1.strbyte("" + num1) + m1.strbyte("" + num2);

                        g1.str2("MP ", x71 + 8, y71 - 10);
                        g1.str2("" + num1 + " / " + num2, x71 + 8 + nt2 - nt3 + str_w1 * (6 - (length1 - 2)), (y71 - 10));
                    }

                    g1.setfont_re();
                }
            }
        }
    }//draw1()