diff --git a/src/client/HelpModal.ts b/src/client/HelpModal.ts index 8de819377..3fb41cc97 100644 --- a/src/client/HelpModal.ts +++ b/src/client/HelpModal.ts @@ -35,43 +35,84 @@ export class HelpModal extends LitElement { - Space + Space ${translateText("help_modal.action_alt_view")} - Shift + left click + +
+ Shift + + +
+
+
+
+
+ ${translateText("help_modal.action_attack_altclick")} - Ctrl + left click + +
+ Ctrl + + +
+
+
+
+
+ ${translateText("help_modal.action_build")} - Alt + left click + +
+ Alt + + +
+
+
+
+
+ ${translateText("help_modal.action_emote")} - C + C ${translateText("help_modal.action_center")} - Q / E + Q / E ${translateText("help_modal.action_zoom")} - W / A / S / D + W A S D ${translateText("help_modal.action_move_camera")} - 1 / 2 + 1 / 2 ${translateText("help_modal.action_ratio_change")} - Shift + scroll down / scroll up + +
+ Shift + + +
+
+
+
+
+
+
+
+
+
+ ${translateText("help_modal.action_ratio_change")} - ALT + R + ALT + R ${translateText("help_modal.action_reset_gfx")} diff --git a/src/client/styles.css b/src/client/styles.css index 9409a90fa..c85b38c60 100644 --- a/src/client/styles.css +++ b/src/client/styles.css @@ -8,6 +8,7 @@ @import url("./styles/layout/container.css"); @import url("./styles/components/button.css"); @import url("./styles/components/modal.css"); +@import url("./styles/components/controls.css"); * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; diff --git a/src/client/styles/components/controls.css b/src/client/styles/components/controls.css new file mode 100644 index 000000000..0bd8d162f --- /dev/null +++ b/src/client/styles/components/controls.css @@ -0,0 +1,80 @@ +.scroll-combo-horizontal { + display: inline-flex; + align-items: center; + gap: 12px; + font-family: sans-serif; + color: white; +} + +.key { + display: inline-block; + padding: 4px 14px; + border-radius: 6px; + background-color: #000; + color: #fff; + font-weight: bold; + box-shadow: 0 2px 0 #444; +} + +.plus { + font-size: 16px; + color: #ccc; +} + +.mouse-shell { + width: 28px; + height: 45px; + border: 2px solid #ccc; + border-radius: 50px; + position: relative; + background: transparent; +} + +.mouse-left-corner { + position: absolute; + top: 0; + left: 0; + width: 50%; + height: 50%; + background-color: #ff4d4d; + border-top-left-radius: 50px; +} + +.mouse-right-corner { + position: absolute; + top: 0; + right: 0; + width: 50%; + height: 50%; + background-color: #ff4d4d; + border-top-right-radius: 50px; +} + +.mouse-wheel { + width: 4px; + height: 8px; + background-color: #ccc; + border-radius: 2px; + position: absolute; + top: 8px; + left: 50%; + transform: translateX(-50%); +} + +#highlighted-wheel { + background-color: #ff4d4d; +} + +.mouse-with-arrows { + display: flex; + align-items: center; + gap: 6px; +} + +.mouse-arrows-side { + display: flex; + flex-direction: column; + gap: 4px; + font-size: 14px; + color: #ccc; +}