Exemplo n.º 1
0
        void ShowMenu(Vector2 position)
        {
            menu.Clear();

            if (!view.Location.IsCity)
            {
                menu.AddLine("@burn?351", (CommandHandler)OnMenuInfo);
                if (fightMode)
                {
                    menu.AddLine("@burn?350", (CommandHandler)OnMenuSpeak);
                }
                else
                {
                    menu.AddLine("@burn?352", (CommandHandler)OnMenuFight);
                }
            }

            if (view.Player.Group.Count > 1)
            {
                if (!view.Player.SingleMode)
                {
                    menu.AddLine("@burn?358", (CommandHandler)OnMenuSingle);
                }
                else
                {
                    menu.AddLine("@burn?356", (CommandHandler)OnMenuAll);
                }
            }

            if (charOverlay.SelectedCharacter != view.Player.Character)
            {
                menu.AddLine("@burn?363", (CommandHandler)OnMenuDismiss);
                if (view.Player.Group.Contains(charOverlay.SelectedCharacter))
                {
                    menu.AddLine("@burn?364", (CommandHandler)OnMenuMakeCamp);
                }
                else
                {
                    menu.AddLine("@burn?365", (CommandHandler)OnMenuLeaveCamp);
                }
            }

            menu.AddLine("@burn?362", (CommandHandler)OnMenuMap);
            menu.AddLine("@burn?367", (CommandHandler)OnMenuInventory);
            menu.AddLine("@burn?357", (CommandHandler)OnMenuTurn);

            menu.Show(position, view.Boundings);
        }