mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-06-20 05:29:07 +00:00
Added theme
This commit is contained in:
parent
8d634dd20f
commit
1ef9d899d9
5 changed files with 23 additions and 11 deletions
BIN
AutoTrackR2/Assets/HEX.png
Normal file
BIN
AutoTrackR2/Assets/HEX.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 384 KiB |
|
@ -15,6 +15,7 @@
|
||||||
<None Remove="Assets\AVSQN.png" />
|
<None Remove="Assets\AVSQN.png" />
|
||||||
<None Remove="Assets\D3VL.png" />
|
<None Remove="Assets\D3VL.png" />
|
||||||
<None Remove="Assets\EMP.png" />
|
<None Remove="Assets\EMP.png" />
|
||||||
|
<None Remove="Assets\HEX.png" />
|
||||||
<None Remove="Assets\HIT.png" />
|
<None Remove="Assets\HIT.png" />
|
||||||
<None Remove="Assets\NW.png" />
|
<None Remove="Assets\NW.png" />
|
||||||
<None Remove="Assets\VOX.png" />
|
<None Remove="Assets\VOX.png" />
|
||||||
|
@ -32,29 +33,30 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Resource Include="Assets\AVSQN.png">
|
<Resource Include="Assets\AVSQN.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
<Resource Include="Assets\D3VL.png">
|
<Resource Include="Assets\D3VL.png">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
<Resource Include="Assets\EMP.png">
|
<Resource Include="Assets\EMP.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
<Resource Include="Assets\GN.png">
|
<Resource Include="Assets\GN.png">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
<Resource Include="Assets\AutoTrackR.png">
|
<Resource Include="Assets\AutoTrackR.png">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
|
<Resource Include="Assets\HEX.png" />
|
||||||
<Resource Include="Assets\HIT.png" />
|
<Resource Include="Assets\HIT.png" />
|
||||||
<Resource Include="Assets\NW.png">
|
<Resource Include="Assets\NW.png">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
<Resource Include="Assets\VOX.png">
|
<Resource Include="Assets\VOX.png">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
<Resource Include="Assets\WRITH.jpg">
|
<Resource Include="Assets\WRITH.jpg">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory></CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
<Resource Include="config.ini" />
|
<Resource Include="config.ini" />
|
||||||
<Resource Include="Fonts\Orbitron-Bold.ttf">
|
<Resource Include="Fonts\Orbitron-Bold.ttf">
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<TextBlock Text="Theme:" Foreground="{DynamicResource TextBrush}" FontSize="16" Margin="0,7,0,5"/>
|
<TextBlock Text="Theme:" Foreground="{DynamicResource TextBrush}" FontSize="16" Margin="0,7,0,5"/>
|
||||||
<Slider x:Name="ThemeSlider"
|
<Slider x:Name="ThemeSlider"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Maximum="11"
|
Maximum="12"
|
||||||
Value="0"
|
Value="0"
|
||||||
TickFrequency="1"
|
TickFrequency="1"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
|
|
@ -251,6 +251,16 @@ namespace AutoTrackR2
|
||||||
);
|
);
|
||||||
ChangeLogo("/Assets/AVSQN.png", (Color)ColorConverter.ConvertFromString("#3fbcff"));
|
ChangeLogo("/Assets/AVSQN.png", (Color)ColorConverter.ConvertFromString("#3fbcff"));
|
||||||
break;
|
break;
|
||||||
|
case 12: // HEX Theme
|
||||||
|
UpdateThemeColors(
|
||||||
|
(Color)ColorConverter.ConvertFromString("#39FF14"), // Accent/Border
|
||||||
|
(Color)ColorConverter.ConvertFromString("#535353"), // Button
|
||||||
|
(Color)ColorConverter.ConvertFromString("#000800"), // Background
|
||||||
|
(Color)ColorConverter.ConvertFromString("#FFFFFF"), // Text
|
||||||
|
(Color)ColorConverter.ConvertFromString("#CFFF04") // AltText
|
||||||
|
);
|
||||||
|
ChangeLogo("/Assets/AVSQN.png", (Color)ColorConverter.ConvertFromString("#3fbcff"));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ $joinDatePattern = '<span class="label">Enlisted</span>\s*<strong class="value">
|
||||||
$ueePattern = '<p class="entry citizen-record">\s*<span class="label">UEE Citizen Record<\/span>\s*<strong class="value">#?(n\/a|\d+)<\/strong>\s*<\/p>'
|
$ueePattern = '<p class="entry citizen-record">\s*<span class="label">UEE Citizen Record<\/span>\s*<strong class="value">#?(n\/a|\d+)<\/strong>\s*<\/p>'
|
||||||
|
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
$process = Get-Process | Where-Object {$_.Name -like "AutoTrackR2"}
|
||||||
<#
|
<#
|
||||||
$enemyPilot = "feezydafox"
|
$enemyPilot = "feezydafox"
|
||||||
$enemyShip = "AEGS_Gladius"
|
$enemyShip = "AEGS_Gladius"
|
||||||
|
@ -255,7 +255,6 @@ function Read-LogEntry {
|
||||||
|
|
||||||
$KillTime = (Get-Date).ToUniversalTime().ToString("d MMM yyyy H:mm 'UTC'")
|
$KillTime = (Get-Date).ToUniversalTime().ToString("d MMM yyyy H:mm 'UTC'")
|
||||||
|
|
||||||
|
|
||||||
# Get Enlisted Date
|
# Get Enlisted Date
|
||||||
if ($($page1.content) -match $joinDatePattern) {
|
if ($($page1.content) -match $joinDatePattern) {
|
||||||
$joinDate = $matches[1]
|
$joinDate = $matches[1]
|
||||||
|
@ -436,6 +435,7 @@ function Read-LogEntry {
|
||||||
Write-Output "PlayerShip=$global:loadOut"
|
Write-Output "PlayerShip=$global:loadOut"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($process)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Monitor the log file and process new lines as they are added
|
# Monitor the log file and process new lines as they are added
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue