Class GumpBuilder
Fluent builder for UO generic gump layout strings and text lines.
public sealed class GumpBuilder
- Inheritance
-
GumpBuilder
- Inherited Members
Methods
BuildLayout()
Builds final layout string.
public string BuildLayout()
Returns
BuildTexts()
Builds final string table.
public IReadOnlyList<string> BuildTexts()
Returns
Button(int, int, int, int, int)
Adds a reply button. Pressing it closes the gump and sends 0xB1 with the selected button id.
public GumpBuilder Button(int x, int y, int normalId, int pressedId, int buttonId)
Parameters
Returns
ButtonPage(int, int, int, int, int)
Adds a page button that switches page client-side without a server round trip.
public GumpBuilder ButtonPage(int x, int y, int normalId, int pressedId, int pageId)
Parameters
Returns
CheckBox(int, int, int, int, int, bool)
Adds a checkbox and binds it to a switch id for response handling.
public GumpBuilder CheckBox(int x, int y, int inactiveId, int activeId, int switchId, bool initialState = false)
Parameters
Returns
HtmlLocalized(int, int, int, int, string, bool, bool)
Adds a HTML text area and stores the text in the gump string table.
public GumpBuilder HtmlLocalized(int x, int y, int width, int height, string text, bool background = true, bool scrollbar = false)
Parameters
Returns
NoClose()
Sets gump as non-closable.
public GumpBuilder NoClose()
Returns
NoMove()
Sets gump as non-movable.
public GumpBuilder NoMove()
Returns
ResizePic(int, int, int, int, int)
Adds a resizable background tile at the given position.
public GumpBuilder ResizePic(int x, int y, int gumpId, int width, int height)
Parameters
Returns
Text(int, int, int, string)
Adds a static text label using a pre-registered text line.
public GumpBuilder Text(int x, int y, int hue, string text)
Parameters
Returns
ToCompressedPacket(uint, uint, uint, uint)
Builds a compressed gump packet (0xDD) from the current builder state.
public CompressedGumpPacket ToCompressedPacket(uint senderSerial, uint gumpId, uint x, uint y)
Parameters
Returns
ToGenericPacket(uint, uint, uint, uint)
Builds an uncompressed generic gump packet (0xB0) from the current builder state.
public GenericGumpPacket ToGenericPacket(uint senderSerial, uint gumpId, uint x, uint y)