예제 #1
0
파일: Dark Dawn.cs 프로젝트: adituv/gsmagic
        void loadEnemies(TabControl a)
        {
            TabPage       d  = a.SelectedTab;
            Table_Manager tm = new Table_Manager();

            tm.setTable(ram, 0x17726C, 0x58);
            tm.setPanel(a.SelectedTab);          //tabPage6);
            int pnlx = 250;                      //d.Width / 2 - 150 + 50;
            int pnly = 20;                       // d.Height / 2 - 125;
            //d.Text = "Forge";
            List <int> items = new List <int>(); // = {5, 6, 7 };

            items.Add(5);
            String[] text = { "" };            // "Processed", "Rusted" };

            //tm.doCombo(pnlx + 200, pnly + 20, Bits.textToBytes(text)
            //tm.doTableListbox2(Bits.textToBytes(text), Bits.numList(83));
            tm.doTableListbox2(ram, Bits.numList(366, 221));
            String[] lbl = { "ID", "Level", "Type", "HP", "PP", "Attack", "Defense", "Agility", "Luck", "Turns", "HP Regen", "PP Regen" };
            for (int i = 0; i < 12; i++)
            {
                tm.doLabel(pnlx, pnly + 0 + i * 20, lbl[i]);
            }
            tm.doNud(pnlx + 100, pnly + 0, 0, 32);
            tm.doNud(pnlx + 100, pnly + 20, 4, 8);             //Level
            tm.doNud(pnlx + 100, pnly + 40, 5, 8);
            tm.doNud(pnlx + 100, pnly + 60, 6, 16);            //HP
            tm.doNud(pnlx + 100, pnly + 80, 8, 16);            //PP
            tm.doNud(pnlx + 100, pnly + 100, 10, 16);          //Atk
            tm.doNud(pnlx + 100, pnly + 120, 12, 16);          //Def
            tm.doNud(pnlx + 100, pnly + 140, 14, 16);          //Agl
            tm.doNud(pnlx + 100, pnly + 160, 16, 8);           //Lck
            tm.doNud(pnlx + 100, pnly + 180, 17, 8);           //Turns
            tm.doNud(pnlx + 100, pnly + 200, 18, 8);
            tm.doNud(pnlx + 100, pnly + 220, 19, 8);

            //Items
            tm.doLabel(pnlx + 220, pnly, "Item");
            tm.doNud(pnlx + 220, pnly + 20, 20, 16);
            tm.doNud(pnlx + 220, pnly + 40, 22, 16);
            tm.doNud(pnlx + 220, pnly + 60, 24, 16);
            tm.doNud(pnlx + 220, pnly + 80, 26, 16);
            tm.doLabel(pnlx + 340, pnly, "Quantity");
            tm.doNud(pnlx + 340, pnly + 20, 28, 8);
            tm.doNud(pnlx + 340, pnly + 40, 29, 8);
            tm.doNud(pnlx + 340, pnly + 60, 30, 8);
            tm.doNud(pnlx + 340, pnly + 80, 31, 8);

            //Element
            //pnlx = ?
            pnly = 280;
            Label ae = tm.doLabel(pnlx, pnly, "Attack Element");

            //ae.Width = 200;
            String[] elements = { "Venus", "Mercury", "Mars", "Jupiter", "Neutral" };
            tm.doCombo(pnlx, pnly + 20, Bits.textToBytes(elements), Bits.numList(5), 0x20, 8);

            tm.doLabel(pnlx + 100, pnly + 60, "Venus");
            tm.doLabel(pnlx + 200, pnly + 60, "Mercury");
            tm.doLabel(pnlx + 300, pnly + 60, "Mars");
            tm.doLabel(pnlx + 400, pnly + 60, "Jupiter");

            tm.doLabel(pnlx, pnly + 80, "Level");
            tm.doLabel(pnlx, pnly + 100, "Power");
            tm.doLabel(pnlx, pnly + 120, "Resist");

            tm.doNud(pnlx + 100, pnly + 80, 0x21, 8);
            tm.doNud(pnlx + 200, pnly + 80, 0x22, 8);
            tm.doNud(pnlx + 300, pnly + 80, 0x23, 8);
            tm.doNud(pnlx + 400, pnly + 80, 0x24, 8);
            //0x25 = Unused?
            tm.doNud(pnlx + 100, pnly + 100, 0x26, 16);
            tm.doNud(pnlx + 100, pnly + 120, 0x28, 16);
            tm.doNud(pnlx + 200, pnly + 100, 0x2A, 16);
            tm.doNud(pnlx + 200, pnly + 120, 0x2C, 16);
            tm.doNud(pnlx + 300, pnly + 100, 0x2E, 16);
            tm.doNud(pnlx + 300, pnly + 120, 0x30, 16);
            tm.doNud(pnlx + 400, pnly + 100, 0x32, 16);
            tm.doNud(pnlx + 400, pnly + 120, 0x34, 16);
        }