mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-25 17:35:31 +00:00
Added Blackrock theme, Added debugging.
This commit is contained in:
parent
769d46df9d
commit
98c77b2b36
4 changed files with 30 additions and 1 deletions
AutoTrackR2
BIN
AutoTrackR2/Assets/BRTE.png
Normal file
BIN
AutoTrackR2/Assets/BRTE.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 26 KiB |
|
@ -31,6 +31,7 @@
|
|||
<None Remove="Assets\WRITH.png" />
|
||||
<None Remove="Assets\ZAP.png" />
|
||||
<None Remove="Assets\DMC.png" />
|
||||
<None Remove="Assets\BRTE.png" />
|
||||
<None Remove="config.ini" />
|
||||
<None Remove="Fonts\Orbitron-Bold.ttf" />
|
||||
<None Remove="Fonts\Roboto-Regular.ttf" />
|
||||
|
@ -113,6 +114,9 @@
|
|||
<Resource Include="Assets\DMC.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="Assets\BRTE.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Resource>
|
||||
<Resource Include="config.ini" />
|
||||
<Resource Include="Fonts\Orbitron-Bold.ttf">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
|
|
|
@ -35,12 +35,24 @@ namespace AutoTrackR2
|
|||
|
||||
// Create a pack URI for the resource
|
||||
Uri uri = new Uri($"pack://application:,,,/AutoTrackR2;component{imagePath}", UriKind.Absolute);
|
||||
Debug.WriteLine($"Attempting to load logo from: {uri}");
|
||||
|
||||
// Check if the resource exists
|
||||
var resourceInfo = Application.GetResourceStream(uri);
|
||||
if (resourceInfo == null)
|
||||
{
|
||||
Debug.WriteLine($"Resource not found: {uri}");
|
||||
return;
|
||||
}
|
||||
|
||||
Logo.Source = new BitmapImage(uri);
|
||||
Debug.WriteLine($"Successfully loaded logo: {uri}");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Log the error or handle it appropriately
|
||||
Debug.WriteLine($"Error loading logo image: {ex.Message}");
|
||||
Debug.WriteLine($"Stack trace: {ex.StackTrace}");
|
||||
// Optionally set a default logo or handle the error
|
||||
}
|
||||
}
|
||||
|
|
|
@ -250,7 +250,7 @@
|
|||
"AltText": "#FF3333"
|
||||
},
|
||||
"Logo": {
|
||||
"Path": "/Assets/Blightveil.png",
|
||||
"Path": "/Assets/BlightVeil.png",
|
||||
"Primary": "#8B4AC6"
|
||||
}
|
||||
},
|
||||
|
@ -330,5 +330,18 @@
|
|||
"Path": "/Assets/DMC.png",
|
||||
"Primary": "#FF0000"
|
||||
}
|
||||
},
|
||||
"BRTE": {
|
||||
"Colors": {
|
||||
"Accent": "#FF4500",
|
||||
"Button": "#1A0A00",
|
||||
"Background": "#0A0500",
|
||||
"Text": "#FFFFFF",
|
||||
"AltText": "#FF8C42"
|
||||
},
|
||||
"Logo": {
|
||||
"Path": "/Assets/BRTE.png",
|
||||
"Primary": "#FF4500"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue