Author Topic: Clarification of TUIWindowType  (Read 4727 times)

0 Members and 1 Guest are viewing this topic.

Offline slyoneTopic starter

  • Full Member
  • ***
  • Posts: 135
  • Activity:
    0%
  • Reputation Power: 2
  • slyone has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 1
    • View Profile
Clarification of TUIWindowType
« on: November 05, 2013, 06:48:10 PM »
0
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
Started playing back at the Second Age

Offline formerlyrara

  • Full Member
  • ***
  • Posts: 137
  • Activity:
    0%
  • Reputation Power: 2
  • formerlyrara has no influence.
  • Respect: +19
  • Referrals: 0
    • View Profile
Re: Clarification of TUIWindowType
« Reply #1 on: November 06, 2013, 05:49:45 AM »
0
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 :)

Offline Crome969

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Clarification of TUIWindowType
« Reply #2 on: November 06, 2013, 06:13:47 AM »
0
Once iam home, i could check in the Stealth Source Code what this refers to.

Offline ximan

  • Jr. Member
  • **
  • Posts: 98
  • Activity:
    0%
  • Reputation Power: 1
  • ximan has no influence.
  • Respect: +16
  • Referrals: 1
    • View Profile
Re: Clarification of TUIWindowType
« Reply #3 on: November 06, 2013, 08:04:04 AM »
0
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.

Offline Crome969

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Clarification of TUIWindowType
« Reply #4 on: November 06, 2013, 08:36:06 AM »
0
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 ;)

Offline Orich

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 3
  • Orich has no influence.
  • Respect: +12
  • Referrals: 1
    • View Profile
Re: Clarification of TUIWindowType
« Reply #5 on: November 06, 2013, 01:48:23 PM »
0
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.
Member of the Stealth development team.
Author of Stealth .NET DLL

Offline slyoneTopic starter

  • Full Member
  • ***
  • Posts: 135
  • Activity:
    0%
  • Reputation Power: 2
  • slyone has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 1
    • View Profile
Re: Clarification of TUIWindowType
« Reply #6 on: November 06, 2013, 05:19:23 PM »
0
Excellent, thank you all for the feedback!
Started playing back at the Second Age

Tags: