Skip to content

Commit 5338639

Browse files
authored
Merge pull request #23 from pk9r/dev
feat: implement GameBackgroundDeckImageCreator and related extensions…
2 parents b0fda8a + 104526e commit 5338639

142 files changed

Lines changed: 1135 additions & 79 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.idea/.idea.GitcgNetCord/.idea/dataSources.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.GitcgNetCord/.idea/misc.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Directory.Packages.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@
2424
<PackageVersion Include="Microsoft.Extensions.Http" Version="9.0.8" />
2525
<PackageVersion Include="Microsoft.AspNetCore.WebUtilities" Version="9.0.8" />
2626
<PackageVersion Include="NetCord.Hosting.Services" Version="1.0.0-alpha.410" />
27+
<PackageVersion Include="SkiaSharp" Version="3.119.0" />
28+
<PackageVersion Include="SkiaSharp.NativeAssets.Linux" Version="3.119.0" />
2729
</ItemGroup>
2830
</Project>

GitcgNetCord.sln.DotSettings

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:Boolean x:Key="/Default/UserDictionary/Words/=anemo/@EntryIndexedValue">True</s:Boolean>
23
<s:Boolean x:Key="/Default/UserDictionary/Words/=genshin/@EntryIndexedValue">True</s:Boolean>
34
<s:Boolean x:Key="/Default/UserDictionary/Words/=genshincards/@EntryIndexedValue">True</s:Boolean>
45
<s:Boolean x:Key="/Default/UserDictionary/Words/=gitcg/@EntryIndexedValue">True</s:Boolean>

