fix: Uses client bug to make addon containers work (#776)

* Fixes tooltip for container furniture so it works. This doesn't work on ClassicUO.
* Fixes double click opening container furniture by double clicking the addon component.
* Fixes the context menu not showing up sometimes on the addon piece.

Note: You cannot drop anything into the addon component since it might be far away and it is not a real container. There is no easy fix for this without building an entire custom container class for addons or changing how items drag/drop entirely. Requires closing/opening container gumps as it switches from one component to another that shares the same content. Also requires sharing tooltips, invalidated properties, process delta changes, etc.
Not worth the effort.

<img width="444" alt="Screen_Shot_2021-09-12_at_4 27 28_PM" src="https://user-images.githubusercontent.com/3953314/133011752-c5b54cf2-2c7b-45c0-882d-0365ef62e686.png">
This commit is contained in:
Kamron Batman 2021-09-12 22:23:15 -07:00 committed by GitHub
parent 52dacec68f
commit c5e35c9b69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 104 additions and 86 deletions

View file

@ -2696,9 +2696,9 @@ namespace Server.Gumps
{
case 0:
{
@from.SendGump(
from.SendGump(
new AdminGump(
@from,
from,
AdminGumpPage.AccountDetails_Information,
0,
null,
@ -2710,9 +2710,9 @@ namespace Server.Gumps
}
case 1:
{
@from.SendGump(
from.SendGump(
new AdminGump(
@from,
from,
AdminGumpPage.AccountDetails_Characters,
0,
null,
@ -2724,9 +2724,9 @@ namespace Server.Gumps
}
case 2:
{
@from.SendGump(
from.SendGump(
new AdminGump(
@from,
from,
AdminGumpPage.AccountDetails_Comments,
0,
null,
@ -2738,23 +2738,23 @@ namespace Server.Gumps
}
case 3:
{
@from.SendGump(
new AdminGump(@from, AdminGumpPage.AccountDetails_Tags, 0, null, null, m_State)
from.SendGump(
new AdminGump(from, AdminGumpPage.AccountDetails_Tags, 0, null, null, m_State)
);
break;
}
case 13:
{
@from.SendGump(
new AdminGump(@from, AdminGumpPage.AccountDetails_Access, 0, null, null, m_State)
from.SendGump(
new AdminGump(from, AdminGumpPage.AccountDetails_Access, 0, null, null, m_State)
);
break;
}
case 14:
{
@from.SendGump(
from.SendGump(
new AdminGump(
@from,
from,
AdminGumpPage.AccountDetails_Access_ClientIPs,
0,
null,
@ -2766,9 +2766,9 @@ namespace Server.Gumps
}
case 15:
{
@from.SendGump(
from.SendGump(
new AdminGump(
@from,
from,
AdminGumpPage.AccountDetails_Access_Restrictions,
0,
null,
@ -2780,14 +2780,14 @@ namespace Server.Gumps
}
case 4:
{
@from.Prompt = new AddCommentPrompt(m_State as Account);
@from.SendMessage("Enter the new account comment.");
from.Prompt = new AddCommentPrompt(m_State as Account);
from.SendMessage("Enter the new account comment.");
break;
}
case 5:
{
@from.Prompt = new AddTagNamePrompt(m_State as Account);
@from.SendMessage("Enter the new tag name.");
from.Prompt = new AddTagNamePrompt(m_State as Account);
from.SendMessage("Enter the new tag name.");
break;
}
case 6:
@ -2897,9 +2897,9 @@ namespace Server.Gumps
}
case 8:
{
@from.SendGump(
from.SendGump(
new AdminGump(
@from,
from,
AdminGumpPage.AccountDetails_ChangePassword,
0,
null,
@ -2911,9 +2911,9 @@ namespace Server.Gumps
}
case 9:
{
@from.SendGump(
from.SendGump(
new AdminGump(
@from,
from,
AdminGumpPage.AccountDetails_ChangeAccess,
0,
null,