From e26d95b93d5ac47e204cdae560e5652e6ed6215d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=9B=D0=B5?= =?UTF-8?q?=D0=BE?= Date: Sat, 6 Apr 2019 17:21:38 +0300 Subject: [PATCH] Update design --- Launcher/runtime/dialog/console.fxml | 32 +++++++++ Launcher/runtime/dialog/dialog.js | 37 +++++++++- .../runtime/dialog/images/icons/forum.png | Bin 0 -> 547 bytes Launcher/runtime/dialog/images/icons/help.png | Bin 0 -> 423 bytes .../runtime/dialog/images/icons/server.png | Bin 0 -> 1102 bytes .../runtime/dialog/images/icons/settings1.png | Bin 0 -> 427 bytes .../runtime/dialog/images/icons/store.png | Bin 0 -> 361 bytes Launcher/runtime/dialog/images/icons/vk.png | Bin 0 -> 407 bytes Launcher/runtime/dialog/mainmenu.fxml | 1 + .../runtime/dialog/overlay/debug/debug.css | 34 ++++++---- .../runtime/dialog/overlay/debug/debug.fxml | 13 ++-- .../runtime/dialog/overlay/debug/debug.js | 11 --- .../dialog/overlay/options/options.css | 64 ++---------------- .../dialog/overlay/options/options.fxml | 17 ++--- .../runtime/dialog/overlay/options/options.js | 9 +-- .../dialog/overlay/processing/processing.fxml | 6 +- .../dialog/overlay/processing/processing.js | 6 +- .../dialog/overlay/settings/settings.css | 29 +------- .../dialog/overlay/settings/settings.fxml | 50 +++++++------- Launcher/runtime/dialog/styles.css | 20 ++++++ Launcher/runtime/engine/api.js | 1 - Launcher/runtime/init.js | 8 ++- 22 files changed, 174 insertions(+), 164 deletions(-) create mode 100644 Launcher/runtime/dialog/console.fxml create mode 100644 Launcher/runtime/dialog/images/icons/forum.png create mode 100644 Launcher/runtime/dialog/images/icons/help.png create mode 100644 Launcher/runtime/dialog/images/icons/server.png create mode 100644 Launcher/runtime/dialog/images/icons/settings1.png create mode 100644 Launcher/runtime/dialog/images/icons/store.png create mode 100644 Launcher/runtime/dialog/images/icons/vk.png diff --git a/Launcher/runtime/dialog/console.fxml b/Launcher/runtime/dialog/console.fxml new file mode 100644 index 00000000..1890848f --- /dev/null +++ b/Launcher/runtime/dialog/console.fxml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Launcher/runtime/dialog/dialog.js b/Launcher/runtime/dialog/dialog.js index 6b9f2104..a3981c87 100644 --- a/Launcher/runtime/dialog/dialog.js +++ b/Launcher/runtime/dialog/dialog.js @@ -9,6 +9,7 @@ var loginData; function initLauncher() { initLoginScene(); initMenuScene(); + initConsoleScene(); debug.initOverlay(); processing.initOverlay(); @@ -34,7 +35,7 @@ function initLoginScene() { bar = pane; loginPane.lookup("#close").setOnAction(function(event){ javafx.application.Platform.exit()}); loginPane.lookup("#hide").setOnAction(function(event){ stage.setIconified(true)}); - loginPane.lookup("#discord").setOnAction(function(){ openURL(config.discord_url); }); + loginPane.lookup("#discord").setOnAction(function(){ openURL(config.discord); }); var pane = loginPane.lookup("#authPane"); authPane = pane; @@ -82,6 +83,7 @@ function initMenuScene() { menuPane.lookup("#hide").setOnAction(function(event){ stage.setIconified(true)}); menuPane.lookup("#discord").setOnAction(function(){ openURL(config.discord); }); menuPane.lookup("#settings").setOnAction(goSettings); + menuPane.lookup("#goConsole").setOnAction(goConsole); menuPane.lookup("#logout").setOnAction(function(){ setCurrentScene(loginScene); }); @@ -103,6 +105,32 @@ function initMenuScene() { } +/* ======== init Console ======== */ +function initConsoleScene() { + consolePane.setOnMousePressed(function(event){ movePoint = new javafx.geometry.Point2D(event.getSceneX(), event.getSceneY())}); + consolePane.setOnMouseDragged(function(event) { + if(movePoint === null) { + return; + } + + stage.setX(event.getScreenX() - movePoint.getX()); + stage.setY(event.getScreenY() - movePoint.getY()); + }); + + var pane = consolePane.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(){ + setCurrentScene(menuScene); + }); + + var pane = consolePane.lookup("#consolePane"); + consolePane = pane; + + +} + /* ======== init Offline ======== */ function initOffline() { stage.setTitle(config.title + " [Offline]"); @@ -146,6 +174,13 @@ function goAuth(event) { doAuth(login, rsaPassword); } +/* ======== Console ======== */ +function goConsole(event) { + if (overlay.current !== null) { + return; + } +} + /* ======== Settings ======== */ function goSettings(event) { // Verify there's no other overlays diff --git a/Launcher/runtime/dialog/images/icons/forum.png b/Launcher/runtime/dialog/images/icons/forum.png new file mode 100644 index 0000000000000000000000000000000000000000..90c5725df4c5bf29c79bfea210816c82bfc6a2c9 GIT binary patch literal 547 zcmV+;0^I$HP)004R= z004l4008;_004mK002@5009+P0026d000+n*IFNt00009a7bBm000XR000XR0j(pw zbpQYW7<5HgbW?9;ba!ELWdLwtX>N2bZe?^JG%hhNGmRwuX8-^Jg-Jv~R7gv$)VnK2 zaU93-Czm3j-2MZK$)F^~r0h&=21zE97^IZJ#6Teom{4}H7~EozY%Yr;B$vqTcz;fw z)6ef*dY;3#Ud#7+&i8xH@B91x5{~1fs|2l>$1xu9iD#T(0qrP&?|EM$f(mp)O}-En zdVve{A{$;EvtX2BOyL3P#4DEJHMI+e8O9aj#0&c1*0KvH)nNvWsKN%~hL-mfZf(0! zDKzvayg`lYv4g*aX6|cPh&{YRp*L$lIX0Du8LD#*U&AqI$Y%7Q2qU;wB1UM21MoGx zfxX@J#Wm2`o5VfR2{l_n;4b|@P|TtNdFVna=P((U(93##%!bfTN-oZj%8ayRhvN2bZe?^J zG%hhNGmRwuX8-^JB}qg@F zD4-j}=MnwGB6=2!hav~423J$pp)c#Nn{1`ISV`@ ziy0XB4uLSEsD@VqP*9@8HKHUqKdq!Zu_%?HATcwqL@zJ3M8QPQP|vtmHk{P4vOzo+~wu3ioGkByCG-_G_x{Kkj%XV0BG zxAIs_WaLk$uZ8L9>CxYp-GBY{-L0H$ukTnjIB!tYR#JKt5gIzRxTNIE%G+=2Of4;c zZd$+od}v%;ovOC>>zus2cRwdgm=I-ZZfd&qqwUmpzW;yy`gQA{!~yw)!wQ_7oa*8$ zOXjnRzMV9G_3G8@XI(#X^r)=4{Ci1B$@H_28TKD&6FYhGKmB#d!i5jrN=mlewP9~K*e2$;{PVhZy8jOyI#d%G z85y0FlvG<*_RX@2`F&he)TTE}{{H=|{QLN~6DLm0=;J^2_+yQ(j?Ny5AGQo?IT?<# zpQ>LC_~P_9lvmQi&o@I_N~&th_V2~aOXps>e(zqLd+*mTUu+BxHQc&$=Z=S`XC}uV z9fn?B-4`w2R;JCGKfnHXulB2bMHLl4HeM_ZDY=p#9ul%;_4Gw6SFSV%2JZJ468nGl zdHH|j=i}S8<2;i>PR7QqTfh36Ub=N_*7NfGYr?|9lijWdUfi{I&K#N3-2GLX!>_w% z#n_6?IL_d6V@9~bPtyZ&oQsqdDkfPjL;dcT^QKb%=U zkIyVW`+04pZ3Cxt)Rik&VvKk7bj{;6x3;!se;N6CN!7hGr%zkozjLRiyUhOaxlLQQ zZjJtHVrgz}o~^TBQTpY(z(kY&YDIip+`k3M_InRL)@VPxVWDe8#Epv|KYo0^Yktq7 z*z>E`^}IOWtgUQyEdD}YMa)`HFRxYeXU?o#-QMJNH-Fjk<@5Re=m7(#*~QIGF4+2x z+0=Jyo12{rU5!@2eZnp3S`27d;zj{IV4*UIax&MJ>*X$dd#5kHidtoRv7Nl72I$hX|x- TE(vf4=6wcFS3j3^P6!lvI6;>1s;*b3=DjSL74G){)!Z!phSslL`iUdT1k0gQ7S`0VrE{6US4X6f{C7? zo^h|r-*lj%GM+AuAr}5?FK^UyaTGcB(Y2lZhJfP147C+8Hae?N2Yt*P&4{Z+GDZDnT1-d?>bZT>hR T8XGNOSTcCJ`njxgN@xNAM^dl> literal 0 HcmV?d00001 diff --git a/Launcher/runtime/dialog/images/icons/store.png b/Launcher/runtime/dialog/images/icons/store.png new file mode 100644 index 0000000000000000000000000000000000000000..164d36964efa69f9ae8bf750dc865edb9ad51de3 GIT binary patch literal 361 zcmeAS@N?(olHy`uVBq!ia0vp^GC(ZA!3HE*&&$6DQVPi)LB0$ORjLdO4b2P;KmP;i z7YqzR91M)25ey7g(-|1V^RGwAPXMarEbxddW?fO3MP7ndd9sff75|#PJ6mIhIn}Iy|R$&kb}(eLSC`W`3h_oa|C^U zv88SP<&fsfw)kMWz(ozSkE}dwlMCwdWsV!xZRb7qt=<3UrvJU%(T631wI%0@-@CE! zZB(X_m8?(U(L-A=rT9cHz9z2sv1MNL zcP;uhnD#L~OL^Zr`{Jc@6Xsh;6xzRdT3{HZBv4itc|qv&Ep`isWsZKoGk>hxar0_N z)Z^xNZqH?Bc2r61Qr%+okU6N$C%E$oM|NIilG2IWo2@qIeVVv9=1dTr70uAU~F(;S%eBSGo)jr=2ytNyM&$bISf$vVZUivoCMBD?HDL+w8} zDy2UbpOq`c?-x1S{iEh=ZD-C~Tu%;WuI$|K*xURZ>)d(%JQEDdng4&7-ZU-$rPL1H xvo5)ox&^ym&6O-sW1rHW5c_lc58>qREWHnmr`VMrUkwaI22WQ%mvv4FO#q5#oA>|# literal 0 HcmV?d00001 diff --git a/Launcher/runtime/dialog/mainmenu.fxml b/Launcher/runtime/dialog/mainmenu.fxml index a3e918bb..2b18fa2b 100644 --- a/Launcher/runtime/dialog/mainmenu.fxml +++ b/Launcher/runtime/dialog/mainmenu.fxml @@ -71,6 +71,7 @@ + diff --git a/Launcher/runtime/dialog/overlay/debug/debug.css b/Launcher/runtime/dialog/overlay/debug/debug.css index ccfc28be..28cf9852 100644 --- a/Launcher/runtime/dialog/overlay/debug/debug.css +++ b/Launcher/runtime/dialog/overlay/debug/debug.css @@ -1,4 +1,9 @@ -/* Output */ +/*-- DrLeonardo Design --*/ +Button { + -fx-cursor: hand; +} + +/* Outputs */ #overlay > #output { -fx-background-color: white; -fx-background-radius: 0; @@ -15,34 +20,37 @@ #overlay > #output .content { #overlay > #copy, #overlay > #action.close { -fx-background-radius: 0; - -fx-background-color: rgba(33,133,208,.5); -fx-text-fill: white; + -fx-background-position: center; + -jfx-button-type: FLAT; + -fx-background-color: #2d83ce; + -fx-pref-width: 100px; + -fx-pref-height: 25px; } #overlay > #copy:hover, #overlay > #copy:focused, #overlay > #action.close:hover, -#overlay > #action.close:focused { - -fx-background-color: rgba(22,120,194,.5); -} - +#overlay > #action.close:focused, #overlay > #copy:pressed, #overlay > #action.close:pressed { - -fx-background-color: rgba(22,105,164,.5); + -fx-background-color: #1568ce; } /* Kill button */ #overlay > #action.kill { -fx-background-radius: 0; - -fx-background-color: rgba(219,40,40,.5); -fx-text-fill: white; + -fx-background-position: center; + -jfx-button-type: FLAT; + -fx-background-color: #CE5757; + -fx-pref-width: 100px; + -fx-pref-height: 25px; } #overlay > #action.kill:hover, -#overlay > #action.kill:focused { - -fx-background-color: rgba(202,16,16,.5); -} - +#overlay > #action.kill:focused, #overlay > #action.kill:pressed { - -fx-background-color: rgba(178,30,30,.5); + -fx-background-color: #DB5252; } +/*-- DrLeonardo Design --*/ \ No newline at end of file diff --git a/Launcher/runtime/dialog/overlay/debug/debug.fxml b/Launcher/runtime/dialog/overlay/debug/debug.fxml index e4e8b77d..8e1d95f4 100644 --- a/Launcher/runtime/dialog/overlay/debug/debug.fxml +++ b/Launcher/runtime/dialog/overlay/debug/debug.fxml @@ -1,19 +1,20 @@ + + - - - + + -