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
13
Projects/UOContent/Gumps/StaticNoticeGump.cs
Normal file
13
Projects/UOContent/Gumps/StaticNoticeGump.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
|
||||
namespace Server.Gumps;
|
||||
|
||||
public abstract class StaticNoticeGump<T> : StaticWarningGump<T> where T : StaticNoticeGump<T>
|
||||
{
|
||||
public override int Header => 1060637; // <CENTER>NOTICE</CENTER>
|
||||
public sealed override bool CancelButton => false;
|
||||
|
||||
public StaticNoticeGump(Action callback = null) : base(callback != null ? _ => callback() : null)
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue