Exemple #1
0
        public void CreateItemList(int selectedGroup)
        {
            if (selectedGroup == 501)               // 501 : Last 10
            {
                CreateMakeLastList();
                return;
            }

            CraftGroupCol craftGroupCol = m_CraftSystem.CraftGroups;
            CraftGroup    craftGroup    = craftGroupCol.GetAt(selectedGroup);
            CraftItemCol  craftItemCol  = craftGroup.CraftItems;


            for (int i = 0; i < craftItemCol.Count; ++i)
            {
                int index = i % numitemsPerPage;

                CraftItem craftItem = craftItemCol.GetAt(i);

                if (index == 0)
                {
                    if (i > 0)
                    {
                        AddButton(370, 300, 4005, 4007, 0, GumpButtonType.Page, (i / numitemsPerPage) + 1);
                        AddHtmlLocalized(405, 303, 100, 18, 1044045, LabelColor, false, false);                           // NEXT PAGE
                    }

                    AddPage((i / numitemsPerPage) + 1);

                    if (i > 0)
                    {
                        AddButton(220, 300, 4014, 4015, 0, GumpButtonType.Page, i / numitemsPerPage);
                        AddHtmlLocalized(255, 303, 100, 18, 1044044, LabelColor, false, false);                           // PREV PAGE
                    }
                }

                AddButton(220, 60 + (index * 20), 4005, 4007, GetButtonID(1, i), GumpButtonType.Reply, 0);

                if (craftItem.NameNumber > 0)
                {
                    AddHtmlLocalized(255, 63 + (index * 20), 220, 18, craftItem.NameNumber, LabelColor, false, false);
                }
                else
                {
                    if (m_From.NetState.Version.Major <= 3)
                    {
                        AddHtml(255, 60 + (index * 20), 220, 18, "<BASEFONT COLOR=BLACK>" + craftItem.NameString, false, false);
                    }
                    else
                    {
                        AddHtml(255, 60 + (index * 20), 220, 18, "<BASEFONT COLOR=WHITE>" + craftItem.NameString, false, false);
                    }
                }

                //AddLabel( 255, 60 + (index * 20), LabelHue, craftItem.NameString );

                AddButton(480, 60 + (index * 20), 4011, 4012, GetButtonID(2, i), GumpButtonType.Reply, 0);
            }
        }
Exemple #2
0
        public void CreateItemList(int selectedGroup)
        {
            if (selectedGroup == 501)               // 501 : Last 10
            {
                CreateMakeLastList();
                return;
            }

            CraftGroupCol craftGroupCol = m_CraftSystem.CraftGroups;
            CraftGroup    craftGroup    = craftGroupCol.GetAt(selectedGroup);
            CraftItemCol  craftItemCol  = craftGroup.CraftItems;

            int i = 0;

            List <CraftItem> items = new List <CraftItem>(craftItemCol.Values);

            items.Sort();

            foreach (CraftItem craftItem in items)
            {
                int index = i % 10;

                // ********** Next and Previous Buttons **********
                if (index == 0)
                {
                    if (i > 0)
                    {
                        AddButton(370, 260, 4005, 4007, 0, GumpButtonType.Page, (i / 10) + 1);
                        AddHtmlLocalized(405, 263, 100, 18, 1044045, FontColor, false, false);                           // NEXT PAGE
                    }

                    AddPage((i / 10) + 1);

                    if (i > 0)
                    {
                        AddHtmlLocalized(255, 263, 100, 18, 1044044, FontColor, false, false);                           // PREV PAGE
                        AddButton(220, 260, 4014, 4015, 0, GumpButtonType.Page, i / 10);
                    }
                }
                // ********** End Next and Previous Buttons **********

                AddButton(220, 60 + (index * 20), 4005, 4007, craftItem.CraftId, GumpButtonType.Reply, 0);

                if (craftItem.NameNumber > 0)
                {
                    AddHtmlLocalized(255, 63 + (index * 20), 220, 18, craftItem.NameNumber, FontColor, false, false);
                }
                else
                {
                    AddLabel(255, 60 + (index * 20), LabelHue, craftItem.NameString);
                }

                AddButton(480, 60 + (index * 20), 4011, 4012, craftItem.CraftId + 1000, GumpButtonType.Reply, 0);

                i++;
            }
        }
Exemple #3
0
        public void CreateItemList(int selectedGroup)
        {
            if (selectedGroup == 501) // 501 : Last 10
            {
                CreateMakeLastList();
                return;
            }

            CraftGroupCol craftGroupCol = m_CraftSystem.CraftGroups;
            CraftGroup    craftGroup    = craftGroupCol.GetAt(selectedGroup);

            if (craftGroup == null)
            {
                return;
            }

            CraftItemCol craftItemCol = craftGroup.CraftItems;

            for (int i = 0; i < craftItemCol.Count; ++i)
            {
                int index = i % 10;

                CraftItem craftItem = craftItemCol.GetAt(i);

                if (index == 0)
                {
                    if (i > 0)
                    {
                        AddButton(370, 260, 4005, 4007, 0, GumpButtonType.Page, (i / 10) + 1);
                        AddHtmlLocalized(405, 263, 100, 18, 1044045, LabelColor, false, false); // NEXT PAGE
                    }

                    AddPage((i / 10) + 1);

                    if (i > 0)
                    {
                        AddButton(220, 260, 4014, 4015, 0, GumpButtonType.Page, i / 10);
                        AddHtmlLocalized(255, 263, 100, 18, 1044044, LabelColor, false, false); // PREV PAGE
                    }
                }

                AddButton(220, 60 + (index * 20), 4005, 4007, GetButtonID(1, i), GumpButtonType.Reply, 0);

                if (craftItem.NameNumber > 0)
                {
                    AddHtmlLocalized(255, 63 + (index * 20), 220, 18, craftItem.NameNumber, LabelColor, false, false);
                }
                else
                {
                    AddLabel(255, 60 + (index * 20), LabelHue, craftItem.NameString);
                }

                AddButton(480, 60 + (index * 20), 4011, 4012, GetButtonID(2, i), GumpButtonType.Reply, 0);
            }
        }
Exemple #4
0
        public CraftSystem(int minCraftEffect, int maxCraftEffect, double delay)
        {
            m_MinCraftEffect = minCraftEffect;
            m_MaxCraftEffect = maxCraftEffect;
            m_Delay          = delay;

            m_CraftItems   = new CraftItemCol();
            m_CraftGroups  = new CraftGroupCol();
            m_CraftSubRes  = new CraftSubResCol();
            m_CraftSubRes2 = new CraftSubResCol();

            InitCraftList();
        }
Exemple #5
0
        public CraftSystem( int minCraftEffect, int maxCraftEffect, double delay )
        {
            m_MinCraftEffect = minCraftEffect;
            m_MaxCraftEffect = maxCraftEffect;
            m_Delay = delay;

            m_CraftItems = new CraftItemCol();
            m_CraftGroups = new CraftGroupCol();
            m_CraftSubRes = new CraftSubResCol();
            m_CraftSubRes2 = new CraftSubResCol();

            InitCraftList();
        }
Exemple #6
0
        public int CreateGroupList()
        {
            CraftGroupCol craftGroupCol = m_CraftSystem.CraftGroups;

            CraftContext context = m_CraftSystem.GetContext(m_From);

            AddButton(15, 60, 4005, 4007, GetButtonID(6, 3), GumpButtonType.Reply, 0);
            AddHtmlLocalized(50, 63, 150, 18, 1044014, LabelColor, false, false);               // LAST TEN

            for (int a = 0; a < craftGroupCol.Count; a++)
            {
                CraftGroup craftGroup = craftGroupCol.GetAt(a);

                bool skillGainPossible = false;
                bool allRequiredSkills = true;

                if (context != null)
                {
                    CraftItemCol craftItemCol = craftGroup.CraftItems;
                    Type         resourceType = m_CraftSystem.CraftSubRes.ResType;

                    for (int b = 0; b < craftItemCol.Count; ++b)
                    {
                        CraftItem craftItem = craftItemCol.GetAt(b);

                        if (craftItem.SkillGainPossible(m_From, resourceType, m_CraftSystem, false, ref allRequiredSkills))
                        {
                            skillGainPossible = true;
                        }
                    }

                    if (!context.HighlightSkillGainItems)
                    {
                        skillGainPossible = false;
                    }
                }

                int textHue = LabelHue;

                if (skillGainPossible)
                {
                    textHue = skillGainPossibleHue;
                }

                AddButton(15, 80 + (a * 20), 4005, 4007, GetButtonID(0, a), GumpButtonType.Reply, 0);
                AddLabel(50, 80 + (a * 20), textHue, craftGroup.NameString);
            }

            return(craftGroupCol.Count);
        }
Exemple #7
0
        public CraftSystem(int minCraftEffect, int maxCraftEffect, double delay)
        {
            MinCraftEffect = minCraftEffect;
            MaxCraftEffect = maxCraftEffect;
            Delay          = delay;

            CraftItems   = new CraftItemCol();
            CraftGroups  = new CraftGroupCol();
            CraftSubRes  = new CraftSubResCol();
            CraftSubRes2 = new CraftSubResCol();

            InitCraftList();
            AddSystem(this);
        }
Exemple #8
0
        public CraftSystem(int minCraftEffect, int maxCraftEffect, double delay)
        {
            this.m_MinCraftEffect = minCraftEffect;
            this.m_MaxCraftEffect = maxCraftEffect;
            this.m_Delay = delay;

            this.m_CraftItems = new CraftItemCol();
            this.m_CraftGroups = new CraftGroupCol();
            this.m_CraftSubRes = new CraftSubResCol();
            this.m_CraftSubRes2 = new CraftSubResCol();

            this.InitCraftList();
            AddSystem(this);
        }
        public CraftSystem(int minCraftEffect, int maxCraftEffect, double delay)
        {
            MinCraftEffect = minCraftEffect;
            MaxCraftEffect = maxCraftEffect;
            Delay          = delay;

            CraftItems   = new CraftItemCol();
            CraftGroups  = new CraftGroupCol();
            CraftSubRes  = new CraftSubResCol();
            CraftSubRes2 = new CraftSubResCol();

            m_Recipes     = new List <int>();
            m_RareRecipes = new List <int>();

            InitCraftList();
        }
Exemple #10
0
        public void CreateItemList(int selectedGroup)
        {
            if (selectedGroup == 501)               // 501 : Last 10
            {
                CreateMakeLastList();
                return;
            }

            CraftGroupCol craftGroupCol = m_CraftSystem.CraftGroups;
            CraftGroup    craftGroup    = craftGroupCol.GetAt(selectedGroup);
            CraftItemCol  craftItemCol  = craftGroup.CraftItems;

            for (int i = 0; i < craftItemCol.Count; ++i)
            {
                CraftItem craftItem = craftItemCol.GetAt(i);


                int index = i % 10;


                if (index == 0)
                {
                    if (i > 0)
                    {
                        AddButton(370, 260, 4005, 4007, 0, GumpButtonType.Page, (i / 10) + 1);
                        AddHtmlLocalized(405, 263, 100, 18, 1044045, LabelColor, false, false);                           // NEXT PAGE
                    }

                    AddPage((i / 10) + 1);

                    if (i > 0)
                    {
                        AddButton(220, 260, 4014, 4015, 0, GumpButtonType.Page, i / 10);
                        AddHtmlLocalized(255, 263, 100, 18, 1044044, LabelColor, false, false);                           // PREV PAGE
                    }
                }



                if (craftItem.NameNumber > 0)
                {
                    AddHtmlLocalized(255, 63 + (index * 20), 220, 18, craftItem.NameNumber, LabelColor, false, false);
                }
                else
                {
                    AddLabel(255, 60 + (index * 20), LabelHue, craftItem.NameString);
                }

                // Plume : Section à décommenter si l'on souhaite que seul les items que le joueur peut crafter avec ses skills soient affichés
                bool CantDisplay = false;

                for (int t = 0; t < craftItem.Skills.Count; t++)
                {
                    CraftSkill skill = craftItem.Skills.GetAt(t);

                    if (skill.MinSkill > m_From.Skills[skill.SkillToMake].Value)
                    {
                        CantDisplay = true;
                        break;
                    }
                }

                if (CantDisplay)
                {
                    continue;
                }

                AddButton(220, 60 + (index * 20), 4005, 4007, GetButtonID(1, i), GumpButtonType.Reply, 0); // Quick Create
                AddButton(480, 60 + (index * 20), 4011, 4012, GetButtonID(2, i), GumpButtonType.Reply, 0); //Details
            }
        }
Exemple #11
0
        public void CreateItemList(int selectedGroup)
        {
            if (selectedGroup == 501) // 501 : Last 10
            {
                this.CreateMakeLastList();
                return;
            }

            CraftGroupCol craftGroupCol = this.m_CraftSystem.CraftGroups;
            CraftGroup    craftGroup    = craftGroupCol.GetAt(selectedGroup);
            CraftItemCol  craftItemCol  = craftGroup.CraftItems;

            //daat99 OWLTR start - recipe craft
            bool b_BankHive     = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.CRAFTING_BANK_HIVE),
                 b_StorageDeeds = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.CRAFTING_STORAGE_DEEDS),
                 b_Forge        = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.CRAFTING_MOBILE_FORGE),
                 b_RecipeCraft  = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.RECIPE_CRAFT),
                 b_Alchemy      = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.ALCHEMY_RECIPES),
                 b_Blacksmithy  = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.BLACKSMITH_RECIPES),
                 b_BowFletching = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.BOWFLETCH_RECIPES),
                 b_Carpentry    = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.CARPENTRY_RECIPES),
                 b_Cooking      = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.COOKING_RECIPES),
                 b_Glassblowing = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.GLASSBLOWING_RECIPES),
                 b_Inscription  = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.INSCRIPTION_RECIPES),
                 b_Masonry      = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.MASONRY_RECIPES),
                 b_Tailoring    = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.TAILORING_RECIPES),
                 b_Tinkering    = OWLTROptionsManager.IsEnabled(OWLTROptionsManager.OPTIONS_ENUM.TINKERING_RECIPES);

            if (b_RecipeCraft)
            {
                NewDaat99Holder dh = (NewDaat99Holder)daat99.Daat99OWLTR.TempHolders[m_From];

                int i, i_Length = 0;

                for (i = 0; i < craftItemCol.Count; ++i)
                {
                    int index = i_Length % 10;

                    CraftItem craftItem = craftItemCol.GetAt(i);

                    if (!dh.ItemTypeList.Contains(craftItem.ItemType) || (!b_Alchemy && m_CraftSystem is DefAlchemy) ||
                        (!b_Blacksmithy && m_CraftSystem is DefBlacksmithy) || (!b_BowFletching && m_CraftSystem is DefBowFletching) ||
                        (!b_Carpentry && m_CraftSystem is DefCarpentry) || (!b_Cooking && m_CraftSystem is DefCooking) ||
                        (!b_Glassblowing && m_CraftSystem is DefGlassblowing) || (!b_Inscription && m_CraftSystem is DefInscription) ||
                        (!b_Masonry && m_CraftSystem is DefMasonry) || (!b_Tailoring && m_CraftSystem is DefTailoring) ||
                        (!b_Tinkering && m_CraftSystem is DefTinkering))
                    {
                        if (index == 0)
                        {
                            if (i_Length > 0)
                            {
                                AddButton(370, 260, 4005, 4007, 0, GumpButtonType.Page, (i_Length / 10) + 1);
                                AddHtmlLocalized(405, 263, 100, 18, 1044045, LabelColor, false, false);                                   // NEXT PAGE
                            }

                            AddPage((i_Length / 10) + 1);

                            if (i_Length > 0)
                            {
                                AddButton(220, 260, 4014, 4015, 0, GumpButtonType.Page, i_Length / 10);
                                AddHtmlLocalized(255, 263, 100, 18, 1044044, LabelColor, false, false);                                   // PREV PAGE
                            }
                        }

                        if (craftItem.ItemType == typeof(BankHive) && !b_BankHive)
                        {
                            continue;
                        }
                        else if (craftItem.ItemType == typeof(MobileForge) && !b_Forge)
                        {
                            continue;
                        }
                        else if (craftItem.ItemType == typeof(BaseStorageDeed) && !b_StorageDeeds)
                        {
                            continue;
                        }

                        AddButton(220, 60 + (index * 20), 4005, 4007, GetButtonID(1, i), GumpButtonType.Reply, 0);

                        if (craftItem.NameNumber > 0)
                        {
                            AddHtmlLocalized(255, 63 + (index * 20), 220, 18, craftItem.NameNumber, LabelColor, false, false);
                        }
                        else
                        {
                            AddLabel(255, 60 + (index * 20), LabelHue, craftItem.NameString);
                        }

                        AddButton(480, 60 + (index * 20), 4011, 4012, GetButtonID(2, i), GumpButtonType.Reply, 0);
                        i_Length++;
                    }
                }
            }
            else
            {
                //daat99 OWLTR end - recipe craft
                for (int i = 0; i < craftItemCol.Count; ++i)
                {
                    int index = i % 10;

                    CraftItem craftItem = craftItemCol.GetAt(i);

                    if (index == 0)
                    {
                        if (i > 0)
                        {
                            this.AddButton(370, 260, 4005, 4007, 0, GumpButtonType.Page, (i / 10) + 1);
                            this.AddHtmlLocalized(405, 263, 100, 18, 1044045, LabelColor, false, false); // NEXT PAGE
                        }

                        this.AddPage((i / 10) + 1);

                        if (i > 0)
                        {
                            this.AddButton(220, 260, 4014, 4015, 0, GumpButtonType.Page, i / 10);
                            this.AddHtmlLocalized(255, 263, 100, 18, 1044044, LabelColor, false, false); // PREV PAGE
                        }
                    }
                    //daat99 OWLTR start - custom craftables
                    if (craftItem.ItemType == typeof(BankHive) && !b_BankHive)
                    {
                        continue;
                    }
                    else if (craftItem.ItemType == typeof(MobileForge) && !b_Forge)
                    {
                        continue;
                    }
                    else if (craftItem.ItemType == typeof(BaseStorageDeed) && !b_StorageDeeds)
                    {
                        continue;
                    }
                    //daat99 OWLTR end - custom craftables
                    this.AddButton(220, 60 + (index * 20), 4005, 4007, GetButtonID(1, i), GumpButtonType.Reply, 0);

                    if (craftItem.NameNumber > 0)
                    {
                        this.AddHtmlLocalized(255, 63 + (index * 20), 220, 18, craftItem.NameNumber, LabelColor, false, false);
                    }
                    else
                    {
                        this.AddLabel(255, 60 + (index * 20), LabelHue, craftItem.NameString);
                    }

                    this.AddButton(480, 60 + (index * 20), 4011, 4012, GetButtonID(2, i), GumpButtonType.Reply, 0);
                }
            }
        }
