ModernUO/Projects/UOContent/Gumps/NoticeGump.cs
Kamron Batman bb7bc57e42
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.
2024-04-26 17:19:16 -07:00

37 lines
727 B
C#

using System;
namespace Server.Gumps;
public class NoticeGump : WarningGump
{
public NoticeGump(
TextDefinition content, int width, int height,
Action callback = null
) : this(
1060637, // <CENTER>NOTICE</CENTER>
0x7800,
content,
0xFFC000,
width,
height,
callback
)
{
}
public NoticeGump(
int header, int headerColor, TextDefinition content, int contentColor, int width, int height,
Action callback = null
) : base(
header,
headerColor,
content,
contentColor,
width,
height,
callback != null ? _ => callback() : null,
false
)
{
}
}