-
Notifications
You must be signed in to change notification settings - Fork 367
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
gyorokpeter
committed
Apr 11, 2021
1 parent
63a7fad
commit 38e83d0
Showing
17 changed files
with
179 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "SBAuroraR.NET"] | ||
path = SBAuroraR.NET | ||
url = https://github.com/rajkosto/SBAuroraR.NET.git | ||
url = https://github.com/rajkosto/SBAuroraR.NET.git | ||
[submodule "SteelSeriesServer"] | ||
path = SteelSeriesServer | ||
url = https://github.com/gyorokpeter/SteelSeriesServer.git |
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
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
21 changes: 21 additions & 0 deletions
21
Project-Aurora/Project-Aurora/Profiles/Cardaclysm/CardaclysmApplication.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,21 @@ | ||
using Aurora.Settings.Layers; | ||
|
||
namespace Aurora.Profiles.Cardaclysm | ||
{ | ||
public class Cardaclysm : Application | ||
{ | ||
public Cardaclysm() : base(new LightEventConfig { | ||
Name = "Cardaclysm", | ||
ID = "Cardaclysm", | ||
ProcessNames = new[] { "cardaclysm.exe" }, | ||
ProfileType = typeof(WrapperProfile), | ||
OverviewControlType = typeof(Control_Cardaclysm), | ||
GameStateType = typeof(GameState_Wrapper), | ||
Event = new GameEvent_Generic(), | ||
IconURI = "Resources/cardaclysm_64x64.png" | ||
}) | ||
{ | ||
AllowLayer<WrapperLightsLayerHandler>(); | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
Project-Aurora/Project-Aurora/Profiles/Cardaclysm/Control_Cardaclysm.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,27 @@ | ||
<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.Cardaclysm" | ||
xmlns:EnumDeviceKeys="clr-namespace:Aurora.Devices" | ||
xmlns:EnumPercentEffectType="clr-namespace:Aurora.Settings" | ||
xmlns:EnumValueConverters="clr-namespace:Aurora.Utils" | ||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" | ||
xmlns:Controls="clr-namespace:Aurora.Controls" x:Class="Aurora.Profiles.Cardaclysm.Control_Cardaclysm" | ||
mc:Ignorable="d" | ||
d:DesignHeight="300" Height="Auto" Width="Auto" d:DesignWidth="850" > | ||
<Grid> | ||
<TabControl> | ||
<TabItem Header="Overview for Cardaclysm"> | ||
<Grid> | ||
<StackPanel> | ||
<CheckBox x:Name="game_enabled" Content="Enable Aurora to provide lighting effects with Cardaclysm" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Checked="game_enabled_Checked" Unchecked="game_enabled_Checked"/> | ||
<TextBlock Margin="10,10,64,0" VerticalAlignment="Top" TextWrapping="Wrap"><Run Text="To enable Cardaclysm support, you need to start the SteelSeries Server which will will allow receiving lighting information from all games that support SteelSeries GameSense, including Cardaclysm."/></TextBlock> | ||
<Button x:Name="go_to_steelseries" Content="Go to SteelSeries Configuration" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Click="go_to_steelseries_Click"/> | ||
</StackPanel> | ||
</Grid> | ||
</TabItem> | ||
</TabControl> | ||
</Grid> | ||
</UserControl> |
45 changes: 45 additions & 0 deletions
45
Project-Aurora/Project-Aurora/Profiles/Cardaclysm/Control_Cardaclysm.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,45 @@ | ||
using Aurora.Settings; | ||
using System; | ||
using System.IO; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
|
||
namespace Aurora.Profiles.Cardaclysm | ||
{ | ||
/// <summary> | ||
/// Interaction logic for Control_Cardaclysm.xaml | ||
/// </summary> | ||
public partial class Control_Cardaclysm : UserControl | ||
{ | ||
private Application profile_manager; | ||
|
||
public Control_Cardaclysm(Application profile) | ||
{ | ||
InitializeComponent(); | ||
|
||
profile_manager = profile; | ||
|
||
SetSettings(); | ||
} | ||
|
||
private void SetSettings() | ||
{ | ||
this.game_enabled.IsChecked = profile_manager.Settings.IsEnabled; | ||
} | ||
|
||
private void game_enabled_Checked(object sender, RoutedEventArgs e) | ||
{ | ||
if (IsLoaded) | ||
{ | ||
profile_manager.Settings.IsEnabled = (this.game_enabled.IsChecked.HasValue) ? this.game_enabled.IsChecked.Value : false; | ||
profile_manager.SaveProfiles(); | ||
} | ||
} | ||
|
||
private void go_to_steelseries_Click(object sender, RoutedEventArgs e) | ||
{ | ||
var mainWindow = (ConfigUI)System.Windows.Application.Current.MainWindow; | ||
mainWindow.GoToSteelSeriesPage(); | ||
} | ||
} | ||
} |
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
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
10 changes: 10 additions & 0 deletions
10
Project-Aurora/Project-Aurora/Properties/Resources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Submodule SteelSeriesServer
added at
f7442d