OverwriteController.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:UFMGame 作者:
/**
 * THe start method to load the are you sure to overwrite dialog
 * 
 * @param slot
 *            in where is game is saved
 * 
 * @throws IOException
 *             is thrown if the FXML file cannot be parsed.
 */
public static void start(int slot) throws IOException {
    saveslot = slot;
    FXMLLoader loader = new FXMLLoader();
    loader.setLocation(Class.class
            .getResource("/data/gui/pages-game/OverwriteDialog.fxml"));
    page = (AnchorPane) loader.load();
    FadeTransition ft = new FadeTransition(Duration.millis(900), page);
    ft.setFromValue(0.0);
    ft.setToValue(0.97);
    ft.play();
    page.setOpacity(0.85);
    popup = new Popup();
    popup.setAutoHide(true);
    popup.getContent().add(page);
    popup.show(Main.stage);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号