### 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.
37 lines
727 B
C#
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
|
|
)
|
|
{
|
|
}
|
|
}
|