public ItemInfoMenu(UnnamedDataContext ctx, Func <UnnamedMenu> prevMenu, Item item, Action <Ability> Select) : base(ctx, prevMenu) { ThisMenu = () => new ItemInfoMenu(ctx, prevMenu, item, Select); Options = new ObservableCollection <Option>(); Options.Add(new Option("Back", () => Next(PrevMenu()))); Options.Add(new Option("Use", () => Select(item.UseAbiltiy))); }
public AbilityInfoMenu(UnnamedDataContext ctx, Func <UnnamedMenu> prevMenu, Ability ability, Action <Ability> Select) : base(ctx, prevMenu) { ThisMenu = () => new AbilityInfoMenu(ctx, prevMenu, ability, Select); Options = new ObservableCollection <Option>(); Options.Add(new Option("Back", () => Next(PrevMenu()))); Options.Add(new Option("Use", () => Select(ability))); }
public SelectActionMenu(UnnamedDataContext ctx, Func <UnnamedMenu> prevMenu, Entity entity, Action <Ability> Select) : base(ctx, prevMenu) { ThisMenu = () => new SelectActionMenu(ctx, prevMenu, entity, Select); Options = new ObservableCollection <Option>(); Options.Add(new Option("Attack", () => Select(new Ability("Attack")))); Options.Add(new Option("Abilities", () => Next(new SelectAbilityMenu(Ctx, ThisMenu, entity, Select)))); Options.Add(new Option("Items", () => Next(new SelectItemMenu(Ctx, ThisMenu, entity, Select)))); }
public SelectAbilityMenu(UnnamedDataContext ctx, Func <UnnamedMenu> prevMenu, Entity entity, Action <Ability> Select) : base(ctx, prevMenu) { ThisMenu = () => new SelectAbilityMenu(ctx, prevMenu, entity, Select); Options = new ObservableCollection <Option>(); Options.Add(new Option("Back", () => Next(PrevMenu()))); foreach (Ability ability in entity.Abilities) { Options.Add(new Option(ability.Name, () => Next(new AbilityInfoMenu(Ctx, ThisMenu, ability, Select)))); } }
public SelectItemMenu(UnnamedDataContext ctx, Func <UnnamedMenu> prevMenu, Entity entity, Action <Ability> Select) : base(ctx, prevMenu) { ThisMenu = () => new SelectItemMenu(ctx, prevMenu, entity, Select); Options = new ObservableCollection <Option>(); Options.Add(new Option("Back", () => Next(PrevMenu()))); foreach (Item item in entity.Items) { Options.Add(new Option(item.Name, () => Next(new ItemInfoMenu(Ctx, ThisMenu, item, Select)))); } }