987 lines
73 KiB
XML
987 lines
73 KiB
XML
<Window x:Class="GameLauncher.MainWindow"
|
||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
xmlns:local="clr-namespace:GameLauncher"
|
||
xmlns:helpers="clr-namespace:GameLauncher.Helpers"
|
||
xmlns:models="clr-namespace:GameLauncher.Models"
|
||
mc:Ignorable="d"
|
||
Title="統合ゲームランチャー (Game Launcher)"
|
||
Height="840" Width="1280"
|
||
MinHeight="620" MinWidth="960"
|
||
WindowStartupLocation="CenterScreen"
|
||
Background="#181820"
|
||
Foreground="#E0E0E6"
|
||
FontFamily="Segoe UI, Meiryo UI, Yu Gothic UI">
|
||
|
||
<Window.Resources>
|
||
<!-- カラーパレット定義 -->
|
||
<SolidColorBrush x:Key="BgDark" Color="#181820"/>
|
||
<SolidColorBrush x:Key="CardBg" Color="#22222C"/>
|
||
<SolidColorBrush x:Key="CardHoverBg" Color="#2C2C3A"/>
|
||
<SolidColorBrush x:Key="CardSelectedBg" Color="#333348"/>
|
||
<SolidColorBrush x:Key="SidePanelBg" Color="#1F1F2A"/>
|
||
<SolidColorBrush x:Key="BorderBrushColor" Color="#38384C"/>
|
||
<SolidColorBrush x:Key="TextPrimary" Color="#F2F2F7"/>
|
||
<SolidColorBrush x:Key="TextSecondary" Color="#9E9EB4"/>
|
||
<SolidColorBrush x:Key="AccentPrimary" Color="#6C5CE7"/>
|
||
<SolidColorBrush x:Key="AccentHover" Color="#7D6DF8"/>
|
||
<SolidColorBrush x:Key="AccentGreen" Color="#00B894"/>
|
||
<SolidColorBrush x:Key="AccentGreenHover" Color="#10D3AC"/>
|
||
<SolidColorBrush x:Key="BadgeMvBg" Color="#8B1E3F"/>
|
||
<SolidColorBrush x:Key="BadgeMzBg" Color="#1E5F8B"/>
|
||
<SolidColorBrush x:Key="BadgeTyranoBg" Color="#D35400"/>
|
||
<SolidColorBrush x:Key="BadgeModdedBg" Color="#8B571E"/>
|
||
<SolidColorBrush x:Key="BadgeIl2cppBg" Color="#5A368B"/>
|
||
<SolidColorBrush x:Key="BadgeMonoBg" Color="#1E5F8B"/>
|
||
<SolidColorBrush x:Key="BadgeSaveBg" Color="#0D735E"/>
|
||
|
||
<!-- スクロールバースタイル定義 -->
|
||
<Style TargetType="ScrollBar">
|
||
<Setter Property="Background" Value="Transparent"/>
|
||
<Setter Property="Foreground" Value="#4A4A60"/>
|
||
</Style>
|
||
|
||
<!-- ボタン標準スタイル -->
|
||
<Style x:Key="ModernButton" TargetType="Button">
|
||
<Setter Property="Background" Value="#2E2E3E"/>
|
||
<Setter Property="Foreground" Value="#E0E0E6"/>
|
||
<Setter Property="BorderThickness" Value="1"/>
|
||
<Setter Property="BorderBrush" Value="#44445A"/>
|
||
<Setter Property="Padding" Value="14,8"/>
|
||
<Setter Property="FontSize" Value="13"/>
|
||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||
<Setter Property="Cursor" Value="Hand"/>
|
||
<Setter Property="Template">
|
||
<Setter.Value>
|
||
<ControlTemplate TargetType="Button">
|
||
<Border Background="{TemplateBinding Background}"
|
||
BorderBrush="{TemplateBinding BorderBrush}"
|
||
BorderThickness="{TemplateBinding BorderThickness}"
|
||
CornerRadius="6"
|
||
Padding="{TemplateBinding Padding}">
|
||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||
</Border>
|
||
</ControlTemplate>
|
||
</Setter.Value>
|
||
</Setter>
|
||
<Style.Triggers>
|
||
<Trigger Property="IsMouseOver" Value="True">
|
||
<Setter Property="Background" Value="#3D3D52"/>
|
||
<Setter Property="BorderBrush" Value="{StaticResource AccentPrimary}"/>
|
||
</Trigger>
|
||
<Trigger Property="IsEnabled" Value="False">
|
||
<Setter Property="Opacity" Value="0.5"/>
|
||
</Trigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
|
||
<!-- 起動大ボタンスタイル(緑) -->
|
||
<Style x:Key="LaunchBigButton" TargetType="Button">
|
||
<Setter Property="Background" Value="{StaticResource AccentGreen}"/>
|
||
<Setter Property="Foreground" Value="#FFFFFF"/>
|
||
<Setter Property="BorderThickness" Value="0"/>
|
||
<Setter Property="Padding" Value="20,12"/>
|
||
<Setter Property="FontSize" Value="16"/>
|
||
<Setter Property="FontWeight" Value="Bold"/>
|
||
<Setter Property="Cursor" Value="Hand"/>
|
||
<Setter Property="Template">
|
||
<Setter.Value>
|
||
<ControlTemplate TargetType="Button">
|
||
<Border Background="{TemplateBinding Background}"
|
||
CornerRadius="8"
|
||
Padding="{TemplateBinding Padding}">
|
||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||
</Border>
|
||
</ControlTemplate>
|
||
</Setter.Value>
|
||
</Setter>
|
||
<Style.Triggers>
|
||
<Trigger Property="IsMouseOver" Value="True">
|
||
<Setter Property="Background" Value="{StaticResource AccentGreenHover}"/>
|
||
</Trigger>
|
||
<Trigger Property="IsEnabled" Value="False">
|
||
<Setter Property="Opacity" Value="0.5"/>
|
||
</Trigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
|
||
<!-- セーブエディタ紫ボタンスタイル -->
|
||
<Style x:Key="EditorBigButton" TargetType="Button">
|
||
<Setter Property="Background" Value="{StaticResource AccentPrimary}"/>
|
||
<Setter Property="Foreground" Value="#FFFFFF"/>
|
||
<Setter Property="BorderThickness" Value="0"/>
|
||
<Setter Property="Padding" Value="16,10"/>
|
||
<Setter Property="FontSize" Value="14"/>
|
||
<Setter Property="FontWeight" Value="Bold"/>
|
||
<Setter Property="Cursor" Value="Hand"/>
|
||
<Setter Property="Template">
|
||
<Setter.Value>
|
||
<ControlTemplate TargetType="Button">
|
||
<Border Background="{TemplateBinding Background}"
|
||
CornerRadius="8"
|
||
Padding="{TemplateBinding Padding}">
|
||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||
</Border>
|
||
</ControlTemplate>
|
||
</Setter.Value>
|
||
</Setter>
|
||
<Style.Triggers>
|
||
<Trigger Property="IsMouseOver" Value="True">
|
||
<Setter Property="Background" Value="{StaticResource AccentHover}"/>
|
||
</Trigger>
|
||
<Trigger Property="IsEnabled" Value="False">
|
||
<Setter Property="Opacity" Value="0.5"/>
|
||
</Trigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
|
||
<!-- ナビゲーションタブボタンスタイル(ピル型ラジオボタン) -->
|
||
<Style x:Key="NavTabRadioButton" TargetType="RadioButton">
|
||
<Setter Property="Background" Value="Transparent"/>
|
||
<Setter Property="Foreground" Value="{StaticResource TextSecondary}"/>
|
||
<Setter Property="FontSize" Value="13"/>
|
||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||
<Setter Property="Padding" Value="14,7"/>
|
||
<Setter Property="Cursor" Value="Hand"/>
|
||
<Setter Property="Template">
|
||
<Setter.Value>
|
||
<ControlTemplate TargetType="RadioButton">
|
||
<Border x:Name="tabBorder" Background="{TemplateBinding Background}" CornerRadius="6" Padding="{TemplateBinding Padding}" Margin="2,0">
|
||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||
</Border>
|
||
<ControlTemplate.Triggers>
|
||
<Trigger Property="IsMouseOver" Value="True">
|
||
<Setter TargetName="tabBorder" Property="Background" Value="#2E2E3E"/>
|
||
<Setter Property="Foreground" Value="#FFFFFF"/>
|
||
</Trigger>
|
||
<Trigger Property="IsChecked" Value="True">
|
||
<Setter TargetName="tabBorder" Property="Background" Value="{StaticResource AccentPrimary}"/>
|
||
<Setter Property="Foreground" Value="#FFFFFF"/>
|
||
<Setter Property="FontWeight" Value="Bold"/>
|
||
</Trigger>
|
||
</ControlTemplate.Triggers>
|
||
</ControlTemplate>
|
||
</Setter.Value>
|
||
</Setter>
|
||
</Style>
|
||
|
||
<!-- チェックボックススタイル -->
|
||
<Style TargetType="CheckBox">
|
||
<Setter Property="Foreground" Value="{StaticResource TextPrimary}"/>
|
||
<Setter Property="FontSize" Value="12"/>
|
||
<Setter Property="Margin" Value="0,4"/>
|
||
<Setter Property="Cursor" Value="Hand"/>
|
||
</Style>
|
||
|
||
<!-- ダークモダン ComboBox スタイル -->
|
||
<ControlTemplate x:Key="DarkComboBoxToggleButton" TargetType="ToggleButton">
|
||
<Border Background="#252535" BorderBrush="#44445A" BorderThickness="1" CornerRadius="6">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="26"/>
|
||
</Grid.ColumnDefinitions>
|
||
<Path Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
|
||
Data="M 0 0 L 4 4 L 8 0 Z" Fill="#A29BFE"/>
|
||
</Grid>
|
||
</Border>
|
||
</ControlTemplate>
|
||
|
||
<Style x:Key="DarkModernComboBox" TargetType="ComboBox">
|
||
<Setter Property="Foreground" Value="#FFFFFF"/>
|
||
<Setter Property="Background" Value="#252535"/>
|
||
<Setter Property="BorderBrush" Value="#44445A"/>
|
||
<Setter Property="BorderThickness" Value="1"/>
|
||
<Setter Property="FontSize" Value="12"/>
|
||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||
<Setter Property="Cursor" Value="Hand"/>
|
||
<Setter Property="Template">
|
||
<Setter.Value>
|
||
<ControlTemplate TargetType="ComboBox">
|
||
<Grid>
|
||
<ToggleButton Template="{StaticResource DarkComboBoxToggleButton}"
|
||
Focusable="False"
|
||
IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
||
ClickMode="Press"/>
|
||
<ContentPresenter Content="{TemplateBinding SelectionBoxItem}"
|
||
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
|
||
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
|
||
VerticalAlignment="Center"
|
||
HorizontalAlignment="Left"
|
||
Margin="10,0,26,0"
|
||
IsHitTestVisible="False"/>
|
||
<Popup Name="Popup" Placement="Bottom" IsOpen="{TemplateBinding IsDropDownOpen}"
|
||
AllowsTransparency="True" Focusable="False" PopupAnimation="Slide">
|
||
<Grid Name="DropDown" SnapsToDevicePixels="True"
|
||
MinWidth="{TemplateBinding ActualWidth}" MaxHeight="{TemplateBinding MaxDropDownHeight}">
|
||
<Border Background="#20202C" BorderBrush="#555570" BorderThickness="1" CornerRadius="6" Margin="0,2,0,4">
|
||
<ScrollViewer SnapsToDevicePixels="True">
|
||
<StackPanel IsItemsHost="True" Margin="2"/>
|
||
</ScrollViewer>
|
||
</Border>
|
||
</Grid>
|
||
</Popup>
|
||
</Grid>
|
||
</ControlTemplate>
|
||
</Setter.Value>
|
||
</Setter>
|
||
</Style>
|
||
|
||
<Style TargetType="ComboBoxItem">
|
||
<Setter Property="Background" Value="#20202C"/>
|
||
<Setter Property="Foreground" Value="#FFFFFF"/>
|
||
<Setter Property="FontSize" Value="12"/>
|
||
<Setter Property="Padding" Value="10,6"/>
|
||
<Setter Property="Cursor" Value="Hand"/>
|
||
<Setter Property="Template">
|
||
<Setter.Value>
|
||
<ControlTemplate TargetType="ComboBoxItem">
|
||
<Border x:Name="itemBorder" Background="{TemplateBinding Background}" CornerRadius="4" Padding="{TemplateBinding Padding}">
|
||
<ContentPresenter VerticalAlignment="Center"/>
|
||
</Border>
|
||
<ControlTemplate.Triggers>
|
||
<Trigger Property="IsMouseOver" Value="True">
|
||
<Setter TargetName="itemBorder" Property="Background" Value="#3D3D54"/>
|
||
</Trigger>
|
||
<Trigger Property="IsSelected" Value="True">
|
||
<Setter TargetName="itemBorder" Property="Background" Value="#4C3FB8"/>
|
||
</Trigger>
|
||
</ControlTemplate.Triggers>
|
||
</ControlTemplate>
|
||
</Setter.Value>
|
||
</Setter>
|
||
</Style>
|
||
</Window.Resources>
|
||
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto"/> <!-- ヘッダーツールバー -->
|
||
<RowDefinition Height="Auto"/> <!-- ナビゲーションタブ & フィルターバー -->
|
||
<RowDefinition Height="*"/> <!-- メインコンテンツ -->
|
||
<RowDefinition Height="115"/> <!-- リアルタイムログコンソール -->
|
||
<RowDefinition Height="Auto"/> <!-- ステータスバー -->
|
||
</Grid.RowDefinitions>
|
||
|
||
<!-- ================= ヘッダーバー (最上部) ================= -->
|
||
<Border Grid.Row="0" Background="#1C1C26" BorderBrush="{StaticResource BorderBrushColor}" BorderThickness="0,0,0,1" Padding="16,10">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="Auto"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="Auto"/>
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<!-- タイトルロゴ -->
|
||
<StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,20,0">
|
||
<TextBlock Text="🎮⚡" FontSize="22" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
||
<StackPanel VerticalAlignment="Center">
|
||
<TextBlock Text="Game Launcher" FontSize="18" FontWeight="Bold" Foreground="{StaticResource TextPrimary}"/>
|
||
<TextBlock Text="ツクールMV・MZ・ティラノ & Unity 統合ランチャー" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
|
||
<!-- 検索バー & ソート順 -->
|
||
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
|
||
<!-- 検索ボックス -->
|
||
<Border Background="#252533" BorderBrush="{StaticResource BorderBrushColor}" BorderThickness="1" CornerRadius="6" Width="280" Height="34" Margin="0,0,14,0">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="30"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="Auto"/>
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Grid.Column="0" Text="🔍" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBox x:Name="txtSearch" Grid.Column="1" Background="Transparent" BorderThickness="0"
|
||
Foreground="{StaticResource TextPrimary}" VerticalAlignment="Center" FontSize="13"
|
||
TextChanged="txtSearch_TextChanged"/>
|
||
<TextBlock Grid.Column="1" Text="タイトル、フォルダ名、開発元で検索..." Foreground="#666680"
|
||
VerticalAlignment="Center" IsHitTestVisible="False" Margin="2,0,0,0">
|
||
<TextBlock.Style>
|
||
<Style TargetType="TextBlock">
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding Text, ElementName=txtSearch}" Value="">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</TextBlock.Style>
|
||
</TextBlock>
|
||
<Button x:Name="btnClearSearch" Grid.Column="2" Content="✕" Width="26" Height="26" Background="Transparent"
|
||
BorderThickness="0" Foreground="{StaticResource TextSecondary}" Cursor="Hand" Click="btnClearSearch_Click">
|
||
<Button.Style>
|
||
<Style TargetType="Button">
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding Text, ElementName=txtSearch}" Value="">
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Button.Style>
|
||
</Button>
|
||
</Grid>
|
||
</Border>
|
||
|
||
<!-- ソート順選択ドロップダウン -->
|
||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||
<TextBlock Text="並び順:" FontSize="12" Foreground="{StaticResource TextSecondary}" VerticalAlignment="Center" Margin="0,0,6,0"/>
|
||
<ComboBox x:Name="cmbSortOrder" Width="205" Height="34" Style="{StaticResource DarkModernComboBox}"
|
||
SelectionChanged="cmbSortOrder_SelectionChanged">
|
||
<ComboBoxItem Content="最終実行日時 (新しい順)" Tag="LastLaunchedDesc" IsSelected="True"/>
|
||
<ComboBoxItem Content="最終実行日時 (古い順)" Tag="LastLaunchedAsc"/>
|
||
<ComboBoxItem Content="フォルダ更新日時 (新しい順)" Tag="FolderLastModifiedDesc"/>
|
||
<ComboBoxItem Content="フォルダ更新日時 (古い順)" Tag="FolderLastModifiedAsc"/>
|
||
<ComboBoxItem Content="タイトル (昇順 A→Z)" Tag="TitleAsc"/>
|
||
<ComboBoxItem Content="タイトル (降順 Z→A)" Tag="TitleDesc"/>
|
||
<ComboBoxItem Content="フォルダ名 (昇順)" Tag="FolderNameAsc"/>
|
||
</ComboBox>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
|
||
<!-- 再スキャンボタン -->
|
||
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
|
||
<Button x:Name="btnRescan" Style="{StaticResource ModernButton}" Content="🔄 再スキャン" Click="btnRescan_Click"/>
|
||
</StackPanel>
|
||
</Grid>
|
||
</Border>
|
||
|
||
<!-- ================= ナビゲーションタブ & フィルターバー ================= -->
|
||
<Border Grid.Row="1" Background="#181824" BorderBrush="{StaticResource BorderBrushColor}" BorderThickness="0,0,0,1" Padding="16,8">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="Auto"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<!-- メインタブセレクター(ピル型) -->
|
||
<Border Grid.Column="0" Background="#12121A" CornerRadius="8" Padding="3" Margin="0,0,20,0" BorderBrush="#303040" BorderThickness="1">
|
||
<StackPanel Orientation="Horizontal">
|
||
<RadioButton x:Name="tabAll" Style="{StaticResource NavTabRadioButton}" Content="🎮⚡ すべて" IsChecked="True" Checked="MainTab_Checked"/>
|
||
<RadioButton x:Name="tabTkool" Style="{StaticResource NavTabRadioButton}" Content="🎮 ツクール・ティラノ" Checked="MainTab_Checked"/>
|
||
<RadioButton x:Name="tabUnity" Style="{StaticResource NavTabRadioButton}" Content="⚡ Unity" Checked="MainTab_Checked"/>
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<!-- 連動サブフィルター群 -->
|
||
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center">
|
||
<!-- 1. ツクール/ティラノ用サブフィルター -->
|
||
<StackPanel x:Name="pnlTkoolFilters" Orientation="Horizontal" VerticalAlignment="Center" Visibility="Collapsed">
|
||
<TextBlock Text="エンジン:" FontSize="12" Foreground="{StaticResource TextSecondary}" VerticalAlignment="Center" Margin="0,0,6,0"/>
|
||
<RadioButton x:Name="rbTkoolAll" Content="すべて" IsChecked="True" GroupName="TkoolEngineFilter" Margin="0,0,8,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged"/>
|
||
<RadioButton x:Name="rbTkoolMV" Content="MV" GroupName="TkoolEngineFilter" Margin="0,0,8,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged"/>
|
||
<RadioButton x:Name="rbTkoolMZ" Content="MZ" GroupName="TkoolEngineFilter" Margin="0,0,8,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged"/>
|
||
<RadioButton x:Name="rbTkoolTyrano" Content="ティラノ" GroupName="TkoolEngineFilter" Margin="0,0,14,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged"/>
|
||
<CheckBox x:Name="chkFilterModdedOnly" Content="改造中のみ" Margin="0,0,10,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged" Unchecked="FilterChanged"/>
|
||
<CheckBox x:Name="chkFilterAsarOnly" Content="ASAR形式のみ" Margin="0,0,10,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged" Unchecked="FilterChanged"/>
|
||
</StackPanel>
|
||
|
||
<!-- 2. Unity用サブフィルター -->
|
||
<StackPanel x:Name="pnlUnityFilters" Orientation="Horizontal" VerticalAlignment="Center" Visibility="Collapsed">
|
||
<TextBlock Text="バックエンド:" FontSize="12" Foreground="{StaticResource TextSecondary}" VerticalAlignment="Center" Margin="0,0,6,0"/>
|
||
<RadioButton x:Name="rbUnityAll" Content="すべて" IsChecked="True" GroupName="UnityBackendFilter" Margin="0,0,8,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged"/>
|
||
<RadioButton x:Name="rbUnityIL2CPP" Content="IL2CPP" GroupName="UnityBackendFilter" Margin="0,0,8,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged"/>
|
||
<RadioButton x:Name="rbUnityMono" Content="Mono" GroupName="UnityBackendFilter" Margin="0,0,14,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged"/>
|
||
<CheckBox x:Name="chkFilterSaveOnly" Content="セーブありのみ" Margin="0,0,10,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged" Unchecked="FilterChanged"/>
|
||
</StackPanel>
|
||
|
||
<!-- 3. 「すべて」選択時の共通フィルター -->
|
||
<StackPanel x:Name="pnlAllFilters" Orientation="Horizontal" VerticalAlignment="Center">
|
||
<CheckBox x:Name="chkFilterAllModded" Content="改造中のみ" Margin="0,0,12,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged" Unchecked="FilterChanged"/>
|
||
<CheckBox x:Name="chkFilterAllAsar" Content="ASAR形式のみ" Margin="0,0,12,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged" Unchecked="FilterChanged"/>
|
||
<CheckBox x:Name="chkFilterAllSave" Content="セーブありのみ" Margin="0,0,12,0" Foreground="{StaticResource TextSecondary}" Checked="FilterChanged" Unchecked="FilterChanged"/>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</Grid>
|
||
</Border>
|
||
|
||
<!-- ================= メインコンテンツ ================= -->
|
||
<Grid Grid.Row="2">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="3*" MinWidth="350"/> <!-- ゲーム一覧 -->
|
||
<ColumnDefinition Width="Auto"/> <!-- スプリッター -->
|
||
<ColumnDefinition Width="2*" MinWidth="340"/> <!-- 詳細&起動パネル -->
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<!-- 左側:ゲーム一覧 -->
|
||
<Grid Grid.Column="0">
|
||
<ListBox x:Name="lstGames" Background="Transparent" BorderThickness="0"
|
||
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
||
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
||
SelectionChanged="lstGames_SelectionChanged"
|
||
MouseDoubleClick="lstGames_MouseDoubleClick"
|
||
Padding="12">
|
||
<!-- コンテキストメニュー(クリックされたアイテムに応じて動的に出し分け) -->
|
||
<ListBox.ContextMenu>
|
||
<ContextMenu x:Name="listContextMenu" ContextMenuOpening="listContextMenu_ContextMenuOpening">
|
||
<MenuItem Header="🚀 このゲームを起動" Click="MenuLaunch_Click"/>
|
||
<Separator Background="{StaticResource BorderBrushColor}"/>
|
||
|
||
<!-- ツクール専用メニュー項目 -->
|
||
<MenuItem x:Name="menuTkoolOpenFolder" Header="📁 ゲームフォルダを開く" Click="MenuOpenFolder_Click"/>
|
||
<MenuItem x:Name="menuTkoolOpenProfile" Header="📂 プロファイルフォルダを開く" Click="MenuOpenProfileFolder_Click"/>
|
||
<MenuItem x:Name="menuTkoolOpenPluginsJs" Header="📄 plugins.js を開く" Click="MenuOpenPluginsJs_Click"/>
|
||
<MenuItem x:Name="menuTkoolRestoreOriginal" Header="↩ 改造を解除してオリジナルに復元" Click="MenuRestoreOriginal_Click"/>
|
||
<MenuItem x:Name="menuTkoolExtractAsar" Header="📦 ASARを解凍する" Click="MenuExtractAsar_Click"/>
|
||
<MenuItem x:Name="menuTkoolRestoreAsar" Header="↩ ASAR状態に戻す(復元)" Click="MenuRestoreAsar_Click"/>
|
||
|
||
<!-- Unity専用メニュー項目 -->
|
||
<MenuItem x:Name="menuUnitySaveEditor" Header="🛠 セーブエディタを開く" Click="MenuOpenSaveEditor_Click"/>
|
||
<MenuItem x:Name="menuUnityOpenFolder" Header="📁 ゲームフォルダを開く" Click="MenuOpenFolder_Click"/>
|
||
<MenuItem x:Name="menuUnityOpenLocalLow" Header="📂 LocalLowセーブフォルダを開く" Click="MenuOpenLocalLow_Click"/>
|
||
<MenuItem x:Name="menuUnityOpenRegedit" Header="🌐 regeditでPlayerPrefsを開く" Click="MenuOpenRegedit_Click"/>
|
||
<MenuItem x:Name="menuUnityBackupSave" Header="📦 セーブデータを一括バックアップ" Click="MenuBackupSave_Click"/>
|
||
</ContextMenu>
|
||
</ListBox.ContextMenu>
|
||
|
||
<ListBox.ItemContainerStyle>
|
||
<Style TargetType="ListBoxItem">
|
||
<Setter Property="Padding" Value="0"/>
|
||
<Setter Property="Margin" Value="0,0,0,8"/>
|
||
<Setter Property="Background" Value="Transparent"/>
|
||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||
<Setter Property="Template">
|
||
<Setter.Value>
|
||
<ControlTemplate TargetType="ListBoxItem">
|
||
<Border x:Name="border" Background="{StaticResource CardBg}"
|
||
BorderBrush="{StaticResource BorderBrushColor}" BorderThickness="1"
|
||
CornerRadius="8" Padding="12,10" SnapsToDevicePixels="True">
|
||
<ContentPresenter/>
|
||
</Border>
|
||
<ControlTemplate.Triggers>
|
||
<Trigger Property="IsMouseOver" Value="True">
|
||
<Setter TargetName="border" Property="Background" Value="{StaticResource CardHoverBg}"/>
|
||
<Setter TargetName="border" Property="BorderBrush" Value="#555570"/>
|
||
</Trigger>
|
||
<Trigger Property="IsSelected" Value="True">
|
||
<Setter TargetName="border" Property="Background" Value="{StaticResource CardSelectedBg}"/>
|
||
<Setter TargetName="border" Property="BorderBrush" Value="{StaticResource AccentPrimary}"/>
|
||
<Setter TargetName="border" Property="BorderThickness" Value="1.5"/>
|
||
</Trigger>
|
||
</ControlTemplate.Triggers>
|
||
</ControlTemplate>
|
||
</Setter.Value>
|
||
</Setter>
|
||
</Style>
|
||
</ListBox.ItemContainerStyle>
|
||
|
||
<ListBox.ItemTemplate>
|
||
<DataTemplate DataType="{x:Type models:GameItemBase}">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="52"/>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="Auto"/>
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<!-- ゲームアイコン -->
|
||
<Border Grid.Column="0" Width="44" Height="44" CornerRadius="6" Background="#16161E"
|
||
BorderBrush="#303040" BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center">
|
||
<Grid>
|
||
<TextBlock Text="🎮" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0.4"
|
||
Visibility="{Binding IconImage, Converter={x:Static helpers:NullToVisibleConverter.Instance}}"/>
|
||
<Image Source="{Binding IconImage}" Width="36" Height="36" Stretch="Uniform" RenderOptions.BitmapScalingMode="HighQuality"/>
|
||
</Grid>
|
||
</Border>
|
||
|
||
<!-- タイトル・フォルダ名・日付 -->
|
||
<StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="10,0,10,0">
|
||
<TextBlock Text="{Binding Title}" FontSize="14" FontWeight="SemiBold"
|
||
Foreground="{StaticResource TextPrimary}" TextTrimming="CharacterEllipsis"/>
|
||
<Grid Margin="0,3,0,0">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="Auto"/>
|
||
<ColumnDefinition Width="Auto"/>
|
||
</Grid.ColumnDefinitions>
|
||
<TextBlock Grid.Column="0" Text="{Binding FolderName}" FontSize="11" Foreground="{StaticResource TextSecondary}"
|
||
TextTrimming="CharacterEllipsis"/>
|
||
<TextBlock Grid.Column="1" Text="{Binding FolderLastModifiedCardDisplay}" FontSize="11" Foreground="#FAB1A0"
|
||
Margin="8,0,0,0"/>
|
||
<TextBlock Grid.Column="2" Text="{Binding LastLaunchedCardDisplay}" FontSize="11" Foreground="#81ECEC"
|
||
Margin="8,0,0,0"/>
|
||
</Grid>
|
||
</StackPanel>
|
||
|
||
<!-- バッジ群(ツクール / Unity 双方の種別バッジ) -->
|
||
<StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
|
||
<!-- MVバッジ -->
|
||
<Border CornerRadius="4" Padding="6,2" Margin="0,0,6,0">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Background" Value="{StaticResource BadgeMvBg}"/>
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding IsMV}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="MV" FontSize="11" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- MZバッジ -->
|
||
<Border CornerRadius="4" Padding="6,2" Margin="0,0,6,0">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Background" Value="{StaticResource BadgeMzBg}"/>
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding IsMZ}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="MZ" FontSize="11" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- ティラノバッジ -->
|
||
<Border CornerRadius="4" Padding="6,2" Margin="0,0,6,0">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Background" Value="{StaticResource BadgeTyranoBg}"/>
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding IsTyrano}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="ティラノ" FontSize="10" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- IL2CPPバッジ -->
|
||
<Border CornerRadius="4" Padding="6,2" Margin="0,0,6,0">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Background" Value="{StaticResource BadgeIl2cppBg}"/>
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding IsIL2CPP}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="IL2CPP" FontSize="11" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- Monoバッジ -->
|
||
<Border CornerRadius="4" Padding="6,2" Margin="0,0,6,0">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Background" Value="{StaticResource BadgeMonoBg}"/>
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding IsMono}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="Mono" FontSize="11" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- ASARバッジ(ツクール専用) -->
|
||
<Border Background="{Binding AsarBadgeBackground}" CornerRadius="4" Padding="6,2" Margin="0,0,6,0"
|
||
Visibility="{Binding AsarBadgeVisibility}">
|
||
<TextBlock Text="{Binding AsarBadgeText}" FontSize="10" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- 改造適用中インジケータ(ツクール専用) -->
|
||
<Border Background="{StaticResource BadgeModdedBg}" CornerRadius="4" Padding="6,2" Margin="0,0,6,0">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding IsModded}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="改造適用中" FontSize="10" FontWeight="SemiBold" Foreground="#FFDEAA"/>
|
||
</Border>
|
||
|
||
<!-- セーブデータありインジケータ(Unity専用) -->
|
||
<Border Background="{StaticResource BadgeSaveBg}" CornerRadius="4" Padding="6,2">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding HasSaveData}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="💾 セーブあり" FontSize="10" FontWeight="SemiBold" Foreground="#81ECEC"/>
|
||
</Border>
|
||
</StackPanel>
|
||
</Grid>
|
||
</DataTemplate>
|
||
</ListBox.ItemTemplate>
|
||
</ListBox>
|
||
|
||
<!-- 0件表示 -->
|
||
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Opacity="0.5">
|
||
<StackPanel.Style>
|
||
<Style TargetType="StackPanel">
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding Items.Count, ElementName=lstGames}" Value="0">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</StackPanel.Style>
|
||
<TextBlock Text="📂" FontSize="48" HorizontalAlignment="Center" Margin="0,0,0,10"/>
|
||
<TextBlock Text="表示できるゲームがありません" FontSize="15" HorizontalAlignment="Center"/>
|
||
<TextBlock Text="検索条件を変更するか、再スキャンを実行してください" FontSize="12" HorizontalAlignment="Center" Margin="0,4,0,0"/>
|
||
</StackPanel>
|
||
</Grid>
|
||
|
||
<!-- グリッドスプリッター -->
|
||
<GridSplitter Grid.Column="1" Width="3" Background="{StaticResource BorderBrushColor}"
|
||
HorizontalAlignment="Center" VerticalAlignment="Stretch"/>
|
||
|
||
<!-- 右側:詳細 & 操作パネル -->
|
||
<Border Grid.Column="2" Background="{StaticResource SidePanelBg}" Padding="20">
|
||
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
|
||
<Grid x:Name="pnlGameDetails" Margin="0,0,14,0">
|
||
<!-- 未選択時メッセージ -->
|
||
<StackPanel x:Name="pnlNoSelection" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,80,0,0" Opacity="0.6">
|
||
<TextBlock Text="👈" FontSize="44" HorizontalAlignment="Center" Margin="0,0,0,10"/>
|
||
<TextBlock Text="ゲームを選択してください" FontSize="16" HorizontalAlignment="Center"/>
|
||
<TextBlock Text="ダブルクリックで即時起動することもできます" FontSize="12" HorizontalAlignment="Center" Margin="0,6,0,0"/>
|
||
</StackPanel>
|
||
|
||
<!-- 選択時コンテンツ -->
|
||
<StackPanel x:Name="pnlSelectedContent" Margin="0,0,0,16" Visibility="Collapsed">
|
||
<!-- 1. ゲームアイコン・タイトル・バッジ(共通) -->
|
||
<Grid Margin="0,0,0,16">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="64"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
<Border Grid.Column="0" Width="56" Height="56" CornerRadius="8" Background="#14141C"
|
||
BorderBrush="#38384C" BorderThickness="1" HorizontalAlignment="Left">
|
||
<Grid>
|
||
<TextBlock Text="🎮" FontSize="26" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0.4"
|
||
Visibility="{Binding SelectedItem.IconImage, ElementName=lstGames, Converter={x:Static helpers:NullToVisibleConverter.Instance}}"/>
|
||
<Image Source="{Binding SelectedItem.IconImage, ElementName=lstGames}" Stretch="Uniform" Width="48" Height="48"
|
||
RenderOptions.BitmapScalingMode="HighQuality"/>
|
||
</Grid>
|
||
</Border>
|
||
<StackPanel Grid.Column="1" VerticalAlignment="Center">
|
||
<TextBlock x:Name="lblSelectedTitle" Text="{Binding SelectedItem.Title, ElementName=lstGames}"
|
||
FontSize="17" FontWeight="Bold" Foreground="{StaticResource TextPrimary}" TextWrapping="Wrap"/>
|
||
|
||
<!-- 種別バッジライン -->
|
||
<WrapPanel Orientation="Horizontal" Margin="0,4,0,0">
|
||
<!-- ツクールMVバッジ -->
|
||
<Border CornerRadius="4" Padding="6,2" Margin="0,0,6,0" Background="{StaticResource BadgeMvBg}">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding SelectedItem.IsMV, ElementName=lstGames}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="RPGツクールMV" FontSize="11" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- ツクールMZバッジ -->
|
||
<Border CornerRadius="4" Padding="6,2" Margin="0,0,6,0" Background="{StaticResource BadgeMzBg}">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding SelectedItem.IsMZ, ElementName=lstGames}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="RPGツクールMZ" FontSize="11" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- ティラノバッジ -->
|
||
<Border CornerRadius="4" Padding="6,2" Margin="0,0,6,0" Background="{StaticResource BadgeTyranoBg}">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding SelectedItem.IsTyrano, ElementName=lstGames}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="ティラノスクリプト" FontSize="11" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- Unityバックエンドバッジ -->
|
||
<Border CornerRadius="4" Padding="6,2" Margin="0,0,6,0" Background="{StaticResource BadgeIl2cppBg}"
|
||
Visibility="{Binding SelectedItem, ElementName=lstGames, Converter={x:Static helpers:IsUnityToVisibilityConverter.Instance}}">
|
||
<TextBlock Text="{Binding SelectedItem.BackendBadgeText, ElementName=lstGames}" FontSize="11" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- Unityバージョン -->
|
||
<TextBlock Text="{Binding SelectedItem.UnityVersion, ElementName=lstGames, StringFormat='Unity {0}'}"
|
||
FontSize="11" Foreground="{StaticResource TextSecondary}" VerticalAlignment="Center" Margin="0,0,8,0"
|
||
Visibility="{Binding SelectedItem, ElementName=lstGames, Converter={x:Static helpers:IsUnityToVisibilityConverter.Instance}}"/>
|
||
|
||
<!-- ASARバッジ -->
|
||
<Border Background="{Binding SelectedItem.AsarBadgeBackground, ElementName=lstGames}" CornerRadius="4" Padding="6,2" Margin="0,0,6,0"
|
||
Visibility="{Binding SelectedItem.AsarBadgeVisibility, ElementName=lstGames}">
|
||
<TextBlock Text="{Binding SelectedItem.AsarBadgeText, ElementName=lstGames}" FontSize="11" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
|
||
<!-- 改造中バッジ -->
|
||
<Border CornerRadius="4" Padding="6,2" Background="{StaticResource BadgeModdedBg}" Margin="0,0,6,0">
|
||
<Border.Style>
|
||
<Style TargetType="Border">
|
||
<Setter Property="Visibility" Value="Collapsed"/>
|
||
<Style.Triggers>
|
||
<DataTrigger Binding="{Binding SelectedItem.IsModded, ElementName=lstGames}" Value="True">
|
||
<Setter Property="Visibility" Value="Visible"/>
|
||
</DataTrigger>
|
||
</Style.Triggers>
|
||
</Style>
|
||
</Border.Style>
|
||
<TextBlock Text="現在: 改造適用中" FontSize="10" FontWeight="SemiBold" Foreground="#FFDEAA"/>
|
||
</Border>
|
||
</WrapPanel>
|
||
</StackPanel>
|
||
</Grid>
|
||
|
||
<!-- 2. 起動ボタン(大・共通) -->
|
||
<Button x:Name="btnLaunchGame" Style="{StaticResource LaunchBigButton}" Height="48" Margin="0,0,0,12" Click="btnLaunchGame_Click">
|
||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||
<TextBlock Text="🚀" FontSize="20" Margin="0,0,10,0" VerticalAlignment="Center"/>
|
||
<TextBlock Text="ゲームを起動" FontSize="16" FontWeight="Bold" VerticalAlignment="Center"/>
|
||
</StackPanel>
|
||
</Button>
|
||
|
||
<!-- ================= A. ツクール / ティラノ 選択時の個別UI ================= -->
|
||
<StackPanel x:Name="pnlTkoolDetails" Visibility="{Binding SelectedItem, ElementName=lstGames, Converter={x:Static helpers:IsTkoolToVisibilityConverter.Instance}}">
|
||
<!-- クイックボタン -->
|
||
<Grid Margin="0,0,0,14">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="8"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
<Button Grid.Column="0" Style="{StaticResource ModernButton}" Content="📁 フォルダを開く" Click="btnOpenFolder_Click"/>
|
||
<Button Grid.Column="2" Style="{StaticResource ModernButton}" Content="↩ 改造を解除(復元)" Click="btnRestoreOriginal_Click"/>
|
||
</Grid>
|
||
|
||
<!-- パス・日時情報 -->
|
||
<Border Background="#14141C" BorderBrush="{StaticResource BorderBrushColor}" BorderThickness="1" CornerRadius="6" Padding="12,10" Margin="0,0,0,14">
|
||
<StackPanel>
|
||
<TextBlock Text="フォルダ:" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBlock Text="{Binding SelectedItem.RootDirectory, ElementName=lstGames}" FontSize="11" Foreground="{StaticResource TextPrimary}" TextWrapping="Wrap" Margin="0,2,0,6"/>
|
||
<TextBlock Text="実行ファイル:" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBlock Text="{Binding SelectedItem.ExecutablePath, ElementName=lstGames}" FontSize="11" Foreground="{StaticResource TextPrimary}" TextWrapping="Wrap" Margin="0,2,0,6"/>
|
||
|
||
<Grid Margin="0,2,0,0">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
<StackPanel Grid.Column="0">
|
||
<TextBlock Text="最終実行日時:" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBlock Text="{Binding SelectedItem.LastLaunchedDetailDisplay, ElementName=lstGames}" FontSize="11" Foreground="#81ECEC" Margin="0,2,0,0"/>
|
||
</StackPanel>
|
||
<StackPanel Grid.Column="1">
|
||
<TextBlock Text="フォルダ更新日時:" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBlock Text="{Binding SelectedItem.FolderLastModifiedDetailDisplay, ElementName=lstGames}" FontSize="11" Foreground="#FAB1A0" Margin="0,2,0,0"/>
|
||
</StackPanel>
|
||
</Grid>
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<!-- ASARパッケージ管理セクション(IsAsar時のみ表示) -->
|
||
<Border Background="#1E1E2E" BorderBrush="#6C5CE7" BorderThickness="1.5" CornerRadius="8" Padding="14" Margin="0,0,0,14"
|
||
Visibility="{Binding SelectedItem.AsarBadgeVisibility, ElementName=lstGames}">
|
||
<StackPanel>
|
||
<StackPanel Orientation="Horizontal" Margin="0,0,0,6">
|
||
<TextBlock Text="📦 app.asar パッケージ管理" FontSize="13" FontWeight="Bold" Foreground="#A29BFE"/>
|
||
<Border Background="{Binding SelectedItem.AsarBadgeBackground, ElementName=lstGames}" CornerRadius="4" Padding="6,2" Margin="10,0,0,0">
|
||
<TextBlock Text="{Binding SelectedItem.AsarBadgeText, ElementName=lstGames}" FontSize="10" FontWeight="Bold" Foreground="#FFFFFF"/>
|
||
</Border>
|
||
</StackPanel>
|
||
|
||
<TextBlock Text="{Binding SelectedItem.AsarDetailStatusText, ElementName=lstGames}"
|
||
FontSize="11" Foreground="{StaticResource TextSecondary}" TextWrapping="Wrap" Margin="0,0,0,10"/>
|
||
|
||
<Grid Margin="0,0,0,4">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="8"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
<Button x:Name="btnExtractAsar" Grid.Column="0" Style="{StaticResource ModernButton}"
|
||
Content="📦 ASARを解凍" Click="btnExtractAsar_Click"/>
|
||
<Button x:Name="btnRestoreAsar" Grid.Column="2" Style="{StaticResource ModernButton}"
|
||
Content="↩ ASARに戻す" Click="btnRestoreAsar_Click"/>
|
||
</Grid>
|
||
|
||
<ProgressBar x:Name="pbAsarProgress" Height="6" Margin="0,8,0,4" Visibility="Collapsed"
|
||
Foreground="{StaticResource AccentGreen}" Background="#252535" BorderThickness="0"/>
|
||
<TextBlock x:Name="lblAsarProgressStatus" Text="" FontSize="11" Foreground="#81ECEC" Visibility="Collapsed" TextWrapping="Wrap"/>
|
||
</StackPanel>
|
||
</Border>
|
||
|
||
<!-- スクリプト改造セクション -->
|
||
<Border Background="#252535" BorderBrush="{StaticResource AccentPrimary}" BorderThickness="1.5" CornerRadius="8" Padding="14" Margin="0,0,0,14">
|
||
<StackPanel>
|
||
<CheckBox x:Name="chkApplyMod" IsChecked="{Binding SelectedItem.ApplyMod, ElementName=lstGames, Mode=TwoWay}"
|
||
FontSize="15" FontWeight="Bold" Foreground="#A29BFE">
|
||
<TextBlock Text="⚡ スクリプト改造を適用して起動" Margin="4,0,0,0"/>
|
||
</CheckBox>
|
||
<TextBlock Text="チェックONで改造プラグインを適用して起動します。チェックOFFで改造前の状態に完全復元して起動します。"
|
||
FontSize="11" Foreground="{StaticResource TextSecondary}" TextWrapping="Wrap" Margin="24,4,0,10"/>
|
||
|
||
<!-- 個別プラグインアコーディオン -->
|
||
<Expander Header="プラグイン個別設定(詳細)" IsExpanded="True" Foreground="{StaticResource TextSecondary}" FontSize="12">
|
||
<ItemsControl ItemsSource="{Binding SelectedItem.PluginOptions, ElementName=lstGames}" Margin="4,8,0,0">
|
||
<ItemsControl.ItemTemplate>
|
||
<DataTemplate DataType="{x:Type models:ModPluginOptionItem}">
|
||
<Border Margin="0,0,0,6" Background="#1B1B26" CornerRadius="5" Padding="10,7" BorderBrush="#35354A" BorderThickness="1">
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto"/>
|
||
<RowDefinition Height="Auto"/>
|
||
</Grid.RowDefinitions>
|
||
<CheckBox Grid.Row="0" IsChecked="{Binding IsEnabled, Mode=TwoWay}"
|
||
Content="{Binding Name}" FontWeight="SemiBold" FontSize="12" Foreground="{StaticResource TextPrimary}"/>
|
||
<TextBlock Grid.Row="1" Text="{Binding Description}" FontSize="11" Foreground="{StaticResource TextSecondary}"
|
||
TextWrapping="Wrap" Margin="22,2,0,0" Opacity="0.85"/>
|
||
</Grid>
|
||
</Border>
|
||
</DataTemplate>
|
||
</ItemsControl.ItemTemplate>
|
||
</ItemsControl>
|
||
</Expander>
|
||
</StackPanel>
|
||
</Border>
|
||
</StackPanel>
|
||
|
||
<!-- ================= B. Unity 選択時の個別UI ================= -->
|
||
<StackPanel x:Name="pnlUnityDetails" Visibility="{Binding SelectedItem, ElementName=lstGames, Converter={x:Static helpers:IsUnityToVisibilityConverter.Instance}}">
|
||
<!-- セーブエディタ起動ボタン(紫・大) -->
|
||
<Button x:Name="btnOpenSaveEditor" Style="{StaticResource EditorBigButton}" Height="44" Margin="0,0,0,16" Click="btnOpenSaveEditor_Click">
|
||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||
<TextBlock Text="🛠" FontSize="18" Margin="0,0,8,0" VerticalAlignment="Center"/>
|
||
<TextBlock Text="セーブデータを編集する" FontSize="14" FontWeight="Bold" VerticalAlignment="Center"/>
|
||
</StackPanel>
|
||
</Button>
|
||
|
||
<!-- クイックアクセスボタン 2x2 -->
|
||
<TextBlock Text="クイックアクセス" FontSize="12" FontWeight="SemiBold" Foreground="{StaticResource TextSecondary}" Margin="0,0,0,8"/>
|
||
<UniformGrid Columns="2" Margin="0,0,0,16">
|
||
<Button Style="{StaticResource ModernButton}" Content="📁 ゲームフォルダ" Margin="0,0,4,6" Click="btnOpenFolder_Click"/>
|
||
<Button Style="{StaticResource ModernButton}" Content="📂 LocalLowフォルダ" Margin="4,0,0,6" Click="btnOpenLocalLow_Click"/>
|
||
<Button Style="{StaticResource ModernButton}" Content="🌐 regeditで開く" Margin="0,0,4,0" Click="btnOpenRegedit_Click"/>
|
||
<Button Style="{StaticResource ModernButton}" Content="📦 即時バックアップ" Margin="4,0,0,0" Click="btnQuickBackup_Click"/>
|
||
</UniformGrid>
|
||
|
||
<!-- Unityゲーム詳細メタデータ -->
|
||
<Border Background="#1A1A24" BorderBrush="{StaticResource BorderBrushColor}" BorderThickness="1" CornerRadius="8" Padding="14">
|
||
<StackPanel>
|
||
<TextBlock Text="Unity 詳細情報" FontSize="13" FontWeight="SemiBold" Foreground="{StaticResource TextPrimary}" Margin="0,0,0,10"/>
|
||
|
||
<TextBlock Text="フォルダ名:" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBox Text="{Binding SelectedItem.FolderName, ElementName=lstGames, Mode=OneWay}" IsReadOnly="True" Background="Transparent" BorderThickness="0" Foreground="#FFFFFF" FontSize="11" Margin="0,1,0,8"/>
|
||
|
||
<TextBlock Text="会社名 / 製品名 (app.info):" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBox Text="{Binding Path=SelectedItem, ElementName=lstGames, Converter={x:Static helpers:CompanyProductConverter.Instance}, Mode=OneWay}" IsReadOnly="True" Background="Transparent" BorderThickness="0" Foreground="#A29BFE" FontSize="11" Margin="0,1,0,8"/>
|
||
|
||
<TextBlock Text="実行ファイルパス:" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBox Text="{Binding SelectedItem.ExecutablePath, ElementName=lstGames, Mode=OneWay}" IsReadOnly="True" Background="Transparent" BorderThickness="0" Foreground="#FFFFFF" FontSize="11" TextWrapping="Wrap" Margin="0,1,0,8"/>
|
||
|
||
<TextBlock Text="レジストリパス:" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBox Text="{Binding SelectedItem.RegistryPath, ElementName=lstGames, StringFormat='HKCU\\{0}', Mode=OneWay}" IsReadOnly="True" Background="Transparent" BorderThickness="0" Foreground="#81ECEC" FontSize="11" TextWrapping="Wrap" Margin="0,1,0,8"/>
|
||
|
||
<TextBlock Text="LocalLowパス:" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBox Text="{Binding SelectedItem.LocalLowPath, ElementName=lstGames, Mode=OneWay}" IsReadOnly="True" Background="Transparent" BorderThickness="0" Foreground="#81ECEC" FontSize="11" TextWrapping="Wrap" Margin="0,1,0,8"/>
|
||
|
||
<Grid Margin="0,6,0,0">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="*"/>
|
||
</Grid.ColumnDefinitions>
|
||
<StackPanel Grid.Column="0">
|
||
<TextBlock Text="最終起動日時:" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBlock Text="{Binding SelectedItem.LastLaunchedDetailDisplay, ElementName=lstGames}" FontSize="11" Foreground="#81ECEC" FontWeight="SemiBold" Margin="0,2,0,0"/>
|
||
</StackPanel>
|
||
<StackPanel Grid.Column="1">
|
||
<TextBlock Text="フォルダ更新日時:" FontSize="11" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBlock Text="{Binding SelectedItem.FolderLastModifiedDetailDisplay, ElementName=lstGames}" FontSize="11" Foreground="#FAB1A0" FontWeight="SemiBold" Margin="0,2,0,0"/>
|
||
</StackPanel>
|
||
</Grid>
|
||
</StackPanel>
|
||
</Border>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</Grid>
|
||
</ScrollViewer>
|
||
</Border>
|
||
</Grid>
|
||
|
||
<!-- ================= リアルタイムログコンソール ================= -->
|
||
<Border Grid.Row="3" Background="#111118" BorderBrush="{StaticResource BorderBrushColor}" BorderThickness="0,1,0,0" Padding="12,6">
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto"/>
|
||
<RowDefinition Height="*"/>
|
||
</Grid.RowDefinitions>
|
||
<Grid Grid.Row="0" Margin="0,0,0,4">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="Auto"/>
|
||
</Grid.ColumnDefinitions>
|
||
<StackPanel Orientation="Horizontal">
|
||
<TextBlock Text="📋 動作ログ & イベントコンソール" FontSize="11" FontWeight="Bold" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBlock x:Name="lblLogActivity" Text="" FontSize="11" Foreground="{StaticResource AccentGreen}" Margin="10,0,0,0"/>
|
||
</StackPanel>
|
||
<Button Grid.Column="1" Content="クリア" FontSize="10" Background="Transparent" Foreground="{StaticResource TextSecondary}"
|
||
BorderThickness="0" Cursor="Hand" Click="btnClearLog_Click"/>
|
||
</Grid>
|
||
<ScrollViewer x:Name="scrollLog" Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
||
<TextBox x:Name="txtLog" Background="Transparent" BorderThickness="0" IsReadOnly="True"
|
||
Foreground="#66E19E" FontSize="11" FontFamily="Cascadia Code, Consolas, Meiryo UI, Courier New, monospace"
|
||
TextWrapping="Wrap" CaretBrush="Transparent"/>
|
||
</ScrollViewer>
|
||
</Grid>
|
||
</Border>
|
||
|
||
<!-- ================= ステータスバー ================= -->
|
||
<Border Grid.Row="4" Background="#14141C" BorderBrush="{StaticResource BorderBrushColor}" BorderThickness="0,1,0,0" Padding="14,6">
|
||
<Grid>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="*"/>
|
||
<ColumnDefinition Width="Auto"/>
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center">
|
||
<TextBlock x:Name="lblStatusSummary" Text="総ゲーム数: 0 件 | 表示: 0 件" FontSize="12" Foreground="{StaticResource TextSecondary}"/>
|
||
<TextBlock x:Name="lblStatusBreakdown" Text=" (ツクール: 0, ティラノ: 0, Unity: 0)" FontSize="11" Foreground="#7D6DF8" Margin="8,0,0,0"/>
|
||
</StackPanel>
|
||
|
||
<TextBlock x:Name="lblStatusEngine" Grid.Column="1" Text="待機中" FontSize="12" Foreground="{StaticResource TextSecondary}" VerticalAlignment="Center"/>
|
||
</Grid>
|
||
</Border>
|
||
</Grid>
|
||
</Window>
|