From 2741d1b6f38f3220198559e6b328da3456c30f60 Mon Sep 17 00:00:00 2001 From: Todd Matthews Date: Mon, 27 Nov 2023 08:22:14 -0500 Subject: [PATCH] Add orientation swap to 1, 10HW, 10VL --- .../UI/ClientWindow/MainWindow.xaml.cs | 12 ++++------- .../RadioOverlayOneHorizontal.xaml | 21 ++++++++++++++++++- .../RadioOverlayOneHorizontal.xaml.cs | 14 ++++++++++--- .../RadioOverlayOneVertical.xaml | 21 ++++++++++++++++++- .../RadioOverlayOneVertical.xaml.cs | 11 +++++++++- .../RadioOverlayTenHorizontalWide.xaml | 19 +++++++++++++++++ .../RadioOverlayTenHorizontalWide.xaml.cs | 12 ++++++++++- .../RadioOverlayTenVerticalLong.xaml | 21 ++++++++++++++++++- .../RadioOverlayTenVerticalLong.xaml.cs | 12 ++++++++++- 9 files changed, 126 insertions(+), 17 deletions(-) diff --git a/DCS-SR-Client/UI/ClientWindow/MainWindow.xaml.cs b/DCS-SR-Client/UI/ClientWindow/MainWindow.xaml.cs index 757a9e7a..edd324ec 100644 --- a/DCS-SR-Client/UI/ClientWindow/MainWindow.xaml.cs +++ b/DCS-SR-Client/UI/ClientWindow/MainWindow.xaml.cs @@ -1743,20 +1743,16 @@ private void ToggleOverlay(bool uiButton, int switchTo) windows[switchTo] = new RadioOverlayWindowTenHorizontal(ToggleOverlay); break; case 8: - // TODO: Add Toggle Overlay for Horizontal Swap - windows[switchTo] = new RadioOverlayWindowOneVertical(); + windows[switchTo] = new RadioOverlayWindowOneVertical(ToggleOverlay); break; case 9: - // TODO: Add Toggle Overlay for Horizontal Swap - windows[switchTo] = new RadioOverlayWindowOneHorizontal(); + windows[switchTo] = new RadioOverlayWindowOneHorizontal(ToggleOverlay); break; case 10: - // TODO: Add Toggle Overlay for Horizontal Swap - windows[switchTo] = new RadioOverlayWindowTenVerticalLong(); + windows[switchTo] = new RadioOverlayWindowTenVerticalLong(ToggleOverlay); break; case 11: - // TODO: Add Toggle Overlay for Horizontal Swap - windows[switchTo] = new RadioOverlayWindowTenHorizontalWide(); + windows[switchTo] = new RadioOverlayWindowTenHorizontalWide(ToggleOverlay); break; } try diff --git a/DCS-SR-Client/UI/RadioOverlayWindow/RadioOverlayOneHorizontal.xaml b/DCS-SR-Client/UI/RadioOverlayWindow/RadioOverlayOneHorizontal.xaml index dd1b7576..d9ad67be 100644 --- a/DCS-SR-Client/UI/RadioOverlayWindow/RadioOverlayOneHorizontal.xaml +++ b/DCS-SR-Client/UI/RadioOverlayWindow/RadioOverlayOneHorizontal.xaml @@ -47,7 +47,7 @@ HorizontalAlignment="Right" Orientation="Horizontal"> + +