From 083517912ec4f7dad7dd3e56bbf614a6fc9d8cdc Mon Sep 17 00:00:00 2001 From: Logg Date: Sun, 2 Feb 2025 08:05:10 -0500 Subject: [PATCH] New button for people who don't know what "Portable Mode" means or what "Files" are. --- src/Client/Settings.java | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/Client/Settings.java b/src/Client/Settings.java index 1a789bf1..f5bbdd0c 100644 --- a/src/Client/Settings.java +++ b/src/Client/Settings.java @@ -2797,21 +2797,29 @@ public static void initDir() { JPanel portableModePanel = Util.createOptionMessagePanel(portableModeMessage); JFrame portableModeFrame = Util.launchHiddenFrame(); + String[] options = new String[3]; + options[0] = "Yes"; + options[1] = "No"; + options[2] = "I'm not sure :-("; int response = - JOptionPane.showConfirmDialog( + JOptionPane.showOptionDialog( portableModeFrame, - portableModePanel, - Launcher.appName, - JOptionPane.YES_NO_OPTION, - JOptionPane.INFORMATION_MESSAGE); + portableModePanel, // message + Launcher.appName, // title + JOptionPane.YES_NO_CANCEL_OPTION, + JOptionPane.INFORMATION_MESSAGE, + null, + options, + null + ); if (response == JOptionPane.YES_OPTION) { String portableModeAcceptMessage = - "Portable mode has been ENABLED" + "Portable mode has been ENABLED." + "
" + "
" - + "Deletion of the \"config.ini\" file will reset this choice"; + + "Deletion of the \"config.ini\" file will reset this choice."; JPanel portableModeAcceptPanel = Util.createOptionMessagePanel(portableModeAcceptMessage); JOptionPane.showMessageDialog( @@ -2825,10 +2833,10 @@ public static void initDir() { Dir.CONFIG_DIR = Dir.JAR; } else { String portableModeDenyMessage = - "Portable mode will NOT be enabled" + "Portable mode will not be enabled." + "
" + "
" - + "Deletion of the \"rscplus.lock\" file will reset this choice"; + + "Deletion of the \"rscplus.lock\" file will reset this choice."; JPanel portableModeDenyPanel = Util.createOptionMessagePanel(portableModeDenyMessage); JOptionPane.showMessageDialog(