fBaseXtensions.Game.GameCache.ReturnTownRunObjectDialogElement C# (CSharp) Метод

ReturnTownRunObjectDialogElement() публичный статический Метод

public static ReturnTownRunObjectDialogElement ( TownRunBehavior type ) : UIElement
type TownRunBehavior
Результат UIElement
        public static UIElement ReturnTownRunObjectDialogElement(TownRunBehavior type)
        {
            switch (type)
            {
                case TownRunBehavior.Stash:
                    return UIElements.StashWindow;
                case TownRunBehavior.Sell:
                    return UIElements.VendorWindow;
                case TownRunBehavior.Salvage:
                    return UIElements.SalvageWindow;
                case TownRunBehavior.Gamble:
                    return UI.Game.BloodShardVendorMainDialog;
                case TownRunBehavior.NephalemObelisk:
                    return UI.Game.NeaphlemObeliskDialog;
                case TownRunBehavior.Tyrael:
                    return UI.Game.Conversation_Selection_Dialog;
            }

            return null;
        }