Tukaram

Member
I love working with gumps, and I have gotten pretty good. While looking around the "[add" command I stumbled upon a book called "Treasure Hunting: a Practical Approach By: Vespyr Jones" I have searched through the scripts and cannot find where this comes from. I love the look of the book, when opened, and would love to learn how to make something similar. I do not think it is any script I added in, but could not find it in the repo either. I really want to read the script to see how it was made.

Anyone know where it comes from, or how to find it?

Untitled-3.jpg
 
Wow, good find. I tried using Visual Studio to search for it, and had no luck.
Bad news is I see where it calls for the gump - but not like a regular gump. It is calling for some kind of localized text (lines 14, 15, and 29). Bummer...

C#:
        public override void OnDoubleClick(Mobile m)
        {
            if (m is PlayerMobile && IsChildOf(m.Backpack))
            {
                m.CloseGump(typeof(InternalGump));
                BaseGump.SendGump(new InternalGump((PlayerMobile)m));
            }
        }

        public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);

            list.Add(1158253); // Treasure Hunting: A Practical Approach
            list.Add(1154760, "#1158254"); // By: Vespyr Jones
        }

        public class InternalGump : BaseGump
        {
            public InternalGump(PlayerMobile pm)
                : base(pm, 10, 10)
            {
            }

            public override void AddGumpLayout()
            {
                AddImage(0, 0, 0x761C);
                AddImage(112, 40, 0x655);
                AddHtmlLocalized(113, 350, 342, 280, 1158255, C32216(0x080808), false, true);
            }
        }
 
Line 15 and 16 are just the properties for the properties list.

Line 29 is just the text under the image

so

AddImage(0, 0, 0x761C);
should be the book


AddImage(112, 40, 0x655);
should be the image ontop
 
You are right, the whatever localized text is not really important for what I want. The images are what I need. I have a gump cheat sheet with lots of images, buttons etc. I will have to add these. I love building gumps :cool:

I should not have missed that - I am too tired to read tonight ha ha. I think I can work with this! (in the morning....)
 
Also so you know, a localized text is a stored pre defined message(string) in the client files that can be referenced using the number. You can assume anytime you see localized numbers, it is referring to a string text in file, ie"You are too tired to move" = 123456, just like a image is referred to by its ID number and the actual image is stored and referenced in client file!

Hope that helps!
 
I know theoretically what they are, but not what any of the strings mean, or where to find them.
 
If you have UOFiddler you can access them

LocMSG.png


I attached a text file with the list if you do not have UOFiddler or alike!
 

Attachments

  • CliLoc.txt
    4.9 MB · Views: 5
Last edited by a moderator:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back