-
+
-
+ ++
+ Motor
an-/ausschalten +
+ -
+ ++
+ Fahrzeug
auf-/abschließen +
+ -
+ ++
+ Fahrzeug
parken +
+
+ -
+ ++
+ Türen
öffnen/schließen +
+
diff --git a/ReallifeGamemode.Client/Gui/vehiclemenu/main.ts b/ReallifeGamemode.Client/Gui/vehiclemenu/main.ts index 12d0e72d..ef6aceec 100644 --- a/ReallifeGamemode.Client/Gui/vehiclemenu/main.ts +++ b/ReallifeGamemode.Client/Gui/vehiclemenu/main.ts @@ -56,13 +56,9 @@ export default function vehicleMenu(globalData: IGlobalData) { globalData.InMenu = false; mp.gui.chat.show(true); mp.gui.cursor.show(false, false); - mp.game.graphics.stopScreenEffect("FocusIn"); - mp.game.graphics.startScreenEffect("FocusOut", 0, false); return; } else { - mp.game.graphics.stopScreenEffect("FocusOut"); - mp.game.graphics.startScreenEffect("FocusIn", 0, false); - menuBrowser = mp.browsers.new("package://assets/html/vehiclemenu/index.html"); + menuBrowser = mp.browsers.new("package://assets/html/interaction/index.html"); mp.gui.chat.show(false); globalData.InMenu = true; mp.gui.cursor.show(true, true); diff --git a/ReallifeGamemode.Client/assets/css/interaction/style.css b/ReallifeGamemode.Client/assets/css/interaction/style.css new file mode 100644 index 00000000..b86bbf1f --- /dev/null +++ b/ReallifeGamemode.Client/assets/css/interaction/style.css @@ -0,0 +1,109 @@ +html { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +*, *:before, *:after { + -webkit-box-sizing: inherit; + box-sizing: inherit; +} + +html, body { + height: 100vh; + width: 100vw; +} + +body { + margin: 0; + position: relative; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; +} + +main { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + position: absolute; + bottom: 15vh; +} + +.vehicle-menu { + background-color: rgba(0, 0, 0, 0.5); + list-style: none; + margin: 0; + padding: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + padding: .5em; + border-radius: 3px; + color: white; +} + +.vehicle-menu__item { + width: 8em; + padding: .5em; + border-radius: 3px; +} + +.vehicle-menu__item:not(:last-child) { + margin-right: .5em; +} + +.vehicle-menu__item:hover { + background-color: rgba(0, 0, 0, 0.125); +} + +.vehicle-menu__icon { + max-width: 3em; + height: auto; + -ms-flex-item-align: center; + -ms-grid-row-align: center; + align-self: center; +} + +.vehicle-menu__text { + text-align: center; + margin-top: .5em; +} + +.flex--column { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +/*# sourceMappingURL=style.css.map */ \ No newline at end of file diff --git a/ReallifeGamemode.Client/assets/css/interaction/style.css.map b/ReallifeGamemode.Client/assets/css/interaction/style.css.map new file mode 100644 index 00000000..3d23dda6 --- /dev/null +++ b/ReallifeGamemode.Client/assets/css/interaction/style.css.map @@ -0,0 +1,9 @@ +{ + "version": 3, + "mappings": "AAAA,AAAA,IAAI,CAAC;EAAE,UAAU,EAAE,UAAU;CAAI;;AACjC,AAAA,CAAC,EAAE,CAAC,AAAA,OAAO,EAAE,CAAC,AAAA,MAAM,CAAC;EAAE,UAAU,EAAE,OAAO;CAAI;;AAE9C,AAAA,IAAI,EAAE,IA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": [ + "style.scss" + ], + "names": [], + "file": "style.css" +} \ No newline at end of file diff --git a/ReallifeGamemode.Client/assets/css/interaction/style.scss b/ReallifeGamemode.Client/assets/css/interaction/style.scss new file mode 100644 index 00000000..591604ae --- /dev/null +++ b/ReallifeGamemode.Client/assets/css/interaction/style.scss @@ -0,0 +1,68 @@ +html { box-sizing: border-box; } +*, *:before, *:after { box-sizing: inherit; } + +html, body { + height: 100vh; + width: 100vw; +} + +body { + margin: 0; + position: relative; + display: flex; + flex-direction: row; + justify-content: center; + + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; +} + +main { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + position: absolute; + bottom: 15vh; +} + +.vehicle-menu { + background-color: rgba(black, .5); + list-style: none; + margin: 0; + padding: 0; + + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: .5em; + + border-radius: 3px; + color: white; + + &__item { + width: 8em; + padding: .5em; + border-radius: 3px; + + &:not(:last-child) { margin-right: .5em; } + &:hover { background-color: rgba(black, .125); } + } + + &__icon { + max-width: 3em; + height: auto; + + align-self: center; + } + + &__text { + text-align: center; + margin-top: .5em; + } +} + +.flex--column { + display: flex; + flex-direction: column; +} \ No newline at end of file diff --git a/ReallifeGamemode.Client/assets/html/interaction/index.html b/ReallifeGamemode.Client/assets/html/interaction/index.html new file mode 100644 index 00000000..c95f86a5 --- /dev/null +++ b/ReallifeGamemode.Client/assets/html/interaction/index.html @@ -0,0 +1,53 @@ + + +
+ + + + + +