From b7480f1896ed64a22a039f0967c38576add88b00 Mon Sep 17 00:00:00 2001 From: Ludwig Behm Date: Tue, 16 Mar 2021 20:07:48 +0100 Subject: [PATCH] New: Credits dialog Added copyright information / credits dialog into the main menu. Inspired by [tabascoeye/workadventure](https://github.com/tabascoeye/workadventure/commit/7b7c695f76ff8db095ab6b888f2039d3c7bbad35), requested by Chaoschemnitz Credits dialog shows a text field. It's content should be provided by map authors by defining a map property of type 'string' with the unique key 'license'. Cleanup of the main menu: - removed outline from button:active - button paddings/margins - removed "Create map" and "Share url" - renamed buttons "Edit name" / "Edit skin" into "Name" / "Avatar" for better DE support --- front/dist/resources/html/gameCopyright.html | 89 ++++++++++++++++++++ front/dist/resources/html/gameMenu.html | 19 +++-- front/src/Phaser/Menu/MenuScene.ts | 71 +++++++++++++++- 3 files changed, 173 insertions(+), 6 deletions(-) create mode 100644 front/dist/resources/html/gameCopyright.html diff --git a/front/dist/resources/html/gameCopyright.html b/front/dist/resources/html/gameCopyright.html new file mode 100644 index 00000000..b152b65f --- /dev/null +++ b/front/dist/resources/html/gameCopyright.html @@ -0,0 +1,89 @@ + + + diff --git a/front/dist/resources/html/gameMenu.html b/front/dist/resources/html/gameMenu.html index 88c76ca2..f512f0b5 100644 --- a/front/dist/resources/html/gameMenu.html +++ b/front/dist/resources/html/gameMenu.html @@ -6,11 +6,17 @@ * a, button, select{ cursor: url('/resources/logos/cursor_pointer.png'), pointer; } + #gameMenu { + padding-top: 8px; + } #gameMenu button { background-color: black; color: white; border-radius: 7px; - padding-bottom: 2px; + padding: 2px 8px; + } + #gameMenu button:active { + outline: none; } #gameMenu section { margin: 10px; @@ -20,21 +26,24 @@