Exemple #1
0
        /// <summary>
        /// Sends a gump using an existing GumpData structure
        /// </summary>
        ///
        public static void SendGump(GumpData gd, uint x, uint y)
        {
            m_gumpData[gd.gumpId] = gd;
            GenericGump gg = new GenericGump(gd.gumpId, gd.serial, gd.x, gd.y, gd.gumpDefinition, gd.gumpStrings);

            Assistant.Client.Instance.SendToClientWait(gg);
        }
Exemple #2
0
        /// <summary>
        /// Hack some gump test stuff
        /// </summary>
        ///
        public static void SendGump(uint gumpid, uint serial, uint x, uint y,
                                    string gumpDefinition, List <string> gumpStrings)
        {
            GumpData gd = new GumpData
            {
                gumpId         = gumpid,
                serial         = serial,
                x              = x,
                y              = y,
                hasResponse    = false,
                gumpDefinition = gumpDefinition,
                gumpStrings    = new List <string>()
            };

            gd.gumpStrings.AddRange(gumpStrings);
            //
            m_gumpData[gumpid] = gd;
            GenericGump gg = new GenericGump(gd.gumpId, gd.serial, gd.x, gd.y, gd.gumpDefinition, gd.gumpStrings);

            Assistant.Client.Instance.SendToClientWait(gg);
        }