Skip to content

Commit

Permalink
Improve controller management message box
Browse files Browse the repository at this point in the history
  • Loading branch information
Valkirie committed Jan 4, 2025
1 parent 849b0a9 commit 2c3ad8c
Show file tree
Hide file tree
Showing 13 changed files with 227 additions and 480 deletions.
2 changes: 1 addition & 1 deletion HandheldCompanion/Misc/Dialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class Dialog
private ContentDialog dialog;

public string Title;
public string Content;
public object Content;
public ContentDialogButton DefaultButton = ContentDialogButton.Primary;
public string PrimaryButtonText = string.Empty;
public string SecondaryButtonText = string.Empty;
Expand Down
129 changes: 33 additions & 96 deletions HandheldCompanion/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 5 additions & 26 deletions HandheldCompanion/Properties/Resources.de-DE.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1266,30 +1266,6 @@ Wenn die Bewegungseingabe aktiviert ist, verwenden Sie die ausgewählte(n) Taste
<data name="Dialog_ForceRestartTitle" xml:space="preserve">
<value>Restart required</value>
</data>
<data name="SettingsPage_ControllerManagementDependencyPrimary" xml:space="preserve">
<value>Yes</value>
</data>
<data name="SettingsPage_ControllerManagementDependencySecondary" xml:space="preserve">
<value>No</value>
</data>
<data name="SettingsPage_ControllerManagementDependencyText" xml:space="preserve">
<value>Disabling this setting will also disable "Improve virtual controller detection". Do you want to continue?</value>
</data>
<data name="SettingsPage_ControllerManagementDependencyTitle" xml:space="preserve">
<value>Warning</value>
</data>
<data name="MainWindow_ControllerManagementClosePrimary" xml:space="preserve">
<value>Yes</value>
</data>
<data name="MainWindow_ControllerManagementCloseSecondary" xml:space="preserve">
<value>No</value>
</data>
<data name="MainWindow_ControllerManagementCloseText" xml:space="preserve">
<value>Improve virtual controller detection might not work if you close Handheld Companion. Are you sure ?</value>
</data>
<data name="MainWindow_ControllerManagementCloseTitle" xml:space="preserve">
<value>Warning</value>
</data>
<data name="AboutPage_Manufacturer" xml:space="preserve">
<value>Hersteller</value>
</data>
Expand Down Expand Up @@ -2590,10 +2566,10 @@ Wenn die Bewegungseingabe aktiviert ist, verwenden Sie die ausgewählte(n) Taste
<value>The emulated controller to be used when this profile is active</value>
</data>
<data name="ControllerPage_ControllerManagement" xml:space="preserve">
<value>Controller management</value>
<value />
</data>
<data name="ControllerPage_ControllerManagementDesc" xml:space="preserve">
<value>Automatically manage your controllers for greater compatibility</value>
<value />
</data>
<data name="ControllerPage_LegionGoPassthrough" xml:space="preserve">
<value>Touchpad passthrough</value>
Expand Down Expand Up @@ -2874,4 +2850,7 @@ Wenn die Bewegungseingabe aktiviert ist, verwenden Sie die ausgewählte(n) Taste
<data name="AboutPage_UnsupportedDevice" xml:space="preserve">
<value>Oups, it appears your device is not supported yet. The software might not run as expected.</value>
</data>
<data name="ControllerPage_ControllerManagement_Attempt" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
</root>
29 changes: 4 additions & 25 deletions HandheldCompanion/Properties/Resources.es-ES.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1264,30 +1264,6 @@
<data name="Dialog_ForceRestartTitle" xml:space="preserve">
<value>Reinicio requerido</value>
</data>
<data name="SettingsPage_ControllerManagementDependencyPrimary" xml:space="preserve">
<value>Sí</value>
</data>
<data name="SettingsPage_ControllerManagementDependencySecondary" xml:space="preserve">
<value>No</value>
</data>
<data name="SettingsPage_ControllerManagementDependencyText" xml:space="preserve">
<value>Si desactiva esta opción, también desactivará "Mejorar la detección de controladores virtuales". ¿Desea continuar?</value>
</data>
<data name="SettingsPage_ControllerManagementDependencyTitle" xml:space="preserve">
<value>Aviso</value>
</data>
<data name="MainWindow_ControllerManagementClosePrimary" xml:space="preserve">
<value>Sí</value>
</data>
<data name="MainWindow_ControllerManagementCloseSecondary" xml:space="preserve">
<value>No</value>
</data>
<data name="MainWindow_ControllerManagementCloseText" xml:space="preserve">
<value>Es posible que la mejora de la detección del controlador virtual no funcione si cierras Handheld Companion. ¿Está seguro?</value>
</data>
<data name="MainWindow_ControllerManagementCloseTitle" xml:space="preserve">
<value>Aviso</value>
</data>
<data name="AboutPage_Manufacturer" xml:space="preserve">
<value>Fabricante</value>
</data>
Expand Down Expand Up @@ -2588,7 +2564,7 @@
<value>The emulated controller to be used when this profile is active</value>
</data>
<data name="ControllerPage_ControllerManagement" xml:space="preserve">
<value>Controller management</value>
<value />
</data>
<data name="ControllerPage_ControllerManagementDesc" xml:space="preserve">
<value>Automatically manage your controllers for greater compatibility</value>
Expand Down Expand Up @@ -2872,4 +2848,7 @@
<data name="AboutPage_UnsupportedDevice" xml:space="preserve">
<value>Oups, it appears your device is not supported yet. The software might not run as expected.</value>
</data>
<data name="ControllerPage_ControllerManagement_Attempt" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
</root>
29 changes: 4 additions & 25 deletions HandheldCompanion/Properties/Resources.fr-FR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1260,30 +1260,6 @@ with motion input enabled, use selected button(s) to disable motion.</value>
<data name="Dialog_ForceRestartTitle" xml:space="preserve">
<value>Redémarrage requis</value>
</data>
<data name="SettingsPage_ControllerManagementDependencyPrimary" xml:space="preserve">
<value>Oui</value>
</data>
<data name="SettingsPage_ControllerManagementDependencySecondary" xml:space="preserve">
<value>Non</value>
</data>
<data name="SettingsPage_ControllerManagementDependencyText" xml:space="preserve">
<value>Si vous désactivez ce paramètre, le paramètre "Amélioration de la détection du contrôleur virtuel" sera aussi désactivé. Voulez-vous continuer?</value>
</data>
<data name="SettingsPage_ControllerManagementDependencyTitle" xml:space="preserve">
<value>Avertissement</value>
</data>
<data name="MainWindow_ControllerManagementClosePrimary" xml:space="preserve">
<value>Oui</value>
</data>
<data name="MainWindow_ControllerManagementCloseSecondary" xml:space="preserve">
<value>Non</value>
</data>
<data name="MainWindow_ControllerManagementCloseText" xml:space="preserve">
<value>Améliorer la détection du controlleur ne fonctionnera pas si vous fermez Handheld Companion. Êtes-vous sûr?</value>
</data>
<data name="MainWindow_ControllerManagementCloseTitle" xml:space="preserve">
<value>Avertissement</value>
</data>
<data name="AboutPage_Manufacturer" xml:space="preserve">
<value>Manufacturer</value>
</data>
Expand Down Expand Up @@ -2586,7 +2562,7 @@ with motion input enabled, use selected button(s) to disable motion.</value>
<value>The emulated controller to be used when this profile is active</value>
</data>
<data name="ControllerPage_ControllerManagement" xml:space="preserve">
<value>Controller management</value>
<value />
</data>
<data name="ControllerPage_ControllerManagementDesc" xml:space="preserve">
<value>Automatically manage your controllers for greater compatibility</value>
Expand Down Expand Up @@ -2874,4 +2850,7 @@ with motion input enabled, use selected button(s) to disable motion.</value>
<data name="Hotkey_OnScreenDisplay" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
<data name="ControllerPage_ControllerManagement_Attempt" type="System.Resources.ResXNullRef, System.Windows.Forms">
<value />
</data>
</root>
Loading

0 comments on commit 2c3ad8c

Please sign in to comment.