From 4ea5f51340b2b113c82b97014bad3b02f338e3cf Mon Sep 17 00:00:00 2001 From: Leo40Git Date: Fri, 27 Apr 2018 19:48:21 +0300 Subject: [PATCH] "Hotfix" 1.0.4 --- .version | 4 +++- guide.txt | 16 ++++++++++++++++ src/main/java/com/leo/orgadder/Main.java | 21 ++++++++++++++++++++- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 guide.txt diff --git a/.version b/.version index 823f3ae..fa31879 100644 --- a/.version +++ b/.version @@ -1,4 +1,6 @@ -1.0.3 +1.0.4 +"Hotfix" 1.0.4 +- Add guide Hotfix 1.0.3 - Disallow empty ORG names - Fix "Save EXE As..." not working diff --git a/guide.txt b/guide.txt new file mode 100644 index 0000000..e88b1b2 --- /dev/null +++ b/guide.txt @@ -0,0 +1,16 @@ +Okay listen up it's pretty simple +1. Load your EXE with OrgAdder +2. Click on ORG+ to add a new entry +3. Type in a name. Remember this name, you're gonna need it +4. Press "OK", and save your EXE +5. Now, open your EXE with Resource Hacker +6. Open the "Action" menu and click on "Add Single Binary or Image Resource ..." +7. Click on "Select File ..." and select your ORG file +8. In the "Resource Type" field, type in "ORG" +9. In the "Resource Name" field, type in the name you entered in OrgAdder +10. In the "Resource Language" field, type in 1041 (Japanese, Default) +10b. If the "Resource Language" field is disabled, skip this step and follow step 11b +11. Click on "Add Resource". You should see your new ORG appear in the resource explorer! +11b. Right click on the ORG, and click on "Change Language for this Resource ...". Type 1041 into the "Lang. ID" field +12. Finally, save your EXE within Resource Hacker +Your ORG is now ready to be used in-game! \ No newline at end of file diff --git a/src/main/java/com/leo/orgadder/Main.java b/src/main/java/com/leo/orgadder/Main.java index 0d78f90..cb338c8 100644 --- a/src/main/java/com/leo/orgadder/Main.java +++ b/src/main/java/com/leo/orgadder/Main.java @@ -50,7 +50,7 @@ public class Main { public static final Logger LOGGER = LogManager.getLogger("OrgAdder"); - public static final Version VERSION = new Version("1.0.3"); + public static final Version VERSION = new Version("1.0.4"); public static final String UPDATE_CHECK_SITE = "https://raw.githubusercontent.com/Leo40Git/OrgAdder/master/.version"; public static final String DOWNLOAD_SITE = "https://github.com/Leo40Git/OrgAdder/releases/latest/"; public static final String ISSUES_SITE = "https://github.com/Leo40Git/OrgAdder/issues"; @@ -68,6 +68,20 @@ public void windowClosing(WindowEvent e) { } + public static final String GUIDE_STR = "Okay listen up it's pretty simple\n" + "1. Load your EXE with OrgAdder\n" + + "2. Click on ORG+ to add a new entry\n" + "3. Type in a name. Remember this name, you're gonna need it\n" + + "4. Press \"OK\", and save your EXE\n" + "5. Now, open your EXE with Resource Hacker\n" + + "6. Open the \"Action\" menu and click on \"Add Single Binary or Image Resource ...\"\n" + + "7. Click on \"Select File ...\" and select your ORG file\n" + + "8. In the \"Resource Type\" field, type in \"ORG\"\n" + + "9. In the \"Resource Name\" field, type in the name you entered in OrgAdder\n" + + "10. In the \"Resource Language\" field, type in 1041 (Japanese, Default)\n" + + "10b. If the \"Resource Language\" field is disabled, skip this step and follow step 11b\n" + + "11. Click on \"Add Resource\". You should see your new ORG appear in the resource explorer!\n" + + "11b. Right click on the ORG, and click on \"Change Language for this Resource ...\". Type 1041 into the \"Lang. ID\" field\n" + + "12. Finally, save your EXE within Resource Hacker\n" + "Your ORG is now ready to be used in-game!"; + + public static final String AC_GUIDE = "guide"; public static final String AC_ABOUT = "about"; public static final String AC_UPDATE = "update"; @@ -76,6 +90,9 @@ static class HelpActionListener implements ActionListener { @Override public void actionPerformed(ActionEvent e) { switch (e.getActionCommand()) { + case AC_GUIDE: + JOptionPane.showMessageDialog(window, GUIDE_STR, "Guide", JOptionPane.PLAIN_MESSAGE); + break; case AC_ABOUT: if (aboutIcon == null) aboutIcon = new ImageIcon(appIcons.get(APPICON_32), "About"); @@ -224,6 +241,8 @@ private static JMenuBar makeMenuBar() { mb.add(m); HelpActionListener helpAS = new HelpActionListener(); m = new JMenu("Help"); + m.add(makeMenuItem("Guide", helpAS, AC_GUIDE)); + m.addSeparator(); m.add(makeMenuItem("About OrgAdder", helpAS, AC_ABOUT)); m.add(makeMenuItem("Check for Updates", helpAS, AC_UPDATE)); mb.add(m);