Skip to content

Commit

Permalink
Merge branch 'NetStandard' of https://github.com/vchelaru/FlatRedBall
Browse files Browse the repository at this point in the history
…into NetStandard
  • Loading branch information
vchelaru committed Jan 16, 2024
2 parents e2f05b3 + 49e7349 commit 35f64e8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions FRBDK/Glue/Glue/Controls/CreatePluginWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.Windows.Forms;
using L = Localization;
using MessageBox = System.Windows.Forms.MessageBox;
using GlueFormsCore.Extensions;

namespace FlatRedBall.Glue.Controls;

Expand All @@ -36,6 +37,13 @@ public CreatePluginWindow()
FillInstalledPluginComboBox();

UpdateToSelectedSource();

Loaded += HandleLoaded;
}

private void HandleLoaded(object sender, RoutedEventArgs e)
{
this.MoveToCursor();
}

#region Methods
Expand Down
2 changes: 1 addition & 1 deletion FRBDK/Glue/Glue/VSHelpers/VSSolution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static bool AddExistingProjectWithDotNet(FilePath solution, FilePath proj
var startInfo = new ProcessStartInfo
{
FileName = "dotnet.exe",
Arguments = $"sln \"{solution.FullPath}\" add \"{project.FullPath}\"",
Arguments = $"sln \"{solution.FullPath}\" add \"{project.FullPath.Replace("/", "\\")}\" --in-root",
CreateNoWindow = true,
WindowStyle = ProcessWindowStyle.Hidden,
RedirectStandardOutput = true,
Expand Down
2 changes: 2 additions & 0 deletions FRBDK/Glue/GlueCommon/SaveClasses/VariableDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public class VariableDefinition
[JsonIgnore]
public Func<IElement, NamedObjectSave, ReferencedFileSave, List<string>> CustomGetForcedOptionFunc;

// Added Jan 15 2024, default to true to match behavior
public bool CanBeSetInFile = true;

public bool HasGetter { get; set; } = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ private void HandleNamedObjectSelect(NamedObjectSave namedObject, GlueElement cu
}
foreach(var variable in ati.VariableDefinitions)
{
variable.DefaultValue = null;
if(variable.CanBeSetInFile == false)
{
variable.DefaultValue = null;
}
}
}

Expand Down

0 comments on commit 35f64e8

Please sign in to comment.