From 8173f85df0fd5110d58c1ebba2d9a43d7eeae167 Mon Sep 17 00:00:00 2001 From: Daniel Scalzi Date: Tue, 9 May 2017 00:56:08 -0400 Subject: [PATCH] Begining work on the UI, header is complete. --- app/assets/css/styles.css | 74 +++++++++++++++++++++++++++++- app/assets/images/WCTextCrop.png | Bin 0 -> 13314 bytes app/assets/js/launchindex.json | 75 +++++++++++++++++++++++++++++++ app/assets/js/launchprocess.js | 4 +- app/assets/js/script.js | 18 +++++--- app/index.html | 20 ++++++++- index.js | 4 +- package.json | 3 +- 8 files changed, 184 insertions(+), 14 deletions(-) create mode 100644 app/assets/images/WCTextCrop.png create mode 100644 app/assets/js/launchindex.json diff --git a/app/assets/css/styles.css b/app/assets/css/styles.css index 85ade54d..997bcf2d 100644 --- a/app/assets/css/styles.css +++ b/app/assets/css/styles.css @@ -1,9 +1,28 @@ +/******************************************************************************* + * * + * Fonts * + * * + ******************************************************************************/ + + /* Primary font for the application, found on http://www.dafont.com/ringbearer.font */ @font-face { font-family: ringbearer; src: url('../fonts/ringbearer.ttf'); } -body, html { +/* Logger font, found on https://fonts.google.com/specimen/Inconsolata?selection.family=Inconsolata */ +@font-face { + font-family: inconsolata; + src: url('../fonts/Inconsolata-Bold.ttf'); +} + +/******************************************************************************* + * * + * Body * + * * + ******************************************************************************/ + +body, html, div { margin: 0px; padding: 0px; } @@ -11,4 +30,57 @@ body, html { html { background: url('../images/BrownWithWignette.jpg') no-repeat center center fixed; background-size: cover; +} + +/******************************************************************************* + * * + * Header * + * * + ******************************************************************************/ + +/* Main div header container/ */ +#header_container { + background-color: black; + padding: 5px; + font-size: 0px; + text-align: center; + border-bottom: thick solid #a02d2a; + border-bottom-width: 5px; + position: relative; +} + +/* Div container for the seal image. */ +#header_seal_container { + position: absolute; +} + +/* Div container for the header image. */ +#header_img_container { + display: inline-block; + margin: 0 auto; +} + +/* Seal and header images. */ +#header_seal, +#header_img { + height: 75px; + width: auto; + display: block; +} + +/* Div container for the social buttons */ +#header_social_container { + font-size: 16px; + position: absolute; + bottom: 0px; + right: 0px; + margin-right: 5px; +} + +/* Social buttons */ +.header_social_img { + height: 25px; + width: auto; + display: inline-block; + cursor: pointer; } \ No newline at end of file diff --git a/app/assets/images/WCTextCrop.png b/app/assets/images/WCTextCrop.png new file mode 100644 index 0000000000000000000000000000000000000000..26a452e52753ea4db10e1b6a2bea6d7d227b71d4 GIT binary patch literal 13314 zcmb_@g;$ha)bCJ34k--+0s$O-Q6XfN+Ts8 zp~8Lm)_2#sf52UnYvy^**?XUzzq3!2j+P39h=B+M0zuSN74<+M91`Gr5CIr?S71|$ z0zSZR)m0QhclVE+*1|;K7eW_hWe?z!6nL?MyzYsjyP1UX4 zYR6gsR-AsTEh6fNS72n}i`V-)WQ+P$E%q?4Kr8n2|GepIrf1ntJ#||DgHK>6l-9!P z`c>$MB$xIJD^O&xDky}Pl_2#0@AG8nTE!6$7fOx`ohPk7*y07z2Zuj{JTITb-o?Lb zUb#K-ar}%6t$;Cs@2`2+y!19Au9{kzU#{I_D4%M>mB&pGId*E@?K^n}Tc?tZ8Z zG*n9gD<_-*I?o^)oEM`-&?QEWy1$>?jAxV1qW<~cfM&C{V0ZEtj?-#%iO0WD&)@R0 z5n!K;&l71tBNpl9o0nJur%297i$RV7m#V;|E+CQSe;fK8GVk$OTZ7Db60x*QukgCPX}~Wu?!~6OIjqY_`+BnQ42h3GkGft?G<|h_A{@iU=Wot8oHTj zbF}Br-SV#zlro}y!bn+%q~?E}v+yhWq0aPT;XmIth@|DHh2ljV( zfhu)#Y;%V9O0~4%-TL>#oG_$z;gHO{|D^&sE}maQ-1Z&IMw?Et_n&V3B~?s+TWE6v z#X*q@(tB6S$Ue8gIVum(#}nm7Q~ot5x~@3~wa@)uZvBZw*q_Xl9yob81TORZ#JjZx zWuMyIaXpcjmqo*+6_a~wE{|s7Abu+wtns^u29Rg7j*77Zy(XDErAFcM>zI$)ZmWl6 zYt6%)P;$qspaQI-xqm-Z2Y`B*1Fx{r zn-)NAF9A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^Y-pDr5Oka*t&TB_JHr6um3;KioQGibR|OxRtak#;MfjG NO-W0!Ou-`b{{UB`o|FIp literal 0 HcmV?d00001 diff --git a/app/assets/js/launchindex.json b/app/assets/js/launchindex.json new file mode 100644 index 00000000..b895ce7f --- /dev/null +++ b/app/assets/js/launchindex.json @@ -0,0 +1,75 @@ +{ + "version": "1.0", + "servers": [ + { + "id": "WesterosCraft-1.11.2", + "name": "WesterosCraft Production Client", + "news-feed": "http://www.westeroscraft.com/api/rss.php?preset_id=12700544", + "icon-url": "http://mc.westeroscraft.com/WesterosCraftLauncher/files/server-prod.png", + "revision": "0.0.1", + "server-ip": "mc.westeroscraft.com", + "mc-version": "1.11.2", + "main-class": "TBD", + "libraries": [ + { + "name": "net.minecraftforge.forge.forge-universal:1.11.2-13.20.0.2228", + "required": true, + "artifact": { + "size": 4123353, + "MD5": "5b9105f1a8552beac0c8228203d994ae", + "path": "net/minecraftforge/forge/1.11.2-13.20.0.2228/forge-1.11.2-13.20.0.2228-universal.jar", + "url": "http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.11.2-13.20.0.2228/forge-1.11.2-13.20.0.2228-universal.jar" + }, + "launch-args": ["--tweakClass cpw.mods.fml.common.launcher.FMLTweaker"] + }, + { + "name": "net.optifine.optifine:1.11.2_HD_U_B8", + "required": true, + "artifact": { + "size": 2050307, + "MD5": "c18c80f8bfa2a440cc5af4ab8816bc4b", + "path": "optifine/OptiFine/1.11.2_HD_U_B8/OptiFine-1.11.2_HD_U_B8.jar", + "url": "http://optifine.net/download.php?f=OptiFine_1.11.2_HD_U_B8.jar" + }, + "launch-args": [] + } + ], + "forgemods": [ + { + "name": "MODNAME", + "required": true, + "artifact": { + "size": 1234, + "MD5": "e71e88c744588fdad48d3b3beb4935fc", + "path": "/path/to/lib/modname.jar", + "url": "http://mc.westeroscraft.com/WesterosCraftLauncher/files/1.7.10/launchwrapper-1.11.jar" + } + } + ], + "litemods": [ + { + "name": "MODNAME", + "required": true, + "artifact": { + "size": 1234, + "MD5": "e71e88c744588fdad48d3b3beb4935fc", + "path": "/path/to/lib/modname.jar", + "url": "http://mc.westeroscraft.com/WesterosCraftLauncher/files/1.7.10/launchwrapper-1.11.jar" + } + } + ], + "files": [ + { + "name": "FILENAME", + "required": true, + "artifact": { + "size": 1234, + "MD5": "e71e88c744588fdad48d3b3beb4935fc", + "path": "/path/to/lib/filename.jar", + "url": "http://mc.westeroscraft.com/WesterosCraftLauncher/files/1.7.10/launchwrapper-1.11.jar" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/app/assets/js/launchprocess.js b/app/assets/js/launchprocess.js index 467e52db..4a36b381 100644 --- a/app/assets/js/launchprocess.js +++ b/app/assets/js/launchprocess.js @@ -8,15 +8,13 @@ const unzip = require('unzip') const mkpath = require('mkdirp'); exports.launchMinecraft = function(versionData, basePath){ - const authPromise = mojang.auth('nytrocraft@live.com', 'applesrgood123', uuidV4(), { + const authPromise = mojang.auth('EMAIL', 'PASS', uuidV4(), { name: 'Minecraft', version: 1 }) authPromise.then(function(data){ const hardcodedargs = '' const args = finalizeArguments(versionData, data, basePath) - //console.log(data) - //console.log(args) //TODO make this dynamic const child = child_process.spawn('C:\\Program Files\\Java\\jre1.8.0_131\\bin\\javaw.exe', args) }) diff --git a/app/assets/js/script.js b/app/assets/js/script.js index fb32b9f2..085bfa8e 100644 --- a/app/assets/js/script.js +++ b/app/assets/js/script.js @@ -1,8 +1,16 @@ +var $ = require('jQuery'); const remote = require('electron').remote +const shell = require('electron').shell -//Opens DevTools window if you type "wcdev" in sequence. -//This will crash the program if you are using multiple -//DevTools, for example the chrome debugger in VS Code. +/* Open web links in the user's default browser. */ +$(document).on('click', 'a[href^="http"]', function(event) { + event.preventDefault(); + shell.openExternal(this.href); +}); + +/*Opens DevTools window if you type "wcdev" in sequence. + This will crash the program if you are using multiple + DevTools, for example the chrome debugger in VS Code. */ const match = [87, 67, 68, 69, 86] let at = 0; @@ -30,6 +38,4 @@ document.addEventListener('keydown', function (e) { window.toggleDevTools() at = 0 } -}) - -console.log('Can you see me? ( ͡° ͜ʖ ͡°) Then it\'s working!') \ No newline at end of file +}) \ No newline at end of file diff --git a/app/index.html b/app/index.html index 372b60d8..9c45a911 100644 --- a/app/index.html +++ b/app/index.html @@ -8,6 +8,24 @@ - +
+
+ +
+
+ +
+ +
diff --git a/index.js b/index.js index c545d324..ee2346a4 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ function createWindow() { win.setMenu(null) - //Code for testing, marked for removal one it's properly implemented. + /*//Code for testing, marked for removal one it's properly implemented. const assetdl = require('./app/assets/js/assetdownload.js') const basePath = path.join(__dirname, 'mcfiles') const dataPromise = assetdl.parseVersionData('1.11.2', basePath) @@ -27,7 +27,7 @@ function createWindow() { //assetdl.downloadLogConfig(data, basePath) //assetdl.downloadLibraries(data, basePath) require('./app/assets/js/launchprocess.js').launchMinecraft(data, basePath) - }) + })*/ win.on('closed', () => { win = null diff --git a/package.json b/package.json index 52ce7236..9d397f9b 100644 --- a/package.json +++ b/package.json @@ -16,10 +16,11 @@ "url": "https://gitlab.com/westeroscraft/electronlauncher/issues" }, "homepage": "http://www.westeroscraft.com/", - "devDependencies": { + "dependencies": { "async": "^2.3.0", "electron": "^1.6.5", "extract-zip": "=1.6.0", + "jQuery": "^1.7.4", "mojang": "^0.4.1", "promise": "^7.1.1", "unzip": "^0.1.11",