ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth archive => Topic started by: slyone on November 05, 2013, 06:48:10 PM

Title: Clarification of TUIWindowType
Post by: slyone on November 05, 2013, 06:48:10 PM
What does wtCharProfile refer to?  I've provided some context below.

I see that there is an enum for TUIWindowType.  An example of where TUIWindowType is used is in the Container class in ScriptAPI.cs:

Code: [Select]
#region Container
public class Container : Item
{
    ...

    public void Close()
    {
         Stealth.Script_CloseClientUIWindow(TUIWindowType.wtContainer, _id);
    }
}
#endregion

The TUIWindowType includes
Code: [Select]
wtCharProfile, wtContainer, wtPaperdoll, wtStatus
wtContainer is used in the example above.

wtPaperdoll and wtStatus are pretty self explanatory.  I could close my paperdoll and my status bar by doing the following:

Code: [Select]
Stealth.Script_CloseClientUIWindow(TUIWindowType.wtPaperdoll, Stealth.Script_GetSelfID());
Stealth.Script_CloseClientUIWindow(TUIWindowType.wtStatus, Stealth.Script_GetSelfID());

So what does wtCharProfile refer to?

Thanks,
S
Title: Re: Clarification of TUIWindowType
Post by: formerlyrara on November 06, 2013, 05:49:45 AM
Tidus, I wanted to say thanks for working the ginks out, it has made me 5k recalls in a very short order and i greatly appreciate it. The time involved by hand was annoying and this makes it so flawless. I appreciate it. Now if we can get wood pulp to blank scrolls implemented it would be a dream :)
Title: Re: Clarification of TUIWindowType
Post by: Crome969 on November 06, 2013, 06:13:47 AM
Once iam home, i could check in the Stealth Source Code what this refers to.
Title: Re: Clarification of TUIWindowType
Post by: ximan on November 06, 2013, 08:04:04 AM
What does wtCharProfile refer to?  I've provided some context below.

Haven't used stealth, however going to guess that it's the same as the profile_gump in easyuo. If you open a character's paperdoll and double click the scroll next to the party scroll, it'll pop up.
Title: Re: Clarification of TUIWindowType
Post by: Crome969 on November 06, 2013, 08:36:06 AM
http://docs.polserver.com/packets/index.php?Packet=0xBF

Code: [Select]
Subcommand 0x16: Close User Interface Windows
BYTE[4] Window ID

Window ID:s
0x01: Paperdoll
0x02: Status
0x08: Character Profile
0x0C: Container

So seems Ximan was right ;)
Title: Re: Clarification of TUIWindowType
Post by: Orich on November 06, 2013, 01:48:23 PM
I know I'm late to the party, but if you haven't realized yet, Script_CloseClientUIWindow() are for Client-side only gumps (ie. Not sent by the server)

Indeed, that window is extended Character Status gump.
Title: Re: Clarification of TUIWindowType
Post by: slyone on November 06, 2013, 05:19:23 PM
Excellent, thank you all for the feedback!