feat(engine): その他エンジン種別の追加およびラベル・サムネイル基盤の拡張

- エンジン区分に Other(その他)を追加し、該当バッジおよびフィルターに対応
- GameItemBase に EngineLabelText, EngineLabelBackground, OtherBadgeVisibility を追加
- TkoolGameItem および UnityGameItem で各エンジンのラベル表示ロジックを実装
- AppPathHelper にサムネイル保存用ディレクトリ取得メソッドを追加
- Converters に文字列非空時可視化コンバーター(StringNotEmptyToVisibilityConverter)を追加
- TkoolGameItem の EVB「要解凍」バッジ表示テキスト連携を実装
This commit is contained in:
armonica committed 2026-10-14 09:58:14 +09:00
1 parent 4398f80aa4
commit 45bff52198
6 files changed
+116 -7

No files matched your search

+18
View File
@@ -157,6 +157,24 @@ namespace GameLauncher.Helpers
return path;
}
/// <summary>
/// サムネイル画像キャッシュの格納ルートディレクトリを取得します。
/// GameLauncher.exe のあるフォルダ直下の「Thumbnails」フォルダを使用・作成します。
/// </summary>
public static string GetThumbnailsDirectory()
{
var thumbDir = Path.Combine(GetExeDirectory(), "Thumbnails");
if (!Directory.Exists(thumbDir))
{
try
{
Directory.CreateDirectory(thumbDir);
}
catch { }
}
return thumbDir;
}
/// <summary>
/// Unityセーブデータバックアップ全体の格納ルートディレクトリを取得します。
/// GameLauncher.exe のあるフォルダ直下の「Backups」フォルダを使用・作成します。
+22
View File
@@ -108,4 +108,26 @@ namespace GameLauncher.Helpers
throw new NotImplementedException();
}
}
/// <summary>
/// 文字列が null または空文字(空白のみ含む)の場合に Collapsed、文字が存在する場合に Visible を返すコンバーター
/// </summary>
public class StringNotEmptyToVisibilityConverter : IValueConverter
{
public static readonly StringNotEmptyToVisibilityConverter Instance = new();
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
if (value is string s && !string.IsNullOrWhiteSpace(s))
{
return Visibility.Visible;
}
return Visibility.Collapsed;
}
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}