private void SellButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
        {
            CloseWindow();
            DaggerfallTradeWindow sellWindow = new DaggerfallTradeWindow(uiManager, DaggerfallTradeWindow.WindowModes.Sell, this);

            uiManager.PushWindow(sellWindow);
        }
        private void ServiceButton_OnMouseClick(BaseScreenComponent sender, Vector2 position)
        {
            switch (service)
            {
            case GuildServices.FG_Quests:
            case GuildServices.MG_Quests:
            case GuildServices.TG_Quests:
            case GuildServices.DB_Quests:
            case GuildServices.T_Quests:
                GetQuest();
                break;

            case GuildServices.MG_Identify:
                CloseWindow();
                uiManager.PushWindow(new DaggerfallTradeWindow(uiManager, DaggerfallTradeWindow.WindowModes.Identify, this));
                break;

            case GuildServices.MG_Training:
            case GuildServices.FG_Training:
            case GuildServices.TG_Training:
            case GuildServices.DB_Training:
            case GuildServices.TAk_Training:
            case GuildServices.TAr_Training:
            case GuildServices.TDi_Training:
            case GuildServices.TJu_Training:
            case GuildServices.TKy_Training:
            case GuildServices.TMa_Training:
            case GuildServices.TSt_Training:
            case GuildServices.TZe_Training:
                TrainingService();
                break;

            case GuildServices.MG_Buy_Magic_Items:
                CloseWindow();
                DaggerfallTradeWindow tradeWindow = new DaggerfallTradeWindow(uiManager, DaggerfallTradeWindow.WindowModes.Buy, this);
                tradeWindow.MerchantItems = GetMerchantItems();
                uiManager.PushWindow(tradeWindow);
                break;

            case GuildServices.MG_Teleportation:
                CloseWindow();
                DaggerfallUI.Instance.DfTravelMapWindow.ActivateTeleportationTravel();
                uiManager.PushWindow(DaggerfallUI.Instance.DfTravelMapWindow);
                break;

            case GuildServices.MG_Buy_Spells:
            //uiManager.PushWindow(new DaggerfallBankingWindow(uiManager, this));
            //break;

            default:
                CloseWindow();
                DaggerfallUI.MessageBox("Guild service not yet implemented.");
                break;
            }
        }
Exemple #3
0
 public TradeMacroDataSource(DaggerfallTradeWindow tradeWindow)
 {
     this.parent = tradeWindow;
 }