From c5ec2cf3e13a3b8640491666e942d07890d85beb Mon Sep 17 00:00:00 2001 From: Gravit Date: Sat, 10 Nov 2018 21:18:14 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=B8=D0=B7=D0=B0=D0=B9=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=BE=D1=82=20DrLeonardo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Launcher/runtime/dialog/dialog.js | 11 +++--- .../runtime/dialog/overlay/debug/debug.css | 2 -- .../dialog/overlay/options/options.fxml | 23 ++++++++----- .../runtime/dialog/overlay/options/options.js | 4 +-- .../dialog/overlay/settings/settings.fxml | 34 ++++++++++++------- .../dialog/overlay/settings/settings.js | 19 +++++++---- 6 files changed, 56 insertions(+), 37 deletions(-) diff --git a/Launcher/runtime/dialog/dialog.js b/Launcher/runtime/dialog/dialog.js index 9bd80975..2ca9cf9d 100644 --- a/Launcher/runtime/dialog/dialog.js +++ b/Launcher/runtime/dialog/dialog.js @@ -278,10 +278,13 @@ function updateProfilesList(profiles) { profiles.forEach(function (profile, i, arr) { pingers[profile.object] = new ServerPinger(profile.object.getServerSocketAddress(), profile.object.getVersion()); var serverBtn = new javafx.scene.control.ToggleButton(profile); - profilesList[serverBtn] = profile; - serverBtn.setOnAction(function (event) { - serverHolder.set(serverBtn); - }); + (function () { + profilesList[serverBtn] = profile; + var hold = serverBtn; + serverBtn.setOnAction(function (event) { + serverHolder.set(hold); + }); + })(); serverList.getChildren().add(serverBtn); }); serverHolder.set(serverList.getChildren().get(0)); diff --git a/Launcher/runtime/dialog/overlay/debug/debug.css b/Launcher/runtime/dialog/overlay/debug/debug.css index b4a3e994..ccfc28be 100644 --- a/Launcher/runtime/dialog/overlay/debug/debug.css +++ b/Launcher/runtime/dialog/overlay/debug/debug.css @@ -1,5 +1,3 @@ -@import url(../../styles/common.css); - /* Output */ #overlay > #output { -fx-background-color: white; diff --git a/Launcher/runtime/dialog/overlay/options/options.fxml b/Launcher/runtime/dialog/overlay/options/options.fxml index 46c708a4..9149061a 100644 --- a/Launcher/runtime/dialog/overlay/options/options.fxml +++ b/Launcher/runtime/dialog/overlay/options/options.fxml @@ -3,8 +3,9 @@ - + + @@ -12,14 +13,18 @@ - - - - - - - - + + + + + + +