Table of Contents

Gump Menu Selection (0xB1)

Moongate Packet Classes

  • GumpMenuSelectionPacket (Incoming, Variable, length -1) from src/Moongate.Network.Packets/Incoming/UI/GumpMenuSelectionPacket.cs

Current Moongate Behavior

Moongate currently has packet classes for this opcode.

Packet Build

Type Field
BYTE[1] cmd
BYTE[2] length
BYTE[4] id (first Id in 0xb0)
BYTE[4] gumpId (second Id in 0xb0)
BYTE[4] buttonId (which button perssed ? 0 if closed)
BYTE[4] switchcount (response info for radio buttons and checkboxes, any switches listed here are switched on)

For each switch

Type Field
BYTE[4] SwitchId
BYTE[4] textcount (response info for textentries)

For each textentry

Type Field
BYTE[2] textId
BYTE[2] textlength
BYTE[length*2] Unicode text (not nullterminated)

Subcommand Build

N/A

Notes

N/A