diff --git a/Launcher/runtime/dialog/console.fxml b/Launcher/runtime/dialog/console.fxml deleted file mode 100644 index 524eb03a..00000000 --- a/Launcher/runtime/dialog/console.fxml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Launcher/runtime/dialog/dialog.js b/Launcher/runtime/dialog/dialog.js index 44ff75a8..e85546bf 100644 --- a/Launcher/runtime/dialog/dialog.js +++ b/Launcher/runtime/dialog/dialog.js @@ -1,4 +1,4 @@ -var authPane, dimPane, serverPane, bar, optionsPane; +var authPane, dimPane, serverPane, bar, optionsPane, consolePane; var loginField, passwordField, savePasswordBox; var serverList, serverInfo, serverDescription, serverEntrance, serverLabel, serverStatus; var profilesList = []; @@ -12,16 +12,16 @@ function initLauncher() { initConsoleScene(); initOptionsScene(); + /* ======== init Overlays ======== */ debug.initOverlay(); processing.initOverlay(); settingsOverlay.initOverlay(); update.initOverlay(); - //options.initOverlay(); verifyLauncher(); } -/* ======== init Login ======== */ +/* ======== init Login window======== */ function initLoginScene() { loginPane.setOnMousePressed(function(event){ movePoint = new javafx.geometry.Point2D(event.getSceneX(), event.getSceneY())}); loginPane.setOnMouseDragged(function(event) { @@ -66,7 +66,7 @@ function initLoginScene() { pane.lookup("#goAuth").setOnAction(goAuth); } -/* ======== init Menu ======== */ +/* ======== init Menu window======== */ function initMenuScene() { menuPane.setOnMousePressed(function(event){ movePoint = new javafx.geometry.Point2D(event.getSceneX(), event.getSceneY())}); menuPane.setOnMouseDragged(function(event) { @@ -96,7 +96,6 @@ function initMenuScene() { serverList = pane.lookup("#serverlist").getContent(); serverInfo = pane.lookup("#serverinfo").getContent(); serverDescription = serverInfo.lookup("#serverDescription"); - serverEntrance = pane.lookup("#serverentrance"); serverStatus = serverEntrance.lookup("#serverStatus"); serverLabel = serverEntrance.lookup("#serverLabel"); @@ -106,10 +105,10 @@ function initMenuScene() { } -/* ======== init Console ======== */ +/* ======== init Console window======== */ function initConsoleScene() { - consolePane.setOnMousePressed(function(event){ movePoint = new javafx.geometry.Point2D(event.getSceneX(), event.getSceneY())}); - consolePane.setOnMouseDragged(function(event) { + consoleMenu.setOnMousePressed(function(event){ movePoint = new javafx.geometry.Point2D(event.getSceneX(), event.getSceneY())}); + consoleMenu.setOnMouseDragged(function(event) { if(movePoint === null) { return; } @@ -118,18 +117,38 @@ function initConsoleScene() { stage.setY(event.getScreenY() - movePoint.getY()); }); - var pane = consolePane.lookup("#bar"); + var pane = consoleMenu.lookup("#bar"); bar = pane; - consolePane.lookup("#close").setOnAction(function(event){ javafx.application.Platform.exit()}); - consolePane.lookup("#hide").setOnAction(function(event){ stage.setIconified(true)}); - consolePane.lookup("#back").setOnAction(function(){ + pane.lookup("#close").setOnAction(function(event){ javafx.application.Platform.exit()}); + pane.lookup("#hide").setOnAction(function(event){ stage.setIconified(true)}); + pane.lookup("#back").setOnAction(function(){ setCurrentScene(menuScene); }); - var pane = consolePane.lookup("#consolePane"); + var pane = consoleMenu.lookup("#consolePane"); consolePane = pane; +} +/* ======== init Options window======== */ +function initOptionsScene() { + optionsMenu.setOnMousePressed(function(event){ movePoint = new javafx.geometry.Point2D(event.getSceneX(), event.getSceneY())}); + optionsMenu.setOnMouseDragged(function(event) { + if(movePoint === null) { + return; + } + + stage.setX(event.getScreenX() - movePoint.getX()); + stage.setY(event.getScreenY() - movePoint.getY()); + }); + + var pane = optionsMenu.lookup("#bar"); + bar = pane; + pane.lookup("#close").setOnAction(function(event){ javafx.application.Platform.exit()}); + pane.lookup("#hide").setOnAction(function(event){ stage.setIconified(true)}); + pane.lookup("#back").setOnAction(function(){ + setCurrentScene(menuScene); + }); } /* ======== init Offline ======== */ @@ -189,19 +208,24 @@ function goSettings(event) { overlay.show(settingsOverlay.overlay, null); } +/* ======== Options ======== */ +function goOptions(event) { + setCurrentScene(optionsScene); + + options.update(); +} + /* ======== Processing functions ======== */ function verifyLauncher(e) { processing.resetOverlay(); overlay.show(processing.overlay, function(event) makeLauncherRequest(function(result) { settings.lastDigest = result.digest; processing.resetOverlay(); - // Init offline if set if (settings.offline) { initOffline(); } overlay.swap(0, processing.overlay, function(event) makeProfilesRequest(function(result) { settings.lastProfiles = result.profiles; - // Update profiles list and hide overlay updateProfilesList(result.profiles); options.load(); overlay.hide(0, function() { @@ -418,9 +442,11 @@ var serverHolder = { } }; -/* ======== Overlay scripts ======== */ +/* ======== Scenes scripts ======== */ launcher.loadScript("dialog/overlay/debug/debug.js"); launcher.loadScript("dialog/overlay/processing/processing.js"); launcher.loadScript("dialog/overlay/settings/settings.js"); -launcher.loadScript("dialog/overlay/options/options.js"); -launcher.loadScript("dialog/overlay/update/update.js"); \ No newline at end of file +launcher.loadScript("dialog/overlay/update/update.js"); + +/* ======== Overlays scripts ======== */ +launcher.loadScript("dialog/scenes/options/options.js"); diff --git a/Launcher/runtime/dialog/images/icons/back.png b/Launcher/runtime/dialog/images/icons/back.png deleted file mode 100644 index a9ce690c..00000000 Binary files a/Launcher/runtime/dialog/images/icons/back.png and /dev/null differ diff --git a/Launcher/runtime/dialog/images/icons/close.png b/Launcher/runtime/dialog/images/icons/close.png deleted file mode 100644 index a889d2d2..00000000 Binary files a/Launcher/runtime/dialog/images/icons/close.png and /dev/null differ diff --git a/Launcher/runtime/dialog/images/icons/console.png b/Launcher/runtime/dialog/images/icons/console.png deleted file mode 100644 index 29ba8cb3..00000000 Binary files a/Launcher/runtime/dialog/images/icons/console.png and /dev/null differ diff --git a/Launcher/runtime/dialog/images/icons/discord.png b/Launcher/runtime/dialog/images/icons/discord.png deleted file mode 100644 index 5456b89f..00000000 Binary files a/Launcher/runtime/dialog/images/icons/discord.png and /dev/null differ diff --git a/Launcher/runtime/dialog/images/icons/exit.png b/Launcher/runtime/dialog/images/icons/exit.png deleted file mode 100644 index 19ce8f5f..00000000 Binary files a/Launcher/runtime/dialog/images/icons/exit.png and /dev/null differ diff --git a/Launcher/runtime/dialog/images/icons/hide.png b/Launcher/runtime/dialog/images/icons/hide.png deleted file mode 100644 index 5224c1d2..00000000 Binary files a/Launcher/runtime/dialog/images/icons/hide.png and /dev/null differ diff --git a/Launcher/runtime/dialog/images/icons/options.png b/Launcher/runtime/dialog/images/icons/options.png deleted file mode 100644 index db01f3e2..00000000 Binary files a/Launcher/runtime/dialog/images/icons/options.png and /dev/null differ diff --git a/Launcher/runtime/dialog/images/icons/settings.png b/Launcher/runtime/dialog/images/icons/settings.png deleted file mode 100644 index 2d733612..00000000 Binary files a/Launcher/runtime/dialog/images/icons/settings.png and /dev/null differ diff --git a/Launcher/runtime/dialog/images/servers/example.png b/Launcher/runtime/dialog/images/servers/example.png index 904e2a41..a233b839 100644 Binary files a/Launcher/runtime/dialog/images/servers/example.png and b/Launcher/runtime/dialog/images/servers/example.png differ diff --git a/Launcher/runtime/dialog/images/servers/example2.png b/Launcher/runtime/dialog/images/servers/example2.png deleted file mode 100644 index e27e2fc8..00000000 Binary files a/Launcher/runtime/dialog/images/servers/example2.png and /dev/null differ diff --git a/Launcher/runtime/dialog/overlay/options/options.css b/Launcher/runtime/dialog/overlay/options/options.css deleted file mode 100644 index c21423ba..00000000 --- a/Launcher/runtime/dialog/overlay/options/options.css +++ /dev/null @@ -1,77 +0,0 @@ -/*-- DrLeonardo Design --*/ -#background { - -fx-background-color: #fff; -} - -/* Labels */ -#background > #settingsTitle { - -fx-font-size: 14pt; - -fx-alignment: baseline-center; -} - -.pressetLight { - -jfx-toggle-color: #61B373; - -jfx-untoggle-color: #FAFAFA; - -jfx-toggle-line-color: rgba(116, 192, 133, 0.79); - -jfx-untoggle-line-color: #999999; - -jfx-size: 10.0; - -jfx-disable-visual-focus: false; -} - -.pressetMedium { - -jfx-toggle-color: #61B373; - -jfx-untoggle-color: #FAFAFA; - -jfx-toggle-line-color: rgba(116, 192, 133, 0.79); - -jfx-untoggle-line-color: #999999; - -jfx-size: 10.0; - -jfx-disable-visual-focus: false; -} - -.pressetHigh { - -jfx-toggle-color: #61B373; - -jfx-untoggle-color: #FAFAFA; - -jfx-toggle-line-color: rgba(116, 192, 133, 0.79); - -jfx-untoggle-line-color: #999999; - -jfx-size: 10.0; - -jfx-disable-visual-focus: false; -} - -#apply{ - -fx-background-color: #61B373; - -fx-background-radius: 0; - -fx-text-fill: white; - -fx-background-position: center; - -jfx-button-type: FLAT; - -fx-pref-width: 45px; - -fx-pref-height: 45px; -} -#apply:hover, -#apply:focused{ - -fx-background-color: #74C085; -} - -#optionsPane > #modlist { - -fx-background-color: transparent; - -} - -#optionsPane > #modlist > .viewport { - -fx-background-color: transparent; -} - -.description-text { - -fx-font-smoothing-type: lcd; - -fx-fill: #8c8c8c; - -fx-font-size: 12px; -} - -.lineHead { - -fx-stroke: #d8d8d8; - -fx-stroke-width: 3; -} - -.separator *.line { - -fx-border-color: transparent; - -fx-border-width: 0 0 10 0; -} -/*-- DrLeonardo Design --*/ \ No newline at end of file diff --git a/Launcher/runtime/dialog/overlay/processing/processing.fxml b/Launcher/runtime/dialog/overlay/processing/processing.fxml index bf96e00b..8e40a15c 100644 --- a/Launcher/runtime/dialog/overlay/processing/processing.fxml +++ b/Launcher/runtime/dialog/overlay/processing/processing.fxml @@ -7,7 +7,7 @@ - + diff --git a/Launcher/runtime/dialog/scenes/console/console.fxml b/Launcher/runtime/dialog/scenes/console/console.fxml new file mode 100644 index 00000000..0069fee6 --- /dev/null +++ b/Launcher/runtime/dialog/scenes/console/console.fxml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Launcher/runtime/dialog/login.fxml b/Launcher/runtime/dialog/scenes/login/login.fxml similarity index 58% rename from Launcher/runtime/dialog/login.fxml rename to Launcher/runtime/dialog/scenes/login/login.fxml index 67bcb8a1..5d7f647d 100644 --- a/Launcher/runtime/dialog/login.fxml +++ b/Launcher/runtime/dialog/scenes/login/login.fxml @@ -6,6 +6,7 @@ + @@ -27,16 +28,28 @@ - + - - - - - - - + + + + + + + + + + + + + + + + + + + - + diff --git a/Launcher/runtime/dialog/mainmenu.fxml b/Launcher/runtime/dialog/scenes/mainmenu/mainmenu.fxml similarity index 66% rename from Launcher/runtime/dialog/mainmenu.fxml rename to Launcher/runtime/dialog/scenes/mainmenu/mainmenu.fxml index 931d0ac5..bfbd9238 100644 --- a/Launcher/runtime/dialog/mainmenu.fxml +++ b/Launcher/runtime/dialog/scenes/mainmenu/mainmenu.fxml @@ -1,6 +1,8 @@ + + @@ -18,7 +20,7 @@ - + @@ -47,13 +49,16 @@ - + + + + - - + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + diff --git a/Launcher/runtime/dialog/overlay/options/options.fxml b/Launcher/runtime/dialog/scenes/options/options.fxml similarity index 57% rename from Launcher/runtime/dialog/overlay/options/options.fxml rename to Launcher/runtime/dialog/scenes/options/options.fxml index c53f1afa..301cb3bd 100644 --- a/Launcher/runtime/dialog/overlay/options/options.fxml +++ b/Launcher/runtime/dialog/scenes/options/options.fxml @@ -2,6 +2,7 @@ + @@ -18,10 +19,10 @@ - - + + - + @@ -32,17 +33,27 @@ - + - - - - + + + + + + + + + + + + + + + - diff --git a/Launcher/runtime/dialog/overlay/options/options.js b/Launcher/runtime/dialog/scenes/options/options.js similarity index 84% rename from Launcher/runtime/dialog/overlay/options/options.js rename to Launcher/runtime/dialog/scenes/options/options.js index b9af9a9c..32a6fa28 100644 --- a/Launcher/runtime/dialog/overlay/options/options.js +++ b/Launcher/runtime/dialog/scenes/options/options.js @@ -1,38 +1,3 @@ -var optionsPane; - -/* ======== init Options ======== */ -function initOptionsScene() { - optionsMenu.setOnMousePressed(function(event){ movePoint = new javafx.geometry.Point2D(event.getSceneX(), event.getSceneY())}); - optionsMenu.setOnMouseDragged(function(event) { - if(movePoint === null) { - return; - } - - stage.setX(event.getScreenX() - movePoint.getX()); - stage.setY(event.getScreenY() - movePoint.getY()); - }); - - var pane = optionsMenu.lookup("#bar"); - bar = pane; - pane.lookup("#close").setOnAction(function(event){ javafx.application.Platform.exit()}); - pane.lookup("#hide").setOnAction(function(event){ stage.setIconified(true)}); - pane.lookup("#apply").setOnAction(function(){ - setCurrentScene(menuScene); - }); - pane.lookup("#back").setOnAction(function(){ - setCurrentScene(menuScene); - }); - - var pane = optionsMenu.lookup("#optionsPane"); - optionsPane = pane; - -} - -/* ======== Options ======== */ -function goOptions(event) { - setCurrentScene(optionsScene); -} - var options = { file: DirBridge.dir.resolve("options.bin"), @@ -111,6 +76,8 @@ var options = { count: 0, update: function() { + var pane = optionsMenu.lookup("#optionsPane"); + optionsPane = pane; var modlist = pane.lookup("#modlist").getContent(); var nodelist = new java.util.ArrayList; @@ -168,11 +135,11 @@ var options = { textDescr = new javafx.scene.text.Text(modDescription); if(subLevel > 1) { for(var i = 1; i < subLevel; i++){ - textDescr.setWrappingWidth(640-(25*i)); + textDescr.setWrappingWidth(630-(25*i)); textDescr.setTranslateX(25+(25*i)); } } else { - textDescr.setWrappingWidth(640); + textDescr.setWrappingWidth(630); textDescr.setTranslateX(25); } textDescr.setTextAlignment(javafx.scene.text.TextAlignment.JUSTIFY); diff --git a/Launcher/runtime/dialog/servers.css b/Launcher/runtime/dialog/servers.css new file mode 100644 index 00000000..edb37b39 --- /dev/null +++ b/Launcher/runtime/dialog/servers.css @@ -0,0 +1,32 @@ +/*-- DrLeonardo Design --*/ + +/* Server buttons */ +.server-button { + -jfx-button-type: FLAT; + -fx-font-weight: bold; + -fx-font-size: 16pt; + -fx-background-color: transparent; + -fx-background-size: cover; + -fx-background-radius: 0; + -fx-alignment: CENTER-LEFT; + -fx-padding: 0 0 0 75; + -fx-font-family: "Segoe UI"; + -fx-text-fill: #323232; + -fx-pref-width: 282px; + -fx-pref-height: 75px; +} + +.server-button:selected { + -fx-border-width: 0 0 0 2; + -fx-border-style: none none none solid; + -fx-border-color: #323232; +} + +/** server-button- **/ + +.server-button-Example { + -fx-background-image: url('images/servers/example.png'); +} + + +/*-- DrLeonardo Design --*/ \ No newline at end of file diff --git a/Launcher/runtime/dialog/styles.css b/Launcher/runtime/dialog/styles.css index c2e03582..aa88be77 100644 --- a/Launcher/runtime/dialog/styles.css +++ b/Launcher/runtime/dialog/styles.css @@ -3,7 +3,7 @@ Button, CheckBox, ComboBox, RadioButton { -fx-cursor: hand; } -/* Background */ +/* Backgrounds */ #layout { -fx-background-color: transparent; -fx-background-size: cover; @@ -11,11 +11,32 @@ #layout { -fx-pref-height: 425px; -fx-background-image: url('images/background.jpg'); } +#background { + -fx-background-color: #fff; +} +/** Labels **/ +#background > #settingsTitle { + -fx-font-size: 14pt; + -fx-alignment: baseline-center; +} + +#serverLabel{ + -fx-text-fill: #323232; + -fx-padding: 0 0 0 14; + -fx-pref-width: 265px; + -fx-pref-height: 25px; +} + +#serverStatus{ + -fx-text-fill: #323232; + -fx-pref-width: 120px; + -fx-pref-height: 25px; +} /* Mask */ #mask { -fx-background-color: rgba(0, 0, 0, 0.5); - -fx-pref-width: 693px; + -fx-pref-width: 692px; -fx-pref-height: 425px; } @@ -33,82 +54,25 @@ .error{ /* bars */ #bar { -fx-background-color: #323232; - -fx-pref-width: 45px; + -fx-pref-width: 46px; -fx-pref-height: 425px; } /** buttons in bar **/ #close { -fx-background-position: center; -jfx-button-type: FLAT; - -fx-background-repeat: no-repeat; - -fx-background-image: url('images/icons/close.png'); -fx-background-radius: 0; -fx-background-color: #CE5757; - -fx-pref-width: 45px; + -fx-pref-width: 46px; -fx-pref-height: 45px; } -#hide { +#hide, #back, #goConsole, #settings, #logout, #discord { -fx-background-position: center; -jfx-button-type: FLAT; - -fx-background-repeat: no-repeat; - -fx-background-color: #323232; -fx-background-radius: 0; - -fx-background-image: url('images/icons/hide.png'); - -fx-pref-width: 45px; + -fx-pref-width: 46px; -fx-pref-height: 45px; } -#back { - -fx-background-position: center; - -jfx-button-type: FLAT; - -fx-background-repeat: no-repeat; - -fx-background-color: #323232; - -fx-background-radius: 0; - -fx-background-image: url('images/icons/back.png'); - -fx-pref-width: 45px; - -fx-pref-height: 45px; -} -#goConsole { - -fx-background-position: center; - -jfx-button-type: FLAT; - -fx-background-repeat: no-repeat; - -fx-background-color: #323232; - -fx-background-radius: 0; - -fx-background-image: url('images/icons/console.png'); - -fx-pref-width: 45px; - -fx-pref-height: 45px; -} -#settings { - -fx-background-position: center; - -jfx-button-type: FLAT; - -fx-background-repeat: no-repeat; - -fx-background-color: #323232; - -fx-background-radius: 0; - -fx-background-image: url('images/icons/settings.png'); - -fx-pref-width: 45px; - -fx-pref-height: 45px; -} -#logout { - -fx-background-position: center; - -fx--button-type: FLAT; - -fx-background-repeat: no-repeat; - -fx-background-color: #323232; - -fx-background-radius: 0; - -fx-background-image: url('images/icons/exit.png'); - -fx-pref-width: 45px; - -fx-pref-height: 45px; -} -#discord { - -fx-background-position: center; - -jfx-button-type: FLAT; - -fx-background-repeat: no-repeat; - -fx-background-color: #323232; - -fx-background-radius: 0; - -fx-background-image: url('images/icons/discord.png'); - -fx-pref-width: 45px; - -fx-pref-height: 45px; -} -#close:hover, #close:pressed { -fx-background-color: #DB5252; } -#hide:hover, #hide:pressed, #discord:hover, #discord:pressed, #settings:hover, #settings:pressed, #logout:hover, #logout:pressed { -fx-background-color: #3d3d3d; } /* LoginMenu */ #authPane { @@ -190,7 +154,7 @@ #news { /* MenuPane */ .serverentrance { -fx-background-color: rgba(255, 255, 255, 0.71); - -fx-pref-width: 387px; + -fx-pref-width: 386px; -fx-pref-height: 425px; } @@ -208,16 +172,41 @@ .clientLaunch{ .clientSettings{ -fx-background-position: center; -jfx-button-type: FLAT; - -fx-background-repeat: no-repeat; -fx-background-color: #61B373; -fx-background-radius: 0; -fx-pref-width: 85px; -fx-pref-height: 51px; - -fx-background-image: url('images/icons/options.png'); } -.clientLaunch:hover, .clientLaunch:pressed, .clientSettings:hover, .clientSettings:pressed { -fx-background-color: #74C085; } +.clientLaunch:hover, .clientLaunch:pressed { -fx-background-color: #74C085; } +/* Pressets options */ +.pressetLight { + -jfx-toggle-color: #61B373; + -jfx-untoggle-color: #FAFAFA; + -jfx-toggle-line-color: rgba(116, 192, 133, 0.79); + -jfx-untoggle-line-color: #999999; + -jfx-size: 10.0; + -jfx-disable-visual-focus: false; +} + +.pressetMedium { + -jfx-toggle-color: #61B373; + -jfx-untoggle-color: #FAFAFA; + -jfx-toggle-line-color: rgba(116, 192, 133, 0.79); + -jfx-untoggle-line-color: #999999; + -jfx-size: 10.0; + -jfx-disable-visual-focus: false; +} + +.pressetHigh { + -jfx-toggle-color: #61B373; + -jfx-untoggle-color: #FAFAFA; + -jfx-toggle-line-color: rgba(116, 192, 133, 0.79); + -jfx-untoggle-line-color: #999999; + -jfx-size: 10.0; + -jfx-disable-visual-focus: false; +} /* Scrolls */ .scroll-pane { @@ -257,53 +246,30 @@ .scroll-pane>.corner { -fx-background-color: rgba(0, 0, 0, 0.19); } -/* Server buttons */ -.server-button { - -jfx-button-type: FLAT; - -fx-font-weight: bold; - -fx-font-size: 16pt; - -fx-background-radius: 0; - -fx-alignment: CENTER-LEFT; - -fx-padding: 0 0 0 75; - -fx-font-family: "Segoe UI"; - -fx-text-fill: #fff; - -fx-pref-width: 282px; - -fx-pref-height: 75px; +/* OptionsPane */ +#optionsPane > #modlist { + -fx-background-color: transparent; + } -.server-button:selected { - -fx-border-width: 0 0 0 5; - -fx-border-style: none none none solid; - -fx-border-color: #323232; +#optionsPane > #modlist > .viewport { + -fx-background-color: transparent; } -/** Server custom buttons **/ -/** server-button- **/ -.server-icon-Example { - -fx-background-image: url('images/icons/example.png'); -} -.server-icon-Example2 { - -fx-background-image: url('images/icons/example2.png'); -} -.server-button-Example { - -fx-background-image: url('images/servers/example.png'); -} -.server-button-Example2 { - -fx-background-image: url('images/servers/example2.png'); +.description-text { + -fx-font-smoothing-type: lcd; + -fx-fill: #8c8c8c; + -fx-font-size: 12px; } -/* Labels */ -#serverLabel{ - -fx-text-fill: #323232; - -fx-padding: 0 0 0 14; - -fx-pref-width: 265px; - -fx-pref-height: 25px; +.lineHead { + -fx-stroke: #d8d8d8; + -fx-stroke-width: 10; } -#serverStatus{ - -fx-text-fill: #323232; - -fx-pref-width: 120px; - -fx-pref-height: 25px; +.separator *.line { + -fx-border-color: transparent; + -fx-border-width: 0 0 10 0; } #serverlist{ diff --git a/Launcher/runtime/init.js b/Launcher/runtime/init.js index ea6c51f3..b3193289 100644 --- a/Launcher/runtime/init.js +++ b/Launcher/runtime/init.js @@ -1,5 +1,5 @@ var app, stage, scene, loginScene, menuScene, consoleScene, optionsScene; -var rootPane, loginPane, menuPane, consolePane, optionsMenu; +var rootPane, loginPane, menuPane, consoleMenu, optionsMenu; var LauncherApp = Java.extend(JSApplication, { init: function() { @@ -18,10 +18,10 @@ var LauncherApp = Java.extend(JSApplication, { stage.getIcons().add(new javafx.scene.image.Image(iconURL)); }); - loginPane = loadFXML("dialog/login.fxml"); - menuPane = loadFXML("dialog/mainmenu.fxml"); - consolePane = loadFXML("dialog/console.fxml"); - optionsMenu = loadFXML("dialog/overlay/options/options.fxml"); + loginPane = loadFXML("dialog/scenes/login/login.fxml"); + menuPane = loadFXML("dialog/scenes/mainmenu/mainmenu.fxml"); + consoleMenu = loadFXML("dialog/scenes/console/console.fxml"); + optionsMenu = loadFXML("dialog/scenes/options/options.fxml"); loginScene = new javafx.scene.Scene(loginPane); loginScene.setFill(javafx.scene.paint.Color.TRANSPARENT); @@ -29,7 +29,7 @@ var LauncherApp = Java.extend(JSApplication, { menuScene = new javafx.scene.Scene(menuPane); menuScene.setFill(javafx.scene.paint.Color.TRANSPARENT); - consoleScene = new javafx.scene.Scene(consolePane); + consoleScene = new javafx.scene.Scene(consoleMenu); consoleScene.setFill(javafx.scene.paint.Color.TRANSPARENT); optionsScene = new javafx.scene.Scene(optionsMenu);