-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c54cc3
commit 9948521
Showing
10 changed files
with
638 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
Project-Aurora/Project-Aurora/Profiles/Payday 2/Layers/Control_PD2BackgroundLayer.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
using Aurora.Settings; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
|
||
namespace Aurora.Profiles.Payday_2.Layers | ||
{ | ||
/// <summary> | ||
/// Interaction logic for Control_CSGOBackgroundLayer.xaml | ||
/// </summary> | ||
public partial class Control_PD2BackgroundLayer : UserControl | ||
{ | ||
private bool settingsset = false; | ||
private bool profileset = false; | ||
|
||
public Control_PD2BackgroundLayer() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public Control_PD2BackgroundLayer(PD2BackgroundLayerHandler datacontext) | ||
{ | ||
this.DataContext = datacontext.Properties; | ||
InitializeComponent(); | ||
} | ||
|
||
|
||
internal void SetProfile(Application profile) | ||
{ | ||
} | ||
|
||
private void UserControl_Loaded(object sender, RoutedEventArgs e) | ||
{ | ||
|
||
this.Loaded -= UserControl_Loaded; | ||
} | ||
|
||
private void sldAssaultSpeed_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e) | ||
{ | ||
this.lblAssaultSpeed.Content = $"x {sldAssaultSpeed.Value.ToString("0.00")}"; | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
Project-Aurora/Project-Aurora/Profiles/Payday 2/Layers/Control_PD2FlashbangLayer.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<UserControl | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:Aurora.Profiles.Payday_2.Layers" | ||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" | ||
xmlns:Controls="clr-namespace:Aurora.Controls" x:Class="Aurora.Profiles.Payday_2.Layers.Control_PD2FlashbangLayer" | ||
mc:Ignorable="d" Loaded="UserControl_Loaded"> | ||
<Grid> | ||
<xctk:ColorPicker x:Name="ColorPicker_Flashbang" Margin="93,0,0,0" Height="20" VerticalAlignment="Top" HorizontalAlignment="Left" Width="151" UsingAlphaChannel="True" ColorMode="ColorCanvas" SelectedColorChanged="ColorPicker_Flashbang_SelectedColorChanged" /> | ||
<Label HorizontalAlignment="Left" Padding="0" Content="Flashbang Color:" VerticalAlignment="Top" Margin="0,2,0,0"/> | ||
</Grid> | ||
</UserControl> |
65 changes: 65 additions & 0 deletions
65
Project-Aurora/Project-Aurora/Profiles/Payday 2/Layers/Control_PD2FlashbangLayer.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
using Aurora.Settings; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
|
||
namespace Aurora.Profiles.Payday_2.Layers | ||
{ | ||
/// <summary> | ||
/// Interaction logic for Control_PD2FlashbangLayer.xaml | ||
/// </summary> | ||
public partial class Control_PD2FlashbangLayer : UserControl | ||
{ | ||
private bool settingsset = false; | ||
|
||
public Control_PD2FlashbangLayer() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public Control_PD2FlashbangLayer(PD2FlashbangLayerHandler datacontext) | ||
{ | ||
InitializeComponent(); | ||
|
||
this.DataContext = datacontext; | ||
} | ||
|
||
public void SetSettings() | ||
{ | ||
if (this.DataContext is PD2FlashbangLayerHandler && !settingsset) | ||
{ | ||
this.ColorPicker_Flashbang.SelectedColor = Utils.ColorUtils.DrawingColorToMediaColor((this.DataContext as PD2FlashbangLayerHandler).Properties._FlashbangColor ?? System.Drawing.Color.Empty); | ||
|
||
settingsset = true; | ||
} | ||
} | ||
|
||
internal void SetProfile(Application profile) | ||
{ | ||
} | ||
|
||
private void UserControl_Loaded(object sender, RoutedEventArgs e) | ||
{ | ||
SetSettings(); | ||
|
||
this.Loaded -= UserControl_Loaded; | ||
} | ||
|
||
private void ColorPicker_Flashbang_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs<Color?> e) | ||
{ | ||
if (IsLoaded && settingsset && this.DataContext is PD2FlashbangLayerHandler && sender is Xceed.Wpf.Toolkit.ColorPicker && (sender as Xceed.Wpf.Toolkit.ColorPicker).SelectedColor.HasValue) | ||
(this.DataContext as PD2FlashbangLayerHandler).Properties._FlashbangColor = Utils.ColorUtils.MediaColorToDrawingColor((sender as Xceed.Wpf.Toolkit.ColorPicker).SelectedColor.Value); | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
Project-Aurora/Project-Aurora/Profiles/Payday 2/Layers/Control_PD2StatesLayer.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
using Aurora.Settings; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
|
||
namespace Aurora.Profiles.Payday_2.Layers | ||
{ | ||
/// <summary> | ||
/// Interaction logic for Control_PD2StatesLayer.xaml | ||
/// </summary> | ||
public partial class Control_PD2StatesLayer : UserControl | ||
{ | ||
private bool settingsset = false; | ||
private bool profileset = false; | ||
|
||
public Control_PD2StatesLayer() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public Control_PD2StatesLayer(PD2StatesLayerHandler datacontext) | ||
{ | ||
this.DataContext = datacontext.Properties; | ||
InitializeComponent(); | ||
} | ||
|
||
|
||
internal void SetProfile(Application profile) | ||
{ | ||
} | ||
|
||
private void UserControl_Loaded(object sender, RoutedEventArgs e) | ||
{ | ||
|
||
this.Loaded -= UserControl_Loaded; | ||
} | ||
|
||
private void sldSwanSongSpeed_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e) | ||
{ | ||
this.lblSwanSongSpeed.Content = $"x {sldSwanSongSpeed.Value.ToString("0.00")}"; | ||
} | ||
} | ||
} |
Oops, something went wrong.