Exemple #12
0
        public void CreateItemList(int selectedGroup)
        {
            if (selectedGroup == 501) // 501 : Last 10
            {
                CreateMakeLastList();
                return;
            }

            CraftGroupCol craftGroupCol = m_CraftSystem.CraftGroups;
            CraftGroup    craftGroup    = craftGroupCol.GetAt(selectedGroup);
            CraftItemCol  craftItemCol  = craftGroup.CraftItems;

            CraftContext context = m_CraftSystem.GetContext(m_From);

            for (int i = 0; i < craftItemCol.Count; ++i)
            {
                int index = i % 10;

                CraftItem craftItem = craftItemCol.GetAt(i);

                if (index == 0)
                {
                    if (i > 0)
                    {
                        AddButton(395, 265, 4005, 4007, 0, GumpButtonType.Page, (i / 10) + 1);
                        AddHtmlLocalized(430, 268, 100, 18, 1044045, LabelColor, false, false); // NEXT PAGE
                    }

                    AddPage((i / 10) + 1);

                    if (i > 0)
                    {
                        AddButton(245, 265, 4014, 4015, 0, GumpButtonType.Page, i / 10);
                        AddHtmlLocalized(280, 268, 100, 18, 1044044, LabelColor, false, false); // PREV PAGE
                    }
                }

                AddButton(220, 60 + (index * 20), 4005, 4007, GetButtonID(1, i), GumpButtonType.Reply, 0);

                bool skillGainPossible = false;
                bool allRequiredSkills = true;

                if (context != null)
                {
                    Type resourceType = m_CraftSystem.CraftSubRes.ResType;

                    skillGainPossible = craftItem.SkillGainPossible(m_From, resourceType, m_CraftSystem, false, ref allRequiredSkills);

                    if (!context.HighlightSkillGainItems)
                    {
                        skillGainPossible = false;
                    }
                }

                string nameText = "";

                nameText += craftItem.NameString;

                if (craftItem.Count > 1)
                {
                    nameText += " (" + craftItem.Count.ToString() + ")";
                }

                if (skillGainPossible)
                {
                    AddLabel(255, 60 + (index * 20), skillGainPossibleHue, nameText);
                }

                else
                {
                    AddLabel(255, 60 + (index * 20), LabelHue, nameText);
                }

                AddButton(480, 60 + (index * 20), 4011, 4012, GetButtonID(2, i), GumpButtonType.Reply, 0);
            }
        }
Exemple #13
0
		public CraftGroup( int groupName )
		{
			m_NameNumber = groupName;
			m_arCraftItem = new CraftItemCol();
		}
