fix: Adds static warning/notice gumps. (#1741)
### Summary * Adds `StaticNoticeGump<T>` and `StaticWarningGump<T>` * Converts NoticeGump/WarningGump to use `DynamicGump` * Changes various uses of notice gump and warning gump to their static counterpart.
This commit is contained in:
parent
65532ea887
commit
bb7bc57e42
19 changed files with 713 additions and 430 deletions
|
|
@ -1246,7 +1246,7 @@ namespace Server.Mobiles
|
|||
notice = "The server is currently under lockdown. You have sufficient access level to connect.";
|
||||
}
|
||||
|
||||
from.SendGump(new NoticeGump(1060637, 30720, notice, 0xFFC000, 300, 140));
|
||||
from.SendGump(new ServerLockdownNoticeGump(notice));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -1257,6 +1257,15 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
private class ServerLockdownNoticeGump : StaticNoticeGump<ServerLockdownNoticeGump>
|
||||
{
|
||||
public override int Width => 300;
|
||||
public override int Height => 140;
|
||||
public override string Content { get; }
|
||||
|
||||
public ServerLockdownNoticeGump(string content) => Content = content;
|
||||
}
|
||||
|
||||
public void ValidateEquipment()
|
||||
{
|
||||
if (m_NoDeltaRecursion || Map == null || Map == Map.Internal)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue