Search in sources :

Example 1 with DownloadPopupProgressListener

use of org.terasology.engine.rendering.nui.layers.mainMenu.advancedGameSetupScreen.DownloadPopupProgressListener in project Terasology by MovingBlocks.

the class ModuleDetailsScreen method downloadModules.

private void downloadModules(Iterable<Module> modulesToDownload) {
    final WaitPopup<List<Module>> popup = getManager().pushScreen(WaitPopup.ASSET_URI, WaitPopup.class);
    ModuleInstaller operation = moduleManager.getInstallManager().createInstaller(modulesToDownload, new DownloadPopupProgressListener(popup));
    popup.startOperation(operation, true);
}
Also used : DownloadPopupProgressListener(org.terasology.engine.rendering.nui.layers.mainMenu.advancedGameSetupScreen.DownloadPopupProgressListener) ModuleInstaller(org.terasology.engine.core.module.ModuleInstaller) List(java.util.List) UIList(org.terasology.nui.widgets.UIList)

Aggregations

List (java.util.List)1 ModuleInstaller (org.terasology.engine.core.module.ModuleInstaller)1 DownloadPopupProgressListener (org.terasology.engine.rendering.nui.layers.mainMenu.advancedGameSetupScreen.DownloadPopupProgressListener)1 UIList (org.terasology.nui.widgets.UIList)1