Exemplo n.º 1
0
        public override void Callback(ActionMenu menu)
        {
            var @out = new Packet(53);

            @out.WriteShort(onWidgetSlot);
            @out.WriteShortA(usedWidgetSlot);
            @out.WriteLEShortA(onItemIndex);
            @out.WriteShort(usedWidgetId);
            @out.WriteLEShort(usedItemIndex);
            @out.WriteShort(onWidgetId);
            GameContext.NetworkHandler.Write(@out);
        }
Exemplo n.º 2
0
 public void HandleMenu(ActionMenu menu)
 {
     if (InputUtils.MouseWithin(Bounds))
     {
         for (var i = 0; i < optionDisplays.Length; i++)
         {
             var factory = factories[i];
             if (factory != null)
             {
                 menu.Add(factory());
             }
         }
         menu.Add(new SwitchChatTabAction(this));
     }
 }
Exemplo n.º 3
0
        public override void Callback(ActionMenu menu)
        {
            var player = GameContext.Players[playerIndex];

            GameContext.WalkTo(2, 1, 1, GameContext.Self.PathX[0], GameContext.Self.PathY[0], player.PathX[0], player.PathY[0], 0, 0, 0, false);
            switch (optionIndex)
            {
            case 0:
            {
                var @out = new Packet(128);
                @out.WriteShort(playerIndex);
                GameContext.NetworkHandler.Write(@out);
                break;
            }

            case 1:
            {
                var @out = new Packet(153);
                @out.WriteLEShort(playerIndex);
                GameContext.NetworkHandler.Write(@out);
                break;
            }

            case 2:
            {
                var @out = new Packet(73);
                @out.WriteLEShort(playerIndex);
                GameContext.NetworkHandler.Write(@out);
                break;
            }

            case 3:
            {
                var @out = new Packet(139);
                @out.WriteLEShort(playerIndex);
                GameContext.NetworkHandler.Write(@out);
                break;
            }

            case 4:
            {
                var @out = new Packet(39);
                @out.WriteLEShort(playerIndex);
                GameContext.NetworkHandler.Write(@out);
                break;
            }
            }
        }
Exemplo n.º 4
0
 public override void Callback(ActionMenu menu)
 {
     tab.DisplayType = index;
 }
Exemplo n.º 5
0
 public override void Callback(ActionMenu menu)
 {
 }
Exemplo n.º 6
0
 public abstract void Callback(ActionMenu menu);