機能追加: Bakin・NW.jsエンジンおよびセーブ編集対応、ES3パスワード解決機能とRPGツクールMZ修正サービスの追加
This commit is contained in:
1 parent
f50976a6c0
commit
152abae1f8
33 files changed
+11356
-175
No files matched your search
@@ -131,6 +131,25 @@ namespace GameLauncher.Helpers
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// bool 値・bool? 値が true の場合に Visible、false または null の場合に Collapsed を返すコンバーター。
|
||||
/// セーブエディタのセルテンプレートで、型ごとに表示するエディタを切り替える用途に使用します。
|
||||
/// </summary>
|
||||
public class BoolToVisibilityConverter : IValueConverter
|
||||
{
|
||||
public static readonly BoolToVisibilityConverter Instance = new();
|
||||
|
||||
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
return value is true ? Visibility.Visible : Visibility.Collapsed;
|
||||
}
|
||||
|
||||
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
return value is Visibility v && v == Visibility.Visible;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// bool値が true の場合に Visible、false または null の場合に Collapsed を返すコンバーター
|
||||
/// </summary>
|
||||
|
||||
Reference in new issue
Block a user