スタイル: コーディング規約に準拠したコードフォーマットの適用(this.の明示、空白スタイルの統一)
- 自インスタンスメンバーアクセスへの this. 付与(28ファイル) - .editorconfig に準拠したインデント・波括弧・空白スタイルの適用 - UTF-8 (BOMあり)、CRLF改行コード、行末空白除去の整合性検証
This commit is contained in:
1 parent
2fa40c950f
commit
ae86b53147
28 files changed
+1362
-1380
No files matched your search
+251
-251
@@ -28,62 +28,62 @@ namespace GameLauncher.Engines.Tkool
|
||||
|
||||
public bool SpeedUp
|
||||
{
|
||||
get => _speedUp;
|
||||
set { if (_speedUp != value) { _speedUp = value; OnPropertyChanged(); } }
|
||||
get => this._speedUp;
|
||||
set { if (this._speedUp != value) { this._speedUp = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public bool AntigravityGameTweaks
|
||||
{
|
||||
get => _antigravityGameTweaks;
|
||||
set { if (_antigravityGameTweaks != value) { _antigravityGameTweaks = value; OnPropertyChanged(); } }
|
||||
get => this._antigravityGameTweaks;
|
||||
set { if (this._antigravityGameTweaks != value) { this._antigravityGameTweaks = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public bool DropItem99
|
||||
{
|
||||
get => _dropItem99;
|
||||
set { if (_dropItem99 != value) { _dropItem99 = value; OnPropertyChanged(); } }
|
||||
get => this._dropItem99;
|
||||
set { if (this._dropItem99 != value) { this._dropItem99 = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public bool TurnStartFullRecover
|
||||
{
|
||||
get => _turnStartFullRecover;
|
||||
set { if (_turnStartFullRecover != value) { _turnStartFullRecover = value; OnPropertyChanged(); } }
|
||||
get => this._turnStartFullRecover;
|
||||
set { if (this._turnStartFullRecover != value) { this._turnStartFullRecover = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public bool TurnStartFullRecoverHp
|
||||
{
|
||||
get => _turnStartFullRecoverHp;
|
||||
set { if (_turnStartFullRecoverHp != value) { _turnStartFullRecoverHp = value; OnPropertyChanged(); } }
|
||||
get => this._turnStartFullRecoverHp;
|
||||
set { if (this._turnStartFullRecoverHp != value) { this._turnStartFullRecoverHp = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public bool TurnStartFullRecoverMp
|
||||
{
|
||||
get => _turnStartFullRecoverMp;
|
||||
set { if (_turnStartFullRecoverMp != value) { _turnStartFullRecoverMp = value; OnPropertyChanged(); } }
|
||||
get => this._turnStartFullRecoverMp;
|
||||
set { if (this._turnStartFullRecoverMp != value) { this._turnStartFullRecoverMp = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public bool TurnStartFullRecoverTp
|
||||
{
|
||||
get => _turnStartFullRecoverTp;
|
||||
set { if (_turnStartFullRecoverTp != value) { _turnStartFullRecoverTp = value; OnPropertyChanged(); } }
|
||||
get => this._turnStartFullRecoverTp;
|
||||
set { if (this._turnStartFullRecoverTp != value) { this._turnStartFullRecoverTp = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public bool MaxGainGold
|
||||
{
|
||||
get => _maxGainGold;
|
||||
set { if (_maxGainGold != value) { _maxGainGold = value; OnPropertyChanged(); } }
|
||||
get => this._maxGainGold;
|
||||
set { if (this._maxGainGold != value) { this._maxGainGold = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public bool MaxGainExp
|
||||
{
|
||||
get => _maxGainExp;
|
||||
set { if (_maxGainExp != value) { _maxGainExp = value; OnPropertyChanged(); } }
|
||||
get => this._maxGainExp;
|
||||
set { if (this._maxGainExp != value) { this._maxGainExp = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public bool InstantMessage
|
||||
{
|
||||
get => _instantMessage;
|
||||
set { if (_instantMessage != value) { _instantMessage = value; OnPropertyChanged(); } }
|
||||
get => this._instantMessage;
|
||||
set { if (this._instantMessage != value) { this._instantMessage = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public event System.ComponentModel.PropertyChangedEventHandler? PropertyChanged;
|
||||
@@ -133,22 +133,22 @@ namespace GameLauncher.Engines.Tkool
|
||||
/// <summary>Enigma Virtual Box でパックされた exe を持つゲームかどうか</summary>
|
||||
public override bool IsEvbPacked
|
||||
{
|
||||
get => _isEvbPacked;
|
||||
get => this._isEvbPacked;
|
||||
set
|
||||
{
|
||||
if (_isEvbPacked != value)
|
||||
if (this._isEvbPacked != value)
|
||||
{
|
||||
_isEvbPacked = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(IsEvb));
|
||||
OnPropertyChanged(nameof(EvbBadgeVisibility));
|
||||
OnPropertyChanged(nameof(EvbBadgeText));
|
||||
OnPropertyChanged(nameof(EvbNeedsUnpackVisibility));
|
||||
OnPropertyChanged(nameof(EvbNeedsUnpackBadgeText));
|
||||
OnPropertyChanged(nameof(EvbExtractedVisibility));
|
||||
OnPropertyChanged(nameof(EvbExtractedBadgeText));
|
||||
OnPropertyChanged(nameof(EvbDetailStatusText));
|
||||
OnPropertyChanged(nameof(IsEvbToolMissing));
|
||||
this._isEvbPacked = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.IsEvb));
|
||||
this.OnPropertyChanged(nameof(this.EvbBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.EvbBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.EvbNeedsUnpackVisibility));
|
||||
this.OnPropertyChanged(nameof(this.EvbNeedsUnpackBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.EvbExtractedVisibility));
|
||||
this.OnPropertyChanged(nameof(this.EvbExtractedBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.EvbDetailStatusText));
|
||||
this.OnPropertyChanged(nameof(this.IsEvbToolMissing));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -156,20 +156,20 @@ namespace GameLauncher.Engines.Tkool
|
||||
/// <summary>EVB 解凍済み(_evb_extracted に出力済み)かどうか</summary>
|
||||
public override bool IsEvbExtracted
|
||||
{
|
||||
get => _isEvbExtracted;
|
||||
get => this._isEvbExtracted;
|
||||
set
|
||||
{
|
||||
if (_isEvbExtracted != value)
|
||||
if (this._isEvbExtracted != value)
|
||||
{
|
||||
_isEvbExtracted = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(EvbBadgeVisibility));
|
||||
OnPropertyChanged(nameof(EvbBadgeText));
|
||||
OnPropertyChanged(nameof(EvbNeedsUnpackVisibility));
|
||||
OnPropertyChanged(nameof(EvbNeedsUnpackBadgeText));
|
||||
OnPropertyChanged(nameof(EvbExtractedVisibility));
|
||||
OnPropertyChanged(nameof(EvbExtractedBadgeText));
|
||||
OnPropertyChanged(nameof(EvbDetailStatusText));
|
||||
this._isEvbExtracted = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.EvbBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.EvbBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.EvbNeedsUnpackVisibility));
|
||||
this.OnPropertyChanged(nameof(this.EvbNeedsUnpackBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.EvbExtractedVisibility));
|
||||
this.OnPropertyChanged(nameof(this.EvbExtractedBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.EvbDetailStatusText));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -177,76 +177,76 @@ namespace GameLauncher.Engines.Tkool
|
||||
/// <summary>EVB 解凍先ディレクトリ(ゲームフォルダ内 _evb_extracted)</summary>
|
||||
public string? EvbExtractedDirPath
|
||||
{
|
||||
get => _evbExtractedDirPath;
|
||||
set { if (_evbExtractedDirPath != value) { _evbExtractedDirPath = value; OnPropertyChanged(); } }
|
||||
get => this._evbExtractedDirPath;
|
||||
set { if (this._evbExtractedDirPath != value) { this._evbExtractedDirPath = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>EVB 解凍時に作成した元 exe のバックアップパス(*.glbak)</summary>
|
||||
public string? EvbBackupPath
|
||||
{
|
||||
get => _evbBackupPath;
|
||||
set { if (_evbBackupPath != value) { _evbBackupPath = value; OnPropertyChanged(); } }
|
||||
get => this._evbBackupPath;
|
||||
set { if (this._evbBackupPath != value) { this._evbBackupPath = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>EVB 解凍後に再判定された本来のエンジン名</summary>
|
||||
public string EvbUnderlyingEngine
|
||||
{
|
||||
get => _evbUnderlyingEngine;
|
||||
set { if (_evbUnderlyingEngine != value) { _evbUnderlyingEngine = value; OnPropertyChanged(); OnPropertyChanged(nameof(EvbDetailStatusText)); } }
|
||||
get => this._evbUnderlyingEngine;
|
||||
set { if (this._evbUnderlyingEngine != value) { this._evbUnderlyingEngine = value; this.OnPropertyChanged(); this.OnPropertyChanged(nameof(this.EvbDetailStatusText)); } }
|
||||
}
|
||||
|
||||
/// <summary>EVB として扱うか(UI バッジ判定用)</summary>
|
||||
public override bool IsEvb => IsEvbPacked;
|
||||
public override bool IsEvb => this.IsEvbPacked;
|
||||
|
||||
/// <summary>EVB バッジの可視性(実際にEVBで圧縮され解凍・管理対象のもののみ Visible)</summary>
|
||||
public override Visibility EvbBadgeVisibility => IsEvbPacked ? Visibility.Visible : Visibility.Collapsed;
|
||||
public override Visibility EvbBadgeVisibility => this.IsEvbPacked ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
||||
/// <summary>
|
||||
/// EVB バッジのテキスト。実際に Enigma Virtual Box でパックされているゲームのみ "EVB" を返し、
|
||||
/// それ以外は空文字を返してバッジを非表示にする。
|
||||
/// </summary>
|
||||
public override string EvbBadgeText => IsEvbPacked ? "EVB" : string.Empty;
|
||||
public override string EvbBadgeText => this.IsEvbPacked ? "EVB" : string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// EVB「要解凍」バッジのテキスト。未解凍のときだけ "要解凍" を返し、それ以外は空文字を返す。
|
||||
/// バッジはテキスト駆動(StringNotEmptyToVisibilityConverter)で表示制御されるため、
|
||||
/// 無関係なゲームで空のバッジが描画されることはない。
|
||||
/// </summary>
|
||||
public override string EvbNeedsUnpackBadgeText => (IsEvbPacked && !IsEvbExtracted) ? "要解凍" : string.Empty;
|
||||
public override string EvbNeedsUnpackBadgeText => (this.IsEvbPacked && !this.IsEvbExtracted) ? "要解凍" : string.Empty;
|
||||
|
||||
/// <summary>EVB 未解凍のときだけ「要解凍」を強調表示するための可視性(一目で分かる導線)</summary>
|
||||
public override Visibility EvbNeedsUnpackVisibility => (IsEvbPacked && !IsEvbExtracted) ? Visibility.Visible : Visibility.Collapsed;
|
||||
public override Visibility EvbNeedsUnpackVisibility => (this.IsEvbPacked && !this.IsEvbExtracted) ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
||||
/// <summary>EVB 解凍済みのときだけ「解凍済み」ラベルを表示するための可視性(一目で分かる導線)</summary>
|
||||
public override Visibility EvbExtractedVisibility => (IsEvbPacked && IsEvbExtracted) ? Visibility.Visible : Visibility.Collapsed;
|
||||
public override Visibility EvbExtractedVisibility => (this.IsEvbPacked && this.IsEvbExtracted) ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
||||
/// <summary>
|
||||
/// EVB「解凍済み」ラベルのテキスト。EVB パック済みかつ解凍済みのときだけ "解凍済み" を返し、
|
||||
/// それ以外は空文字を返して非表示にする。
|
||||
/// </summary>
|
||||
public override string EvbExtractedBadgeText => (IsEvbPacked && IsEvbExtracted) ? "解凍済み" : string.Empty;
|
||||
public override string EvbExtractedBadgeText => (this.IsEvbPacked && this.IsEvbExtracted) ? "解凍済み" : string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Evb 解凍ツール(evbunpack.exe)が未配置かどうか。
|
||||
/// 選択時のガイドで「README.md を参照してください」と案内するために使用します。
|
||||
/// </summary>
|
||||
public bool IsEvbToolMissing => IsEvbPacked && !Engines.Evb.EvbUnpackerToolProvider.IsAvailable();
|
||||
public bool IsEvbToolMissing => this.IsEvbPacked && !Engines.Evb.EvbUnpackerToolProvider.IsAvailable();
|
||||
|
||||
/// <summary>EVB 詳細状態テキスト</summary>
|
||||
public override string EvbDetailStatusText
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!IsEvbPacked)
|
||||
if (!this.IsEvbPacked)
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
var engine = string.IsNullOrWhiteSpace(EvbUnderlyingEngine) ? "未判定" : EvbUnderlyingEngine;
|
||||
if (IsEvbToolMissing)
|
||||
var engine = string.IsNullOrWhiteSpace(this.EvbUnderlyingEngine) ? "未判定" : this.EvbUnderlyingEngine;
|
||||
if (this.IsEvbToolMissing)
|
||||
{
|
||||
return "evbunpack.exe が未配置です。Engines/Evb/Tools/evbunpack/README.md を参照してください。";
|
||||
}
|
||||
return IsEvbExtracted
|
||||
return this.IsEvbExtracted
|
||||
? $"Enigma Virtual Box パック済み(解凍済み / 本来: {engine})"
|
||||
: $"Enigma Virtual Box パック済み(未解凍 / 本来: {engine})";
|
||||
}
|
||||
@@ -259,15 +259,15 @@ namespace GameLauncher.Engines.Tkool
|
||||
/// </summary>
|
||||
public string ResolveLaunchExecutable()
|
||||
{
|
||||
if (!IsEvbPacked || !IsEvbExtracted)
|
||||
if (!this.IsEvbPacked || !this.IsEvbExtracted)
|
||||
{
|
||||
return ExecutablePath;
|
||||
return this.ExecutablePath;
|
||||
}
|
||||
|
||||
// 解凍先フォルダを決定する(保存済みパスが無ければゲームフォルダ配下から解決)。
|
||||
var outputDir = !string.IsNullOrEmpty(EvbExtractedDirPath)
|
||||
? EvbExtractedDirPath!
|
||||
: GameLauncher.Engines.Evb.EvbUnpackService.GetExtractedDir(RootDirectory);
|
||||
var outputDir = !string.IsNullOrEmpty(this.EvbExtractedDirPath)
|
||||
? this.EvbExtractedDirPath!
|
||||
: GameLauncher.Engines.Evb.EvbUnpackService.GetExtractedDir(this.RootDirectory);
|
||||
|
||||
// ExecutablePath が空の場合でも、解凍完了マーカーを確認したうえで
|
||||
// 解凍後の exe を起動対象として復元する(再スキャン直後の起動失敗対策)。
|
||||
@@ -277,27 +277,27 @@ namespace GameLauncher.Engines.Tkool
|
||||
return exe!;
|
||||
}
|
||||
|
||||
return ExecutablePath;
|
||||
return this.ExecutablePath;
|
||||
}
|
||||
|
||||
/// <summary>FOSSIL形態(FOSSILindex.html + 単体Game.exe、data/System.json はディスク上)かどうか</summary>
|
||||
public bool IsFossilSingleExe
|
||||
{
|
||||
get => _isFossilSingleExe;
|
||||
set { if (_isFossilSingleExe != value) { _isFossilSingleExe = value; OnPropertyChanged(); } }
|
||||
get => this._isFossilSingleExe;
|
||||
set { if (this._isFossilSingleExe != value) { this._isFossilSingleExe = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>boxed形態(ゲーム本体をexeへ内包、例: Game_boxed.exe)かどうか</summary>
|
||||
public bool IsBoxedExe
|
||||
{
|
||||
get => _isBoxedExe;
|
||||
set { if (_isBoxedExe != value) { _isBoxedExe = value; OnPropertyChanged(); } }
|
||||
get => this._isBoxedExe;
|
||||
set { if (this._isBoxedExe != value) { this._isBoxedExe = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>いずれかの単体exe梱包形態(FOSSIL / boxed)かどうか</summary>
|
||||
public bool IsStandaloneExePackage => IsFossilSingleExe || IsBoxedExe;
|
||||
public bool IsStandaloneExePackage => this.IsFossilSingleExe || this.IsBoxedExe;
|
||||
|
||||
public override GameEngineKind EngineKind => EngineType switch
|
||||
public override GameEngineKind EngineKind => this.EngineType switch
|
||||
{
|
||||
TkoolEngineType.Tyrano => GameEngineKind.Tyrano,
|
||||
TkoolEngineType.Wolf => GameEngineKind.Wolf,
|
||||
@@ -309,31 +309,31 @@ namespace GameLauncher.Engines.Tkool
|
||||
|
||||
public string PluginsJsPath
|
||||
{
|
||||
get => _pluginsJsPath;
|
||||
set { if (_pluginsJsPath != value) { _pluginsJsPath = value; OnPropertyChanged(); } }
|
||||
get => this._pluginsJsPath;
|
||||
set { if (this._pluginsJsPath != value) { this._pluginsJsPath = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public string PluginsDirPath
|
||||
{
|
||||
get => _pluginsDirPath;
|
||||
set { if (_pluginsDirPath != value) { _pluginsDirPath = value; OnPropertyChanged(); } }
|
||||
get => this._pluginsDirPath;
|
||||
set { if (this._pluginsDirPath != value) { this._pluginsDirPath = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public override bool IsMV => EngineType == TkoolEngineType.MV;
|
||||
public override bool IsMZ => EngineType == TkoolEngineType.MZ;
|
||||
public override bool IsTyrano => EngineType == TkoolEngineType.Tyrano;
|
||||
public override bool IsVX => EngineType == TkoolEngineType.VX;
|
||||
public override bool IsVXAce => EngineType == TkoolEngineType.VXAce;
|
||||
public override bool IsWolf => EngineType == TkoolEngineType.Wolf;
|
||||
public override bool IsSrpgStudio => EngineType == TkoolEngineType.SrpgStudio;
|
||||
public override bool IsRgss => EngineType is TkoolEngineType.VX or TkoolEngineType.VXAce;
|
||||
public override bool IsNwjs => EngineType == TkoolEngineType.Nwjs;
|
||||
public override bool IsOther => EngineType == TkoolEngineType.Other;
|
||||
public override bool IsMV => this.EngineType == TkoolEngineType.MV;
|
||||
public override bool IsMZ => this.EngineType == TkoolEngineType.MZ;
|
||||
public override bool IsTyrano => this.EngineType == TkoolEngineType.Tyrano;
|
||||
public override bool IsVX => this.EngineType == TkoolEngineType.VX;
|
||||
public override bool IsVXAce => this.EngineType == TkoolEngineType.VXAce;
|
||||
public override bool IsWolf => this.EngineType == TkoolEngineType.Wolf;
|
||||
public override bool IsSrpgStudio => this.EngineType == TkoolEngineType.SrpgStudio;
|
||||
public override bool IsRgss => this.EngineType is TkoolEngineType.VX or TkoolEngineType.VXAce;
|
||||
public override bool IsNwjs => this.EngineType == TkoolEngineType.Nwjs;
|
||||
public override bool IsOther => this.EngineType == TkoolEngineType.Other;
|
||||
|
||||
/// <summary>
|
||||
/// エンジン種別ラベルの表示文字列。該当エンジンが無い場合は空文字を返し、ラベル自体を非表示にします。
|
||||
/// </summary>
|
||||
public override string EngineLabelText => EngineType switch
|
||||
public override string EngineLabelText => this.EngineType switch
|
||||
{
|
||||
TkoolEngineType.MV => "MV",
|
||||
TkoolEngineType.MZ => "MZ",
|
||||
@@ -346,7 +346,7 @@ namespace GameLauncher.Engines.Tkool
|
||||
};
|
||||
|
||||
/// <summary>エンジン種別ラベルの背景色</summary>
|
||||
public override Brush EngineLabelBackground => EngineType switch
|
||||
public override Brush EngineLabelBackground => this.EngineType switch
|
||||
{
|
||||
TkoolEngineType.MV => new SolidColorBrush(Color.FromRgb(0x8B, 0x1E, 0x3F)),
|
||||
TkoolEngineType.MZ => new SolidColorBrush(Color.FromRgb(0x1E, 0x5F, 0x8B)),
|
||||
@@ -360,15 +360,15 @@ namespace GameLauncher.Engines.Tkool
|
||||
|
||||
/// <summary>NW.jsバッジのテキスト</summary>
|
||||
public override string NwjsBadgeText =>
|
||||
EngineType == TkoolEngineType.Nwjs ? "NW.js" : string.Empty;
|
||||
this.EngineType == TkoolEngineType.Nwjs ? "NW.js" : string.Empty;
|
||||
|
||||
/// <summary>NW.jsバッジの可視性</summary>
|
||||
public override Visibility NwjsBadgeVisibility =>
|
||||
EngineType == TkoolEngineType.Nwjs ? Visibility.Visible : Visibility.Collapsed;
|
||||
this.EngineType == TkoolEngineType.Nwjs ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
||||
/// <summary>その他バッジの可視性</summary>
|
||||
public override Visibility OtherBadgeVisibility =>
|
||||
EngineType == TkoolEngineType.Other ? Visibility.Visible : Visibility.Collapsed;
|
||||
this.EngineType == TkoolEngineType.Other ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
||||
/// <summary>
|
||||
/// 「プリンセスシナジー」(ツクールMZ製・専用改造対象ゲーム)かどうか。
|
||||
@@ -376,7 +376,7 @@ namespace GameLauncher.Engines.Tkool
|
||||
/// これにより当該機能が他ゲームに表示・適用されるのを防ぎます。
|
||||
/// </summary>
|
||||
public override bool IsPrincessSynergy =>
|
||||
!string.IsNullOrEmpty(Title) && Title.Contains("プリンセスシナジー");
|
||||
!string.IsNullOrEmpty(this.Title) && this.Title.Contains("プリンセスシナジー");
|
||||
|
||||
// SRPG Studio アーカイブ関連プロパティ
|
||||
private bool _hasSrpgArchive;
|
||||
@@ -385,56 +385,56 @@ namespace GameLauncher.Engines.Tkool
|
||||
|
||||
public override bool HasSrpgArchive
|
||||
{
|
||||
get => _hasSrpgArchive;
|
||||
get => this._hasSrpgArchive;
|
||||
set
|
||||
{
|
||||
if (_hasSrpgArchive != value)
|
||||
if (this._hasSrpgArchive != value)
|
||||
{
|
||||
_hasSrpgArchive = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(SrpgBadgeVisibility));
|
||||
OnPropertyChanged(nameof(SrpgBadgeText));
|
||||
OnPropertyChanged(nameof(SrpgBadgeBackground));
|
||||
OnPropertyChanged(nameof(SrpgDetailStatusText));
|
||||
this._hasSrpgArchive = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.SrpgBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.SrpgBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.SrpgBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.SrpgDetailStatusText));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsSrpgExtracted
|
||||
{
|
||||
get => _isSrpgExtracted;
|
||||
get => this._isSrpgExtracted;
|
||||
set
|
||||
{
|
||||
if (_isSrpgExtracted != value)
|
||||
if (this._isSrpgExtracted != value)
|
||||
{
|
||||
_isSrpgExtracted = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(SrpgBadgeText));
|
||||
OnPropertyChanged(nameof(SrpgBadgeBackground));
|
||||
OnPropertyChanged(nameof(SrpgDetailStatusText));
|
||||
this._isSrpgExtracted = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.SrpgBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.SrpgBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.SrpgDetailStatusText));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string? SrpgArchivePath
|
||||
{
|
||||
get => _srpgArchivePath;
|
||||
set { if (_srpgArchivePath != value) { _srpgArchivePath = value; OnPropertyChanged(); } }
|
||||
get => this._srpgArchivePath;
|
||||
set { if (this._srpgArchivePath != value) { this._srpgArchivePath = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public override Visibility SrpgBadgeVisibility => (IsSrpgStudio && HasSrpgArchive) ? Visibility.Visible : Visibility.Collapsed;
|
||||
public override Visibility SrpgBadgeVisibility => (this.IsSrpgStudio && this.HasSrpgArchive) ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
||||
public override string SrpgBadgeText => !(IsSrpgStudio && HasSrpgArchive) ? string.Empty : (IsSrpgExtracted ? "SRPG (抽出済)" : "SRPG (暗号化)");
|
||||
public override string SrpgBadgeText => !(this.IsSrpgStudio && this.HasSrpgArchive) ? string.Empty : (this.IsSrpgExtracted ? "SRPG (抽出済)" : "SRPG (暗号化)");
|
||||
|
||||
public override Brush SrpgBadgeBackground => !(IsSrpgStudio && HasSrpgArchive)
|
||||
public override Brush SrpgBadgeBackground => !(this.IsSrpgStudio && this.HasSrpgArchive)
|
||||
? Brushes.Transparent
|
||||
: (IsSrpgExtracted
|
||||
: (this.IsSrpgExtracted
|
||||
? new SolidColorBrush(Color.FromRgb(0x00, 0x89, 0x7B))
|
||||
: new SolidColorBrush(Color.FromRgb(0x09, 0x84, 0xE3)));
|
||||
|
||||
public override string SrpgDetailStatusText => !(IsSrpgStudio && HasSrpgArchive)
|
||||
public override string SrpgDetailStatusText => !(this.IsSrpgStudio && this.HasSrpgArchive)
|
||||
? string.Empty
|
||||
: (IsSrpgExtracted ? "📦 SRPGアーカイブ(スクリプト/リソース抽出済み・改造可能)" : "🔒 SRPG暗号化アーカイブ(ボタンで抽出・改造・再構築可能)");
|
||||
: (this.IsSrpgExtracted ? "📦 SRPGアーカイブ(スクリプト/リソース抽出済み・改造可能)" : "🔒 SRPG暗号化アーカイブ(ボタンで抽出・改造・再構築可能)");
|
||||
|
||||
// RGSS (VX / VX Ace) アーカイブ関連プロパティ
|
||||
private bool _hasRgssArchive;
|
||||
@@ -443,95 +443,95 @@ namespace GameLauncher.Engines.Tkool
|
||||
|
||||
public override bool HasRgssArchive
|
||||
{
|
||||
get => _hasRgssArchive;
|
||||
get => this._hasRgssArchive;
|
||||
set
|
||||
{
|
||||
if (_hasRgssArchive != value)
|
||||
if (this._hasRgssArchive != value)
|
||||
{
|
||||
_hasRgssArchive = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(RgssBadgeVisibility));
|
||||
OnPropertyChanged(nameof(RgssBadgeText));
|
||||
OnPropertyChanged(nameof(RgssBadgeBackground));
|
||||
OnPropertyChanged(nameof(RgssDetailStatusText));
|
||||
this._hasRgssArchive = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.RgssBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.RgssBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.RgssBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.RgssDetailStatusText));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsRgssExtracted
|
||||
{
|
||||
get => _isRgssExtracted;
|
||||
get => this._isRgssExtracted;
|
||||
set
|
||||
{
|
||||
if (_isRgssExtracted != value)
|
||||
if (this._isRgssExtracted != value)
|
||||
{
|
||||
_isRgssExtracted = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(RgssBadgeText));
|
||||
OnPropertyChanged(nameof(RgssBadgeBackground));
|
||||
OnPropertyChanged(nameof(RgssDetailStatusText));
|
||||
this._isRgssExtracted = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.RgssBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.RgssBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.RgssDetailStatusText));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string? RgssArchivePath
|
||||
{
|
||||
get => _rgssArchivePath;
|
||||
set { if (_rgssArchivePath != value) { _rgssArchivePath = value; OnPropertyChanged(); } }
|
||||
get => this._rgssArchivePath;
|
||||
set { if (this._rgssArchivePath != value) { this._rgssArchivePath = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public override Visibility RgssBadgeVisibility => (IsRgss && HasRgssArchive) ? Visibility.Visible : Visibility.Collapsed;
|
||||
public override Visibility RgssBadgeVisibility => (this.IsRgss && this.HasRgssArchive) ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
||||
public override string RgssBadgeText => !(IsRgss && HasRgssArchive) ? string.Empty : (IsRgssExtracted ? "RGSS (抽出済)" : "RGSS (暗号化)");
|
||||
public override string RgssBadgeText => !(this.IsRgss && this.HasRgssArchive) ? string.Empty : (this.IsRgssExtracted ? "RGSS (抽出済)" : "RGSS (暗号化)");
|
||||
|
||||
public override Brush RgssBadgeBackground => !(IsRgss && HasRgssArchive)
|
||||
public override Brush RgssBadgeBackground => !(this.IsRgss && this.HasRgssArchive)
|
||||
? Brushes.Transparent
|
||||
: (IsRgssExtracted
|
||||
: (this.IsRgssExtracted
|
||||
? new SolidColorBrush(Color.FromRgb(0x00, 0x89, 0x7B))
|
||||
: new SolidColorBrush(Color.FromRgb(0xD3, 0x54, 0x00)));
|
||||
|
||||
public override string RgssDetailStatusText => !(IsRgss && HasRgssArchive)
|
||||
public override string RgssDetailStatusText => !(this.IsRgss && this.HasRgssArchive)
|
||||
? string.Empty
|
||||
: (IsRgssExtracted ? "📦 RGSSアーカイブ(スクリプト抽出済み・改造可能)" : "🔒 RGSS暗号化アーカイブ(起動時またはボタンでスクリプト抽出可能)");
|
||||
: (this.IsRgssExtracted ? "📦 RGSSアーカイブ(スクリプト抽出済み・改造可能)" : "🔒 RGSS暗号化アーカイブ(起動時またはボタンでスクリプト抽出可能)");
|
||||
|
||||
public TkoolEngineType EngineType
|
||||
{
|
||||
get => _engineType;
|
||||
get => this._engineType;
|
||||
set
|
||||
{
|
||||
if (_engineType != value)
|
||||
if (this._engineType != value)
|
||||
{
|
||||
_engineType = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(EngineKind));
|
||||
OnPropertyChanged(nameof(EngineDisplayName));
|
||||
OnPropertyChanged(nameof(EngineLabelText));
|
||||
OnPropertyChanged(nameof(EngineLabelBackground));
|
||||
OnPropertyChanged(nameof(IsMV));
|
||||
OnPropertyChanged(nameof(IsMZ));
|
||||
OnPropertyChanged(nameof(IsTyrano));
|
||||
OnPropertyChanged(nameof(IsVX));
|
||||
OnPropertyChanged(nameof(IsVXAce));
|
||||
OnPropertyChanged(nameof(IsWolf));
|
||||
OnPropertyChanged(nameof(IsSrpgStudio));
|
||||
OnPropertyChanged(nameof(IsRgss));
|
||||
OnPropertyChanged(nameof(IsNwjs));
|
||||
OnPropertyChanged(nameof(IsOther));
|
||||
OnPropertyChanged(nameof(NwjsBadgeText));
|
||||
OnPropertyChanged(nameof(NwjsBadgeVisibility));
|
||||
OnPropertyChanged(nameof(OtherBadgeVisibility));
|
||||
OnPropertyChanged(nameof(WolfArchiveBadgeVisibility));
|
||||
OnPropertyChanged(nameof(WolfArchiveBadgeText));
|
||||
OnPropertyChanged(nameof(WolfArchiveBadgeBackground));
|
||||
OnPropertyChanged(nameof(WolfArchiveDetailStatusText));
|
||||
OnPropertyChanged(nameof(SrpgBadgeVisibility));
|
||||
OnPropertyChanged(nameof(SrpgBadgeText));
|
||||
OnPropertyChanged(nameof(SrpgBadgeBackground));
|
||||
OnPropertyChanged(nameof(SrpgDetailStatusText));
|
||||
OnPropertyChanged(nameof(RgssBadgeVisibility));
|
||||
OnPropertyChanged(nameof(RgssBadgeText));
|
||||
OnPropertyChanged(nameof(RgssBadgeBackground));
|
||||
OnPropertyChanged(nameof(RgssDetailStatusText));
|
||||
this._engineType = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.EngineKind));
|
||||
this.OnPropertyChanged(nameof(this.EngineDisplayName));
|
||||
this.OnPropertyChanged(nameof(this.EngineLabelText));
|
||||
this.OnPropertyChanged(nameof(this.EngineLabelBackground));
|
||||
this.OnPropertyChanged(nameof(this.IsMV));
|
||||
this.OnPropertyChanged(nameof(this.IsMZ));
|
||||
this.OnPropertyChanged(nameof(this.IsTyrano));
|
||||
this.OnPropertyChanged(nameof(this.IsVX));
|
||||
this.OnPropertyChanged(nameof(this.IsVXAce));
|
||||
this.OnPropertyChanged(nameof(this.IsWolf));
|
||||
this.OnPropertyChanged(nameof(this.IsSrpgStudio));
|
||||
this.OnPropertyChanged(nameof(this.IsRgss));
|
||||
this.OnPropertyChanged(nameof(this.IsNwjs));
|
||||
this.OnPropertyChanged(nameof(this.IsOther));
|
||||
this.OnPropertyChanged(nameof(this.NwjsBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.NwjsBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.OtherBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveDetailStatusText));
|
||||
this.OnPropertyChanged(nameof(this.SrpgBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.SrpgBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.SrpgBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.SrpgDetailStatusText));
|
||||
this.OnPropertyChanged(nameof(this.RgssBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.RgssBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.RgssBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.RgssDetailStatusText));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -545,31 +545,31 @@ namespace GameLauncher.Engines.Tkool
|
||||
/// <summary>プロキシDLL(version.dll 倍速/メモリフック)を適用するか</summary>
|
||||
public override bool WolfProxyDll
|
||||
{
|
||||
get => _wolfProxyDll;
|
||||
set { if (_wolfProxyDll != value) { _wolfProxyDll = value; OnPropertyChanged(); } }
|
||||
get => this._wolfProxyDll;
|
||||
set { if (this._wolfProxyDll != value) { this._wolfProxyDll = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>プロキシDLLのスピード倍率</summary>
|
||||
public double WolfSpeedMultiplier
|
||||
{
|
||||
get => _wolfSpeedMultiplier;
|
||||
set { if (_wolfSpeedMultiplier != value) { _wolfSpeedMultiplier = value; OnPropertyChanged(); } }
|
||||
get => this._wolfSpeedMultiplier;
|
||||
set { if (this._wolfSpeedMultiplier != value) { this._wolfSpeedMultiplier = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>Data.wolf アーカイブが存在するか</summary>
|
||||
public override bool HasWolfArchive
|
||||
{
|
||||
get => _hasWolfArchive;
|
||||
get => this._hasWolfArchive;
|
||||
set
|
||||
{
|
||||
if (_hasWolfArchive != value)
|
||||
if (this._hasWolfArchive != value)
|
||||
{
|
||||
_hasWolfArchive = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(WolfArchiveBadgeVisibility));
|
||||
OnPropertyChanged(nameof(WolfArchiveBadgeText));
|
||||
OnPropertyChanged(nameof(WolfArchiveBadgeBackground));
|
||||
OnPropertyChanged(nameof(WolfArchiveDetailStatusText));
|
||||
this._hasWolfArchive = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveDetailStatusText));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -577,31 +577,31 @@ namespace GameLauncher.Engines.Tkool
|
||||
/// <summary>Data.wolf が解凍済み(Dataフォルダが存在)か</summary>
|
||||
public override bool IsWolfExtracted
|
||||
{
|
||||
get => _isWolfExtracted;
|
||||
get => this._isWolfExtracted;
|
||||
set
|
||||
{
|
||||
if (_isWolfExtracted != value)
|
||||
if (this._isWolfExtracted != value)
|
||||
{
|
||||
_isWolfExtracted = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(WolfArchiveBadgeVisibility));
|
||||
OnPropertyChanged(nameof(WolfArchiveBadgeText));
|
||||
OnPropertyChanged(nameof(WolfArchiveBadgeBackground));
|
||||
OnPropertyChanged(nameof(WolfArchiveDetailStatusText));
|
||||
this._isWolfExtracted = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.WolfArchiveDetailStatusText));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override Visibility WolfArchiveBadgeVisibility => (IsWolf && HasWolfArchive) ? Visibility.Visible : Visibility.Collapsed;
|
||||
public override string WolfArchiveBadgeText => !(IsWolf && HasWolfArchive) ? string.Empty : (IsWolfExtracted ? "Data解凍済" : "Data.wolf保護");
|
||||
public override Brush WolfArchiveBadgeBackground => !(IsWolf && HasWolfArchive)
|
||||
public override Visibility WolfArchiveBadgeVisibility => (this.IsWolf && this.HasWolfArchive) ? Visibility.Visible : Visibility.Collapsed;
|
||||
public override string WolfArchiveBadgeText => !(this.IsWolf && this.HasWolfArchive) ? string.Empty : (this.IsWolfExtracted ? "Data解凍済" : "Data.wolf保護");
|
||||
public override Brush WolfArchiveBadgeBackground => !(this.IsWolf && this.HasWolfArchive)
|
||||
? Brushes.Transparent
|
||||
: (IsWolfExtracted
|
||||
: (this.IsWolfExtracted
|
||||
? new SolidColorBrush(Color.FromRgb(0x00, 0xB8, 0x94))
|
||||
: new SolidColorBrush(Color.FromRgb(0x63, 0x6E, 0x72)));
|
||||
public override string WolfArchiveDetailStatusText => !(IsWolf && HasWolfArchive)
|
||||
public override string WolfArchiveDetailStatusText => !(this.IsWolf && this.HasWolfArchive)
|
||||
? string.Empty
|
||||
: (IsWolfExtracted
|
||||
: (this.IsWolfExtracted
|
||||
? "Data フォルダに解凍・抽出済みです。ウディタは Data フォルダのマップ・イベント・データベース等を優先して読み込みます。直接ファイルを改造できます。"
|
||||
: "Data.wolf アーカイブで暗号化・保護されています。下の「Data.wolf を解凍」を実行すると、全データを展開して直接編集・改造可能になります。");
|
||||
|
||||
@@ -612,124 +612,124 @@ namespace GameLauncher.Engines.Tkool
|
||||
/// <summary>SRPG Studio プロキシDLL(version.dll 倍速機能)を適用するか</summary>
|
||||
public override bool SrpgProxyDll
|
||||
{
|
||||
get => _srpgProxyDll;
|
||||
set { if (_srpgProxyDll != value) { _srpgProxyDll = value; OnPropertyChanged(); } }
|
||||
get => this._srpgProxyDll;
|
||||
set { if (this._srpgProxyDll != value) { this._srpgProxyDll = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>SRPG Studio プロキシDLLのスピード倍率</summary>
|
||||
public double SrpgSpeedMultiplier
|
||||
{
|
||||
get => _srpgSpeedMultiplier;
|
||||
set { if (_srpgSpeedMultiplier != value) { _srpgSpeedMultiplier = value; OnPropertyChanged(); } }
|
||||
get => this._srpgSpeedMultiplier;
|
||||
set { if (this._srpgSpeedMultiplier != value) { this._srpgSpeedMultiplier = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
/// <summary>SRPG Studio プラグイン改造オプション(PluginOptionsのエイリアス)</summary>
|
||||
public ObservableCollection<ModPluginOptionItem> SrpgModOptions => PluginOptions;
|
||||
public ObservableCollection<ModPluginOptionItem> SrpgModOptions => this.PluginOptions;
|
||||
|
||||
public override bool IsModded
|
||||
{
|
||||
get => _isModded;
|
||||
set { if (_isModded != value) { _isModded = value; OnPropertyChanged(); } }
|
||||
get => this._isModded;
|
||||
set { if (this._isModded != value) { this._isModded = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public bool HasCustomApplyMod
|
||||
{
|
||||
get => _hasCustomApplyMod;
|
||||
set { if (_hasCustomApplyMod != value) { _hasCustomApplyMod = value; OnPropertyChanged(); } }
|
||||
get => this._hasCustomApplyMod;
|
||||
set { if (this._hasCustomApplyMod != value) { this._hasCustomApplyMod = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public override bool ApplyMod
|
||||
{
|
||||
get => _applyMod;
|
||||
get => this._applyMod;
|
||||
set
|
||||
{
|
||||
if (_applyMod != value)
|
||||
if (this._applyMod != value)
|
||||
{
|
||||
_applyMod = value;
|
||||
if (!_isInitializingApplyMod)
|
||||
this._applyMod = value;
|
||||
if (!this._isInitializingApplyMod)
|
||||
{
|
||||
HasCustomApplyMod = true;
|
||||
this.HasCustomApplyMod = true;
|
||||
}
|
||||
OnPropertyChanged();
|
||||
this.OnPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void SetDefaultApplyMod(bool defaultVal)
|
||||
{
|
||||
if (!_hasCustomApplyMod)
|
||||
if (!this._hasCustomApplyMod)
|
||||
{
|
||||
_isInitializingApplyMod = true;
|
||||
_applyMod = defaultVal;
|
||||
_isInitializingApplyMod = false;
|
||||
OnPropertyChanged(nameof(ApplyMod));
|
||||
this._isInitializingApplyMod = true;
|
||||
this._applyMod = defaultVal;
|
||||
this._isInitializingApplyMod = false;
|
||||
this.OnPropertyChanged(nameof(this.ApplyMod));
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsAsar
|
||||
{
|
||||
get => _isAsar;
|
||||
get => this._isAsar;
|
||||
set
|
||||
{
|
||||
if (_isAsar != value)
|
||||
if (this._isAsar != value)
|
||||
{
|
||||
_isAsar = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(AsarBadgeVisibility));
|
||||
OnPropertyChanged(nameof(AsarBadgeText));
|
||||
OnPropertyChanged(nameof(AsarBadgeBackground));
|
||||
OnPropertyChanged(nameof(AsarDetailStatusText));
|
||||
this._isAsar = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.AsarBadgeVisibility));
|
||||
this.OnPropertyChanged(nameof(this.AsarBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.AsarBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.AsarDetailStatusText));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsAsarExtracted
|
||||
{
|
||||
get => _isAsarExtracted;
|
||||
get => this._isAsarExtracted;
|
||||
set
|
||||
{
|
||||
if (_isAsarExtracted != value)
|
||||
if (this._isAsarExtracted != value)
|
||||
{
|
||||
_isAsarExtracted = value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(AsarBadgeText));
|
||||
OnPropertyChanged(nameof(AsarBadgeBackground));
|
||||
OnPropertyChanged(nameof(AsarDetailStatusText));
|
||||
this._isAsarExtracted = value;
|
||||
this.OnPropertyChanged();
|
||||
this.OnPropertyChanged(nameof(this.AsarBadgeText));
|
||||
this.OnPropertyChanged(nameof(this.AsarBadgeBackground));
|
||||
this.OnPropertyChanged(nameof(this.AsarDetailStatusText));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string? AsarPath
|
||||
{
|
||||
get => _asarPath;
|
||||
set { if (_asarPath != value) { _asarPath = value; OnPropertyChanged(); } }
|
||||
get => this._asarPath;
|
||||
set { if (this._asarPath != value) { this._asarPath = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public string? AsarExtractedDirPath
|
||||
{
|
||||
get => _asarExtractedDirPath;
|
||||
set { if (_asarExtractedDirPath != value) { _asarExtractedDirPath = value; OnPropertyChanged(); } }
|
||||
get => this._asarExtractedDirPath;
|
||||
set { if (this._asarExtractedDirPath != value) { this._asarExtractedDirPath = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public string? RelativePluginsJsInAsar
|
||||
{
|
||||
get => _relativePluginsJsInAsar;
|
||||
set { if (_relativePluginsJsInAsar != value) { _relativePluginsJsInAsar = value; OnPropertyChanged(); } }
|
||||
get => this._relativePluginsJsInAsar;
|
||||
set { if (this._relativePluginsJsInAsar != value) { this._relativePluginsJsInAsar = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public override Visibility AsarBadgeVisibility => IsAsar ? Visibility.Visible : Visibility.Collapsed;
|
||||
public override Visibility AsarBadgeVisibility => this.IsAsar ? Visibility.Visible : Visibility.Collapsed;
|
||||
|
||||
public override string AsarBadgeText => !IsAsar ? string.Empty : (IsAsarExtracted ? "ASAR (解凍済)" : "ASAR (圧縮)");
|
||||
public override string AsarBadgeText => !this.IsAsar ? string.Empty : (this.IsAsarExtracted ? "ASAR (解凍済)" : "ASAR (圧縮)");
|
||||
|
||||
public override Brush AsarBadgeBackground => !IsAsar
|
||||
public override Brush AsarBadgeBackground => !this.IsAsar
|
||||
? Brushes.Transparent
|
||||
: (IsAsarExtracted
|
||||
: (this.IsAsarExtracted
|
||||
? new SolidColorBrush(Color.FromRgb(0x00, 0x89, 0x7B))
|
||||
: new SolidColorBrush(Color.FromRgb(0x5E, 0x35, 0xB1)));
|
||||
|
||||
public override string AsarDetailStatusText => !IsAsar
|
||||
public override string AsarDetailStatusText => !this.IsAsar
|
||||
? string.Empty
|
||||
: (IsAsarExtracted ? "📦 app.asar 形式(解凍済み・改造可能)" : "📦 app.asar 形式(圧縮中・起動時またはボタンで解凍可能)");
|
||||
: (this.IsAsarExtracted ? "📦 app.asar 形式(解凍済み・改造可能)" : "📦 app.asar 形式(圧縮中・起動時またはボタンで解凍可能)");
|
||||
|
||||
private Dictionary<string, bool> _pluginSettings = new(StringComparer.OrdinalIgnoreCase);
|
||||
private ObservableCollection<ModPluginOptionItem> _pluginOptions = [];
|
||||
@@ -810,14 +810,14 @@ namespace GameLauncher.Engines.Tkool
|
||||
|
||||
public bool IsPluginEnabled(string pluginId, Dictionary<string, bool>? defaultSettings = null, bool fallbackVal = true)
|
||||
{
|
||||
if (_pluginSettings.TryGetValue(pluginId, out var val))
|
||||
if (this._pluginSettings.TryGetValue(pluginId, out var val))
|
||||
{
|
||||
return val;
|
||||
}
|
||||
|
||||
if (pluginId is "BattleTurnRecoverHp" or "BattleTurnRecoverMp" or "BattleTurnRecoverTp")
|
||||
{
|
||||
if (_pluginSettings.TryGetValue("BattleTurnRecover", out var legacyVal))
|
||||
if (this._pluginSettings.TryGetValue("BattleTurnRecover", out var legacyVal))
|
||||
{
|
||||
return legacyVal;
|
||||
}
|
||||
@@ -969,11 +969,11 @@ namespace GameLauncher.Engines.Tkool
|
||||
|
||||
public ModPluginOptions ModOptions
|
||||
{
|
||||
get => _modOptions;
|
||||
set { if (_modOptions != value) { _modOptions = value; OnPropertyChanged(); } }
|
||||
get => this._modOptions;
|
||||
set { if (this._modOptions != value) { this._modOptions = value; this.OnPropertyChanged(); } }
|
||||
}
|
||||
|
||||
public string EngineDisplayName => EngineType switch
|
||||
public string EngineDisplayName => this.EngineType switch
|
||||
{
|
||||
TkoolEngineType.MV => "RPGツクールMV",
|
||||
TkoolEngineType.MZ => "RPGツクールMZ",
|
||||
|
||||
Reference in new issue
Block a user