GitcgNetCord.sln.DotSettings.user

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,32 @@
11
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
22
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AApplicationCommand_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003Fba38522c788bae84bc932ef7a29d71d27152622c27dced65c633f40401360_003FApplicationCommand_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
3+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AColor_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F243aeae442dc568a77d5ebd1596673edb2ea3064ea62cda762e863f38f4270c4_003FColor_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
4+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AColor_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F4a935c7866aaceb4ca82336bc2137876afd2c34c8f40397250b1722a73f9_003FColor_002Ecs_002Fz_003A2_002D1/@EntryIndexedValue">ForceIncluded</s:String>
35
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AEmojiProperties_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003F6ab3be37dec913ef7d649338adbdc7ba6ecf9e17ad69af5d293b71d60e4be5a_003FEmojiProperties_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
46
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AGuildThreadMetadata_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003F72dab619544a61db6fcfa35f1ceeed540e7b87a5f79477e29f7a6c73a485a_003FGuildThreadMetadata_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
57
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AINamedChannel_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003Fc6b34531972538dcb2125236898e9a73bfc3bfb939b67fb2d4f6057bd3498f5_003FINamedChannel_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
68
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AInteractionCallbackType_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003Fc7eff0a055a09ff3f738916309048d5181ed9996c802249d023b1d076c57158_003FInteractionCallbackType_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
79
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AInteractionCallback_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F569fede2c7ad6896753819e615d3e26a2db7cf15ab5a2eab17c6f4d2c614481_003FInteractionCallback_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
10+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AMathTypes_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F5965628a464f88131c98258c6bb68556963b4f33ce836d7eea5a4f686c9f_003FMathTypes_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
811
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ANetCord_002ERest_002EEmbedProperties_002Eg_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003F2d74c9ef991b267cbaf535bf08019b8966eb55a_003FNetCord_002ERest_002EEmbedProperties_002Eg_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
12+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ANetCord_002ERest_002EEmbedProperties_002Eg_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F2d74c9ef991b267cbaf535bf08019b8966eb55a_003FNetCord_002ERest_002EEmbedProperties_002Eg_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
913
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AOrderBy_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F9aabb2337f87aee16a5178682a1b236f89b636acc2abaa5be5eadd13ec46109f_003FOrderBy_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
1014
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003APrivateGuildThread_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003F79a2d5b719ab826f4d81b95fc1963dc92e6dd8f43065b729ed53ae1f797_003FPrivateGuildThread_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
1115
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AReactionEmojiProperties_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003Ffa944ea7b9c605f0445098be8ca0ce31dd212e446a97d32b344db96e36aa95_003FReactionEmojiProperties_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
16+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AReadOnlyMemory_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F5837839d50404e88eb762f91a0ddc2fd78413043e106a49dfbf1558361d8b9_003FReadOnlyMemory_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
1217
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ARestClient_002EChannel_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003F3e62ebbf24ad7ee71524db17f814b1703f198645cce7517bc17122fb38f8f81_003FRestClient_002EChannel_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
18+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASKBitmap_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003Fc2bdae8e05cc4963967583d1b237edee4ca38_003Ff5_003F07db8768_003FSKBitmap_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
19+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASKData_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003Fa5607ad75bae2ec36423786c03c8e229516d02db272092147c97576f10821c_003FSKData_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
20+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASkiaApi_002Egenerated_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003Fb36a3963d492f0d689f5c1b8f399fd278936701e61e68317f3f931aa50dbe7f_003FSkiaApi_002Egenerated_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
21+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASKImageInfo_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F97d69b17f7fbc38e6dd9ea4cb5ad9df89be20ebf4108051e21d761ee2a539_003FSKImageInfo_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
22+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASKImage_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003Fada6eec45b544ba3e9fd6727d57e78b69ffdb15fd5d38754296232606dc1f64_003FSKImage_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
23+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASKObject_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F23a3d54c2b3b168e78ab5b3eb92546b18a279199d96e461c818c3f1ae50_003FSKObject_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
24+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASKPixmap_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F635676b24dd44e3356ad48f324d7d96acb753769350c056f21a204fdb9891d8_003FSKPixmap_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
1325
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ASlashCommandChoiceAttribute_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003F70977d8e8e415d5c5286c84b973d39d27dd1744ed6edc99adee5b82899ff31_003FSlashCommandChoiceAttribute_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
1426
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AString_002EManipulation_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003Fe75a5575ba872c8ea754c015cb363850e6c661f39569712d5b74aaca67263c_003FString_002EManipulation_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
1527
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ATextDisplayProperties_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002Econfig_003FJetBrains_003FRider2025_002E2_003Fresharper_002Dhost_003FSourcesCache_003F303ada71171edeaa385be4ef807061b6eaa4377f119e6fef55ad713b54b496e_003FTextDisplayProperties_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
1628
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AValidateOptionsResultBuilder_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003Ff7c3fb89ef359986fa6049c62f921cb5a184ae6b30dcddaffc3d5ab7fcd77_003FValidateOptionsResultBuilder_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
17-
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AValidateOptionsResult_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003F728062cbf4f62ed8eda2cc948368227a2c54cae9679f89fb68c439f71b7576_003FValidateOptionsResult_002Ecs/@EntryIndexedValue">ForceIncluded</s:String></wpf:ResourceDictionary>
29+
<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AValidateOptionsResult_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003FAppData_003FRoaming_003FJetBrains_003FRider2025_002E1_003Fresharper_002Dhost_003FSourcesCache_003F728062cbf4f62ed8eda2cc948368227a2c54cae9679f89fb68c439f71b7576_003FValidateOptionsResult_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
30+
<s:String x:Key="/Default/Environment/AssemblyExplorer/XmlDocument/@EntryValue">&lt;AssemblyExplorer&gt;
31+
&lt;Assembly Path="/home/pk9r/.nuget/packages/netcord/1.0.0-alpha.410/lib/net9.0/NetCord.dll" /&gt;
32+
&lt;/AssemblyExplorer&gt;</s:String></wpf:ResourceDictionary>

