Changeset 643
- Timestamp:
- Jan 21, 2013, 5:23:48 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r641 r643 1 1 appname=AE Installer 2 2 appversion=0.9 82 appversion=0.99 -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r641 r643 525 525 } 526 526 if (depsLocalString.length() == 0) 527 depsLocalString = bundle.getString("installDependencies.none"); 527 depsLocalString = bundle 528 .getString("installDependencies.none"); 528 529 if (depsDownloadString.length() == 0) 529 depsDownloadString = bundle.getString("installDependencies.none"); 530 depsDownloadString = bundle 531 .getString("installDependencies.none"); 530 532 531 533 int res = JOptionPane.showConfirmDialog(this, String.format( … … 541 543 } 542 544 } else { 543 HashMap<Mod, HashSet<Mod>> conflicts = ModManager.getInstance()545 HashMap<Mod, HashSet<Mod>> incompatibilities = ModManager.getInstance() 544 546 .checkIncompabitilites(mods); 545 if ( conflicts.size() > 0) {547 if (incompatibilities.size() > 0) { 546 548 installState = EInstallState.INCOMPATIBLE; 547 System.err.println("Incompatible mods: " 548 + conflicts.toString()); 549 // TODO: Message window with incompatibilities 549 550 String incompatString = ""; 551 for (Mod m : incompatibilities.keySet()) { 552 if (incompatString.length() > 0) 553 incompatString += "\n"; 554 incompatString += m.getName() + ": "; 555 String confMods = ""; 556 for (Mod mConf : incompatibilities.get(m)) { 557 if (confMods.length() > 0) 558 confMods += ", "; 559 confMods += mConf.getName(); 560 } 561 incompatString += confMods; 562 } 563 564 JOptionPane.showMessageDialog(this, String.format( 565 bundle.getString("installIncompatibilities.text"), 566 incompatString), bundle 567 .getString("installIncompatibilities.title"), 568 JOptionPane.ERROR_MESSAGE); 550 569 break; 551 570 } else { -
AE/installer2/src/net/oni2/aeinstaller/localization/MainWin.properties
r641 r643 59 59 Size of files to be downloaded: %s.\n\nContinue? 60 60 installDependencies.none=<None> 61 installIncompatibilities.title=Incompatible mods 62 installIncompatibilities.text=The following mods are incompatible:\n\n%s\n\nInstallation will be aborted. 61 63 installDone.title=Installation done 62 64 installDone.text=You can now play AE Oni.
Note:
See TracChangeset
for help on using the changeset viewer.