From f9119a3620ea0b12f69acdf017e29117baafcfae Mon Sep 17 00:00:00 2001 From: CRISPYricePC Date: Tue, 19 Mar 2019 14:25:07 +0000 Subject: [PATCH] Fixed bugs to do with the Items menu Opening the items menu now doesn't show all the details. You now have to select an item to do that Fixed an issue where the program would crash when trying to add a command to a gettable item --- SkeletonGameMaker/Item.cs | 6 +++++- SkeletonGameMaker/ItemsMenu.xaml | 11 ++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/SkeletonGameMaker/Item.cs b/SkeletonGameMaker/Item.cs index e0608da..cd1ae75 100644 --- a/SkeletonGameMaker/Item.cs +++ b/SkeletonGameMaker/Item.cs @@ -130,7 +130,11 @@ public void OverWriteCommands(List commandList) if (IsGettable) { - newCommand += ",get"; + if (newCommand.Length != 0) + { + newCommand += ","; + } + newCommand += "get"; } Commands = newCommand; diff --git a/SkeletonGameMaker/ItemsMenu.xaml b/SkeletonGameMaker/ItemsMenu.xaml index 70c301a..87c09c6 100644 --- a/SkeletonGameMaker/ItemsMenu.xaml +++ b/SkeletonGameMaker/ItemsMenu.xaml @@ -4,19 +4,20 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:SkeletonGameMaker" - mc:Ignorable="d" Loaded="UserControl_Loaded" IsVisibleChanged="UserControl_IsVisibleChanged" MinWidth="800" MinHeight="450"> + mc:Ignorable="d" Loaded="UserControl_Loaded" IsVisibleChanged="UserControl_IsVisibleChanged" MinWidth="800" MinHeight="450" + MaxWidth="4096" MaxHeight="4096">