Prechádzať zdrojové kódy

fix: фикс багов лабиринта

klmnvan 4 mesiacov pred
rodič
commit
d42f3d33c5

+ 9 - 2
HelloItQuantum/ViewModels/LabyrinthViewModel.cs

@@ -6,6 +6,8 @@ using Avalonia;
 using Avalonia.Controls;
 using Avalonia.Media;
 using ExCSS;
+using HelloItQuantum.Function;
+using HelloItQuantum.Views;
 
 
 namespace HelloItQuantum.ViewModels
@@ -30,8 +32,12 @@ namespace HelloItQuantum.ViewModels
             TextInSP = "Çäîðîâî! Ðàêåòà îêàçàëñÿ íà èññëåäîâàòåëüñêîé ñòàíöèè è ïîìîã ïðîôåññîðó ïî÷èíèòü ëàáîðàòîðèþ. Ìèññèÿ âûïîëíåíà!";
             IsVisibleContextWindow = false;
         }
-       
-        
+
+        public void GoBack()
+        {
+            PageSwitch.View = new PlaySectionView();
+        }
+
         public void AddButton(string comand)
         {
 			ListCommandForRobots.HorizontalAlignment = Avalonia.Layout.HorizontalAlignment.Center;
@@ -105,6 +111,7 @@ namespace HelloItQuantum.ViewModels
             }
             if (googCommands)
             {
+                WorkWithFile.UpdateValueGameProgress(2, 100, CurrentUser);
                 TextInSP = "Çäîðîâî! Ðàêåòà îêàçàëñÿ íà èññëåäîâàòåëüñêîé ñòàíöèè è ïîìîã ïðîôåññîðó ïî÷èíèòü ëàáîðàòîðèþ. Ìèññèÿ âûïîëíåíà!";
                 IsVisibleContextWindow = true;
                 TextInBTN = "Çàêðûòü";

+ 1 - 1
HelloItQuantum/Views/LabyrinthView.axaml

@@ -100,7 +100,7 @@
 						<!--Кнопка Выйти-->
 						<Border CornerRadius="20" Background="#B21E22" BoxShadow="0 5 #470C0D" Margin="-10 20 0 0" HorizontalAlignment="Right" Height="40" Width="200"
 								IsVisible="True">
-							<Button Command="{Binding LabyrinthVM.HotkeysVM.GoBack}" VerticalContentAlignment="Center"
+							<Button Command="{Binding LabyrinthVM.GoBack}" VerticalContentAlignment="Center"
 									 CommandParameter="Нет" CornerRadius="20" Height="40" Width="200">
 								<TextBlock Text="Выйти" TextAlignment="Center" FontSize="24" Foreground="#FFFFFF" />
 							</Button>