Exemple #14
0
		public CraftGroup( string groupName )
		{
			m_NameString = groupName;
			m_arCraftItem = new CraftItemCol();
		}
Exemple #15
0
 public CraftGroup( TextDefinition groupName )
 {
     m_NameNumber = groupName;
     m_NameString = groupName;
     m_arCraftItem = new CraftItemCol();
 }
Exemple #16
0
        public void CreateItemList(int selectedGroup)
        {
            int numberOfPage = 0;

            if (selectedGroup == 501) // 501 : Last 10
            {
                CreateMakeLastList();
                return;
            }

            CraftGroupCol craftGroupCol = m_CraftSystem.CraftGroups;
            CraftGroup    craftGroup    = craftGroupCol.GetAt(selectedGroup);
            CraftItemCol  craftItemCol  = craftGroup.CraftItems;

            for (int i = 0; i < craftItemCol.Count; ++i)
            {
                int index = i % maxItemPerPage;

                CraftItem craftItem = craftItemCol.GetAt(i);

                if (index == 0)
                {
                    if (i > 0)
                    {
                        AddButton(780, 360, 4005, 4007, 0, GumpButtonType.Page, (i / maxItemPerPage) + 1);
                        //AddHtmlLocalized( 405, 263, 100, 18, 1044045, LabelColor, false, false ); // NEXT PAGE
                        AddHtml(655, 363, 200, 20, "<h3><basefont color=#FFFFFF>Page Suivante<basefont></h3>", false, false);
                    }

                    AddPage((i / maxItemPerPage) + 1);
                    numberOfPage++;

                    if (i > 0)
                    {
                        AddButton(220, 360, 4014, 4015, 0, GumpButtonType.Page, (i / maxItemPerPage));
                        //AddHtmlLocalized( 255, 263, 100, 18, 1044044, LabelColor, false, false ); // PREV PAGE
                        AddHtml(255, 363, 200, 20, "<h3><basefont color=#FFFFFF>Page Précédante<basefont></h3>", false, false);
                    }
                }

                if (i < (maxItemPerPage / 2 + ((numberOfPage - 1) * maxItemPerPage)))
                {
                    AddButton(220, 60 + (index * 20), 4005, 4007, GetButtonID(1, i), GumpButtonType.Reply, 0);

                    if (craftItem.NameNumber > 0)
                    {
                        AddHtmlLocalized(255, 63 + (index * 20), 220, 18, craftItem.NameNumber, LabelColor, false, false);
                    }
                    else
                    {
                        //AddLabel( 255, 60 + (index * 20), LabelHue, craftItem.NameString );
                        AddHtml(255, 60 + (index * 20), 200, 20, "<h3><basefont color=#FFFFFF>" + (i + 1) + ". " + craftItem.NameString + "<basefont></h3>", false, false);
                    }

                    AddButton(480, 60 + (index * 20), 4011, 4012, GetButtonID(2, i), GumpButtonType.Reply, 0);
                }
                else
                {
                    AddButton(520, 60 + ((index - maxItemPerPage / 2) * 20), 4005, 4007, GetButtonID(1, i), GumpButtonType.Reply, 0);

                    if (craftItem.NameNumber > 0)
                    {
                        AddHtmlLocalized(555, 63 + ((index - maxItemPerPage / 2) * 20), 220, 18, craftItem.NameNumber, LabelColor, false, false);
                    }
                    else
                    {
                        //AddLabel( 255, 60 + (index * 20), LabelHue, craftItem.NameString );
                        AddHtml(555, 60 + ((index - maxItemPerPage / 2) * 20), 200, 20, "<h3><basefont color=#FFFFFF>" + (i + 1) + ". " + craftItem.NameString + "<basefont></h3>", false, false);
                    }

                    AddButton(780, 60 + ((index - maxItemPerPage / 2) * 20), 4011, 4012, GetButtonID(2, i), GumpButtonType.Reply, 0);
                }
            }
        }
 public CraftGroup(TextDefinition groupName)
 {
     m_NameNumber  = groupName;
     m_NameString  = groupName;
     m_arCraftItem = new CraftItemCol();
 }
Exemple #18
0
 public CraftGroup(int groupName)
 {
     m_NameNumber  = groupName;
     m_arCraftItem = new CraftItemCol();
 }
Exemple #19
0
 public CraftGroup(string groupName)
 {
     m_NameString  = groupName;
     m_arCraftItem = new CraftItemCol();
 }