client/src/main/java/lighthouse/Main.java
public <T> OverlayUI<T> overlayUI(String name, @Nullable String title) {
        try {
            checkGuiThread();
            // Load the UI from disk.
            URL location = getResource(name);
            FXMLLoader loader = new FXMLLoader(location, I18nUtil.translations);
            Pane ui = loader.load();
            T controller = loader.getController();

            return overlayUI(title, ui, controller);
        } catch (IOException e) {
            throw new RuntimeException(e);  // Can't happen.
        }
    }
/** Loads the FXML file with the given name, blurs out the main UI and puts this one on top. */
Loads the FXML file with the given name, blurs out the main UI and puts this one on top.
Loads the FXML file with the given name blurs out the main UI and puts this one on top .
public <T> OverlayUI<T> overlayUI(String name, @Nullable String title) {
        try {
            checkGuiThread();
            URL location = getResource(name);
            FXMLLoader loader = new FXMLLoader(location, I18nUtil.translations);
            Pane ui = loader.load();
            T controller = loader.getController();
            return overlayUI(title, ui, controller);
        } catch (IOException e) {
            throw new RuntimeException(e);  
        }
    }
public < T > OverlayUI < T > overlayUI ( String name , @ Nullable String title ) { try { checkGuiThread ( ) ; URL location = getResource ( name ) ; FXMLLoader loader = new FXMLLoader ( location , I18nUtil . translations ) ; Pane ui = loader . load ( ) ; T controller = loader . getController ( ) ; return overlayUI ( title , ui , controller ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
Loads the FXML file with the given name, blurs out the main UI and puts this one on top.
Loads the FXML file with the given name blurs out the main UI and puts this one on top .
// Load the UI from disk. // Can't happen.