Ejemplo n.º 1
0
        //Contructor
        public OptionsScreen()
        {
            option_member = new Options_Members();
            option_member.Create_Lists();

            fields[0] = new Control1_Field(0, numFields, "Video", numItems);

            control = new Control1(numFields, numItems);

            items[0] = new Control1_Item(0, "Resolution", option_member.GetString(1, 0), 3, option_member.GetList(1).Count);
        }
Ejemplo n.º 2
0
        //Contructor
        public CharCreationScreen()
        {
            charCreatin_member = new CharCreation_Members();

            numitems1 = charCreatin_member.GetList(10, 0).Count;
            numitems2 = charCreatin_member.GetList(10, 2).Count;
            numitems3 = charCreatin_member.GetList(10, 1).Count;

            fields[0] = new Control1_Field(0, numFields, "Character", numitems1);
            fields[2] = new Control1_Field(2, numFields, "Clothes", numitems2);
            fields[1] = new Control1_Field(1, numFields, "Appearance", numitems3);

            control = new Control1(numFields, numitems1);

            for (int i = 0; i < numitems1; i++)
            {
                items1[i] = new Control1_Item(
                    itemID: i,
                    itemname: charCreatin_member.GetList(10, 0)[i],
                    itemsetting: charCreatin_member.GetString(0, i, 0),
                    fieldID: 0,
                    maxindex: charCreatin_member.GetList(i, 0).Count
                    );
            }

            for (int i = 0; i < numitems2; i++)
            {
                items2[i] = new Control1_Item(
                    itemID: i,
                    itemname: charCreatin_member.GetList(10, 2)[i],
                    itemsetting: charCreatin_member.GetString(2, i, 0),
                    fieldID: 2,
                    maxindex: charCreatin_member.GetList(i, 2).Count
                    );
            }
            for (int i = 0; i < numitems3; i++)
            {
                items3[i] = new Control1_Item(
                    itemID: i,
                    itemname: charCreatin_member.GetList(10, 1)[i],
                    itemsetting: charCreatin_member.GetString(1, i, 0),
                    fieldID: 1,
                    maxindex: charCreatin_member.GetList(i, 1).Count
                    );
            }

            characterCreator = new CharacterCreator();
        }