/********* ** Public methods *********/ /// <summary>Get the config UI fields to show in the cheats menu.</summary> /// <param name="context">The cheat context.</param> public override IEnumerable <OptionsElement> GetFields(CheatContext context) { foreach (int amount in new[] { 100, 1000, 10000, 100000 }) { yield return(new CheatsOptionsButton( label: I18n.Add_AmountGold(amount: amount), slotWidth: context.SlotWidth, toggle: () => this.AddMoney(amount) )); } }