From 33227ec8811d888a4492368f30963e00edec6faa Mon Sep 17 00:00:00 2001 From: Dakedres Date: Mon, 22 Apr 2024 13:51:51 -0600 Subject: [PATCH] New launcher stylesheets and texts --- src/util/constants.json | 14 +++++++++++++- view/global.css | 24 ++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/src/util/constants.json b/src/util/constants.json index 2aa8aae..75e1b4a 100755 --- a/src/util/constants.json +++ b/src/util/constants.json @@ -2,7 +2,7 @@ "app": { "id": "xash", "categories": "Game", - "version": "0.0.0b" + "version": "0.1.0b" }, "emf": { "id": "emf", @@ -13,6 +13,12 @@ "modPath": "/a/.config/xash/mods/", "saves": "/a/.config/xash/saves/" }, + "storage": { + "baseKey": ".config/xash/saves", + "objectsInFilesystem": { + "ext": ".jso" + } + }, "manifestScheme": { "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", @@ -67,5 +73,11 @@ "pattern": "^.*$" } } + }, + "messages": { + "noMods": { + "header": "No mods installed", + "content": "You will need to install a mod to run with Xash93D. You can open the mods folder with the button below." + } } } \ No newline at end of file diff --git a/view/global.css b/view/global.css index b93817d..dada80d 100644 --- a/view/global.css +++ b/view/global.css @@ -22,6 +22,10 @@ padding: 0; } +.xash3d_launcher .notice { + padding: 2px 10px; +} + .xash3d_launcher .mod { margin-bottom: 6px; } @@ -40,8 +44,7 @@ margin: 2px 0 2px 5px; } -.xash3d_launcher .info h5 { - font-size: 8px; +.xash3d_launcher .info h4 { margin: 0 } @@ -63,6 +66,23 @@ opacity: .6; } +.xash3d_launcher ~ footer div { + padding: 2px 1px 1px 1px; + vertical-align: middle; +} + +.xash3d_launcher ~ footer .version { + color: #555; +} + +.xash3d_launcher ~ footer .controls { + float: right; +} + +.xash3d_launcher ~ footer button { + margin-left: 5px; +} + span.ui_menu__item__ico > img[src="/c/sys/skins/w93/xash"], div.ui_icon__file img[src="/c/sys/skins/w93/xash"] { display: block;