small ui improvements

- allow localization of (Global)
- edit configuration now shows up as create configuration on games without a custom config
This commit is contained in:
Evan Husted 2025-02-23 18:01:17 -06:00
parent efc671cd05
commit 5b84231dbb
5 changed files with 113 additions and 31 deletions

View File

@ -343,7 +343,7 @@
<Setter Property="Foreground" Value="SeaGreen"/> <Setter Property="Foreground" Value="SeaGreen"/>
<Setter Property="Margin" Value="5,0,0,0"/> <Setter Property="Margin" Value="5,0,0,0"/>
<Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Text" Value="(Global)"/> <Setter Property="Text" Value="{ext:Locale GameSpecificConfigurationGlobal}"/>
</Style> </Style>
<Style Selector="StackPanel.globalConfigMarker"> <Style Selector="StackPanel.globalConfigMarker">
</Style> </Style>

View File

@ -2748,28 +2748,53 @@
} }
}, },
{ {
"ID": "GameListContextMenuEditGameConfiguration", "ID": "GameListContextMenuCreateCustomConfiguration",
"Translations": { "Translations": {
"ar_SA": "تعديل تكوين اللعبة", "ar_SA": "",
"de_DE": "Spielkonfiguration bearbeiten", "de_DE": "",
"el_GR": "Επεξεργασία ρυθμίσεων παιχνιδιού", "el_GR": "",
"en_US": "Edit Game Configuration", "en_US": "Create Custom Configuration",
"es_ES": "Editar configuración del juego", "es_ES": "",
"fr_FR": "Modifier la configuration du jeu", "fr_FR": "",
"he_IL": "ערוך את הגדרת המשחק", "he_IL": "",
"it_IT": "Modifica configurazione gioco", "it_IT": "",
"ja_JP": "ゲーム設定を編集", "ja_JP": "",
"ko_KR": "게임 설정 편집", "ko_KR": "",
"no_NO": "Rediger spillkonfig.", "no_NO": "",
"pl_PL": "Edytuj konfigurację gry", "pl_PL": "",
"pt_BR": "Editar configuração do jogo", "pt_BR": "",
"ru_RU": "Редактировать конфигурацию игры", "ru_RU": "",
"sv_SE": "Redigera spelkonfiguration", "sv_SE": "",
"th_TH": "แก้ไขการตั้งค่าเกม", "th_TH": "",
"tr_TR": "Oyunun yapılandırmasını düzenle", "tr_TR": "",
"uk_UA": "Редагувати конфігурацію гри", "uk_UA": "",
"zh_CN": "编辑游戏配置", "zh_CN": "",
"zh_TW": "編輯遊戲設定" "zh_TW": ""
}
},
{
"ID": "GameListContextMenuEditCustomConfiguration",
"Translations": {
"ar_SA": "",
"de_DE": "",
"el_GR": "",
"en_US": "Edit Custom Configuration",
"es_ES": "",
"fr_FR": "",
"he_IL": "",
"it_IT": "",
"ja_JP": "",
"ko_KR": "",
"no_NO": "",
"pl_PL": "",
"pt_BR": "",
"ru_RU": "",
"sv_SE": "",
"th_TH": "",
"tr_TR": "",
"uk_UA": "",
"zh_CN": "",
"zh_TW": ""
} }
}, },
{ {
@ -2798,12 +2823,12 @@
} }
}, },
{ {
"ID": "EditGameConfigurationToolTip", "ID": "CreateCustomConfigurationToolTip",
"Translations": { "Translations": {
"ar_SA": "ينشئ تكوينًا مستقلًا للعبة الحالية", "ar_SA": "ينشئ تكوينًا مستقلًا للعبة الحالية",
"de_DE": "Erstellt eine unabhängige Konfiguration für das aktuelle Spiel", "de_DE": "Erstellt eine unabhängige Konfiguration für das aktuelle Spiel",
"el_GR": "Δημιουργεί μια ανεξάρτητη διαμόρφωση για το τρέχον παιχνίδι", "el_GR": "Δημιουργεί μια ανεξάρτητη διαμόρφωση για το τρέχον παιχνίδι",
"en_US": "Creates an independent configuration for the current game", "en_US": "Creates an independent configuration for the selected game",
"es_ES": "Crea una configuración independiente para el juego actual", "es_ES": "Crea una configuración independiente para el juego actual",
"fr_FR": "Crée une configuration indépendante pour le jeu en cours", "fr_FR": "Crée une configuration indépendante pour le jeu en cours",
"he_IL": "יוצר תצורה עצמאית למשחק הנוכחי", "he_IL": "יוצר תצורה עצמאית למשחק הנוכחי",
@ -2822,6 +2847,31 @@
"zh_TW": "為當前遊戲創建獨立的配置" "zh_TW": "為當前遊戲創建獨立的配置"
} }
}, },
{
"ID": "EditCustomConfigurationToolTip",
"Translations": {
"ar_SA": "",
"de_DE": "",
"el_GR": "",
"en_US": "Edit your existing independent configuration for the selected game",
"es_ES": "",
"fr_FR": "",
"he_IL": "",
"it_IT": "",
"ja_JP": "",
"ko_KR": "",
"no_NO": "",
"pl_PL": "",
"pt_BR": "",
"ru_RU": "",
"sv_SE": "",
"th_TH": "",
"tr_TR": "",
"uk_UA": "",
"zh_CN": "",
"zh_TW": ""
}
},
{ {
"ID": "GameListContextMenuShowCompatEntry", "ID": "GameListContextMenuShowCompatEntry",
"Translations": { "Translations": {
@ -24123,12 +24173,37 @@
} }
}, },
{ {
"ID": "UserConfigurationHeader", "ID": "GameSpecificConfigurationHeader",
"Translations": { "Translations": {
"ar_SA": "", "ar_SA": "",
"de_DE": "", "de_DE": "",
"el_GR": "", "el_GR": "",
"en_US": "User Config", "en_US": "Custom Config",
"es_ES": "",
"fr_FR": "",
"he_IL": "",
"it_IT": "",
"ja_JP": "",
"ko_KR": "",
"no_NO": "",
"pl_PL": "",
"pt_BR": "",
"ru_RU": "",
"sv_SE": "",
"th_TH": "",
"tr_TR": "",
"uk_UA": "",
"zh_CN": "",
"zh_TW": ""
}
},
{
"ID": "GameSpecificConfigurationGlobal",
"Translations": {
"ar_SA": "",
"de_DE": "",
"el_GR": "",
"en_US": "(Global)",
"es_ES": "", "es_ES": "",
"fr_FR": "", "fr_FR": "",
"he_IL": "", "he_IL": "",

View File

@ -19,11 +19,18 @@
Header="{ext:Locale GameListContextMenuCreateShortcut}" Header="{ext:Locale GameListContextMenuCreateShortcut}"
Icon="{ext:Icon fa-solid fa-bookmark}" Icon="{ext:Icon fa-solid fa-bookmark}"
ToolTip.Tip="{OnPlatform Default={ext:Locale GameListContextMenuCreateShortcutToolTip}, macOS={ext:Locale GameListContextMenuCreateShortcutToolTipMacOS}}" /> ToolTip.Tip="{OnPlatform Default={ext:Locale GameListContextMenuCreateShortcutToolTip}, macOS={ext:Locale GameListContextMenuCreateShortcutToolTipMacOS}}" />
<MenuItem
Click="EditGameConfiguration_Click"
IsVisible="{Binding SelectedApplication.HasIndependentConfiguration}"
Header="{ext:Locale GameListContextMenuEditCustomConfiguration}"
Icon="{ext:Icon fa-solid fa-gear}"
ToolTip.Tip="{ext:Locale EditCustomConfigurationToolTip}" />
<MenuItem <MenuItem
Click="EditGameConfiguration_Click" Click="EditGameConfiguration_Click"
Header="{ext:Locale GameListContextMenuEditGameConfiguration}" IsVisible="{Binding !SelectedApplication.HasIndependentConfiguration}"
Header="{ext:Locale GameListContextMenuCreateCustomConfiguration}"
Icon="{ext:Icon fa-solid fa-gear}" Icon="{ext:Icon fa-solid fa-gear}"
ToolTip.Tip="{ext:Locale EditGameConfigurationToolTip}" /> ToolTip.Tip="{ext:Locale CreateCustomConfigurationToolTip}" />
<MenuItem <MenuItem
IsVisible="{Binding HasCompatibilityEntry}" IsVisible="{Binding HasCompatibilityEntry}"
Click="OpenApplicationCompatibility_Click" Click="OpenApplicationCompatibility_Click"

View File

@ -81,7 +81,7 @@
TextWrapping="Wrap" /> TextWrapping="Wrap" />
<TextBlock <TextBlock
IsVisible="{Binding HasIndependentConfiguration}" IsVisible="{Binding HasIndependentConfiguration}"
Text="{ext:Locale UserConfigurationHeader}" Text="{ext:Locale GameSpecificConfigurationHeader}"
TextAlignment="Center" TextAlignment="Center"
TextWrapping="Wrap" TextWrapping="Wrap"
Foreground="{DynamicResource Warning}" /> Foreground="{DynamicResource Warning}" />
@ -110,7 +110,7 @@
<TextBlock <TextBlock
HorizontalAlignment="Center" HorizontalAlignment="Center"
VerticalAlignment="Center" VerticalAlignment="Center"
Text="{ext:Locale UserConfigurationHeader}" Text="{ext:Locale GameSpecificConfigurationHeader}"
TextAlignment="Center" TextAlignment="Center"
TextWrapping="Wrap" /> TextWrapping="Wrap" />
</Border> </Border>

View File

@ -160,7 +160,7 @@
<TextBlock <TextBlock
HorizontalAlignment="Stretch" HorizontalAlignment="Stretch"
IsVisible="{Binding HasIndependentConfiguration}" IsVisible="{Binding HasIndependentConfiguration}"
Text="{ext:Locale UserConfigurationHeader}" Text="{ext:Locale GameSpecificConfigurationHeader}"
TextAlignment="Start" TextAlignment="Start"
TextWrapping="Wrap" TextWrapping="Wrap"
Foreground="{DynamicResource Warning}" /> Foreground="{DynamicResource Warning}" />