Ignore:
Timestamp:
Jan 23, 2013, 12:43:13 PM (12 years ago)
Author:
alloc
Message:

AEI2 0.99c:

  • Download window: Show which file is currently being downloaded and if it is an automaticly resolved dependency
  • Added mandatory packages dialog
  • Added option to show automatic resolved dependencies after installation is done instead of interrupting installation process to ask whether to continue
  • ToolManager: version number + last change added
  • Correct output of download-size in mainwin after installation of mods done
Location:
AE/installer2/src/net/oni2/aeinstaller/backend/mods/download
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/backend/mods/download/ModDownloader.java

    r638 r646  
    7373                if ((state == State.RUNNING) && (currentDownload < downloads.size())) {
    7474                        downloads.get(currentDownload).start();
    75                 }else if (state == State.RUNNING) {
     75                } else if (state == State.RUNNING) {
    7676                        state = State.LAST_FILE_DOWNLOADED;
    7777                        notifyListener();
     
    102102
    103103        private void notifyListener() {
    104                 listener.updateStatus(this, state, unpacked, downloads.size(),
    105                                 downloadedComplete + downloadedCurrent, totalSize,
    106                                 getTimeElapsed(), getTimeRemaining(), getDownloadSpeed());
     104                if (currentDownload < downloads.size()) {
     105                        listener.updateStatus(this,
     106                                        downloads.get(currentDownload).getMod(), state, unpacked,
     107                                        downloads.size(), downloadedComplete + downloadedCurrent,
     108                                        totalSize, getTimeElapsed(), getTimeRemaining(),
     109                                        getDownloadSpeed());
     110                } else {
     111                        listener.updateStatus(this, null, state, unpacked,
     112                                        downloads.size(), downloadedComplete + downloadedCurrent,
     113                                        totalSize, getTimeElapsed(), getTimeRemaining(),
     114                                        getDownloadSpeed());
     115                }
    107116        }
    108117
  • AE/installer2/src/net/oni2/aeinstaller/backend/mods/download/ModDownloaderListener.java

    r605 r646  
    11package net.oni2.aeinstaller.backend.mods.download;
    22
     3import net.oni2.aeinstaller.backend.mods.Mod;
    34import net.oni2.aeinstaller.backend.mods.download.ModDownloader.State;
    45
     
    1213         * @param source
    1314         *            Event source
     15         * @param currentDownload
     16         *            Currently downloading mod
    1417         * @param state
    1518         *            Current state
     
    2932         *            Average download speed in B/s
    3033         */
    31         public void updateStatus(ModDownloader source, State state, int filesDown,
    32                         int filesTotal, int bytesDown, int bytesTotal, int duration,
    33                         int remaining, int speed);
     34        public void updateStatus(ModDownloader source, Mod currentDownload,
     35                        State state, int filesDown, int filesTotal, int bytesDown,
     36                        int bytesTotal, int duration, int remaining, int speed);
    3437}
Note: See TracChangeset for help on using the changeset viewer.