GitcgNetCord.slnx

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
<Solution>
2-
<Folder Name="/Solution Items/">
3-
<File Path="Directory.Packages.props" />
4-
<File Path="global.json" />
5-
<File Path="README.md" />
6-
<File Path="LICENSE" />
7-
<File Path=".gitignore" />
8-
<File Path=".dockerignore" />
9-
</Folder>
10-
<Folder Name="/src/">
11-
<Project Path="src/GitcgNetCord.MainApp/GitcgNetCord.MainApp.csproj" />
12-
<Project Path="src/GitcgPainter/GitcgPainter.csproj" />
13-
<Project Path="src/HoyolabHttpClient/HoyolabHttpClient.csproj" />
14-
<Project Path="src/SharedUtils/SharedUtils.csproj" />
15-
</Folder>
16-
<Project Path="src/AppHost/AppHost.csproj" />
17-
<Project Path="src/ServiceDefaults/ServiceDefaults.csproj" />
2+
<Folder Name="/Solution Items/">
3+
<File Path="Directory.Packages.props" />
4+
<File Path="global.json" />
5+
<File Path="README.md" />
6+
<File Path="LICENSE" />
7+
<File Path=".gitignore" />
8+
<File Path=".dockerignore" />
9+
</Folder>
10+
<Folder Name="/src/">
11+
<Project Path="src/GitcgNetCord.MainApp/GitcgNetCord.MainApp.csproj" />
12+
<Project Path="src/GitcgPainter/GitcgPainter.csproj" />
13+
<Project Path="src/HoyolabHttpClient/HoyolabHttpClient.csproj" />
14+
<Project Path="src/SharedUtils/SharedUtils.csproj" />
15+
<Project Path="src\GitcgSharp.Shared\GitcgSharp.Shared.csproj" Type="Classic C#" />
16+
<Project Path="src\GitcgSkia\GitcgSkia.csproj" Type="Classic C#" />
17+
</Folder>
18+
<Project Path="src/AppHost/AppHost.csproj" />
19+
<Project Path="src/ServiceDefaults/ServiceDefaults.csproj" />
1820
</Solution>

src/GitcgNetCord.MainApp/Commands/Interactions/SelectDecksComponentInteraction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System.Collections.Immutable;
22
using GitcgNetCord.MainApp.Infrastructure.HoyolabServices;
3-
using GitcgPainter.ImageCreators.Deck;
43
using NetCord;
54
using NetCord.Rest;
65
using NetCord.Services.ComponentInteractions;
76
using Color = System.Drawing.Color;
7+
using DeckImageCreatorCollection = GitcgNetCord.MainApp.Models.DeckImageCreatorCollection;
88

99
namespace GitcgNetCord.MainApp.Commands.Interactions;
1010

src/GitcgNetCord.MainApp/Commands/Slash/CardSlashCommand.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Drawing;
33
using System.Text;
44
using GitcgNetCord.MainApp.Entities.Repositories;
5+
using GitcgNetCord.MainApp.Extensions;
56
using HoyolabHttpClient;
67
using NetCord.Rest;
78
using NetCord.Services.ApplicationCommands;
@@ -62,7 +63,7 @@ You don't have an active Hoyolab account.
6263
Please use the command {accountCommand} to set one up.
6364
"""
6465
)
65-
.WithColor(new NetCord.Color(Color.Red.ToArgb()))
66+
.WithColor(Color.Red.ToNetCordColor())
6667
);
6768
});
6869

@@ -93,7 +94,7 @@ await context.Interaction.ModifyResponseAsync(message =>
9394
message.AddEmbeds(new EmbedProperties()
9495
.WithTitle("Error")
9596
.WithDescription(e.Message)
96-
.WithColor(new NetCord.Color(Color.Red.ToArgb()))
97+
.WithColor(Color.Red.ToNetCordColor())
9798
);
9899
});
99100
return;
@@ -219,7 +220,7 @@ await context.Interaction.ModifyResponseAsync(message =>
219220
{
220221
message.AddEmbeds(
221222
new EmbedProperties()
222-
.WithColor(new NetCord.Color(Color.Purple.ToArgb()))
223+
.WithColor(Color.Purple.ToNetCordColor())
223224
.WithTitle($"{data.Stats.Nickname}")
224225
.AddFields(
225226
new EmbedFieldProperties()
@@ -236,7 +237,7 @@ await context.Interaction.ModifyResponseAsync(message =>
236237
.WithInline()
237238
),
238239
new EmbedProperties()
239-
.WithColor(new NetCord.Color(Color.Purple.ToArgb()))
240+
.WithColor(Color.Purple.ToNetCordColor())
240241
.AddFields(
241242
new EmbedFieldProperties()
242243
.WithName("Best win rate")
@@ -256,7 +257,7 @@ await context.Interaction.ModifyResponseAsync(message =>
256257
)
257258
),
258259
new EmbedProperties()
259-
.WithColor(new NetCord.Color(Color.Purple.ToArgb()))
260+
.WithColor(Color.Purple.ToNetCordColor())
260261
.AddFields(
261262
new EmbedFieldProperties()
262263
.WithName("Top use count characters")

0 commit comments

Comments
 (0)