From 7959a3253a5303fbe5ffbb933755d8f0d04b6f4c Mon Sep 17 00:00:00 2001 From: Victor Chelaru Date: Mon, 1 Jan 2024 11:22:12 -0700 Subject: [PATCH] Adding a new platformer value now refreshes the variable grid (dropdowns) fixes #1315 --- .../Glue/PlatformerPlugin/Views/AllPlatformerValues.xaml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/FRBDK/Glue/PlatformerPlugin/Views/AllPlatformerValues.xaml.cs b/FRBDK/Glue/PlatformerPlugin/Views/AllPlatformerValues.xaml.cs index a33f50d2d..04f57ba0d 100644 --- a/FRBDK/Glue/PlatformerPlugin/Views/AllPlatformerValues.xaml.cs +++ b/FRBDK/Glue/PlatformerPlugin/Views/AllPlatformerValues.xaml.cs @@ -1,4 +1,5 @@ -using FlatRedBall.PlatformerPlugin.Data; +using FlatRedBall.Glue.Plugins.ExportedImplementations; +using FlatRedBall.PlatformerPlugin.Data; using FlatRedBall.PlatformerPlugin.ViewModels; using FlatRedBall.Utilities; using Newtonsoft.Json; @@ -67,6 +68,9 @@ private void AddPlatformerValues(string predefinedName) values.Name = newItemName; ViewModel.PlatformerValues.Add(values); + + // This adds new items to the dropdowns: + GlueCommands.Self.RefreshCommands.RefreshVariables(); }