Commit Graph

36 Commits

Author SHA1 Message Date
Aotumuri 7092e9c166 Added keybinding configuration. (#548)
## Description:
Added support for customizable keybind settings.

fixes #549

fixed these bug
https://discord.com/channels/1284581928254701718/1363254158341308668
https://discord.com/channels/1284581928254701718/1362159209642459166

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:
aotumuri
2025-05-05 08:40:52 -07:00
kanekane0448 a97a608dce Add Alt + Click hotkey for sending emotes (#408)
## Description:

Allows the player to Alt + Click to send emotes to other players or
themself in order to ease communication.
Of course, the hotkey can be something different. Alt + Click is just a
suggestion.


![image](https://github.com/user-attachments/assets/9762c4f0-f62d-4c39-ba35-468ac3f5ddaa)

## Please complete the following:

- [ x ] I have added screenshots for all UI updates
- [ x ] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [ x ] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

kanekane0448

PS: The new emoji table looks really good!

---------

Co-authored-by: kanekane0448 <no@mail.pls>
2025-04-04 10:15:59 -07:00
Scott Anderson 52f64db6d3 Fix various ESLint violations (#402)
## Description:

Fixes a number of ESLint violations. Although I have tested these
changes through the local dev server, I don't have a high confidence
that the testing is sufficient, as I am new to this codebase. This
change would benefit from heightened scrutiny.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

fake.neo

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-02 18:06:08 -07:00
Evan 8b6895d745 add prettier import plugin 2025-03-31 13:09:27 -07:00
Maeght Loan e926fb5cd5 handle edge case
no accessibilité
2025-03-06 22:06:33 +00:00
Maeght Loan 44de3516e8 fix: laptop pinch-zoom 2025-03-06 20:13:25 +00:00
ilan schemoul 0790c3d818 fix: touch screen should always open menu when touch screen
Previous patch (to choos left click actions) by mistake made touchscreen
by default attack with touch instead of open menu
2025-03-03 22:10:58 +01:00
Bruno Jurković 3d4ea515de refactor: move selection rendering to dedicated UILayer 2025-03-02 23:31:19 +01:00
evanpelle db3f62d0b1 Merge pull request #88 from ilan-schemoul/click
Left click now open menu (double click or shift+click to attack)
2025-03-02 13:38:09 -08:00
NewHappyRabbit d29438ae69 Added hotkey 'C' to center camera on player 2025-03-02 09:29:10 -08:00
ilan schemoul d6b29a655c feat: left click now opens menu (to avoid misclicks), shift+left click is attack
It happens very frequently that I misclick (meant to click on neighbor,
mean to click modal, sensitive touchpad and many others) and ruin my
game (and another player's). So by default left click opens the menu. As
the attack button is in the middle you can just double click to attack.
You can also shift+click to attack.
I have updated the Help modal to document all that + the existing (just
discovered in the code) ctrl+click to open build menu.
2025-03-02 17:56:14 +01:00
Andreas Rey Malissein b992166488 choose attack ratio with shift + scrolling down or up 2025-03-02 02:33:35 +01:00
evanpelle b711ea4975 Merge pull request #71 from NewHappyRabbit/fix-1/2-hotkeys
Added preventDefault to 1/2 hotkeys
2025-02-22 19:16:20 -08:00
NewHappyRabbit c47fe8cc5e Added event.preventDefault() to hotkeys 1/2 2025-02-22 04:13:29 +02:00
Sean Lowe 13a0593689 allow closing the radial or build menu with the esc key 2025-02-21 14:56:19 -07:00
NewHappyRabbit 7ae4f17a35 Decrease power by 10% with hotkey '1', increase by 10% with hotkey '2' 2025-02-20 03:46:43 +02:00
NewHappyRabbit 0769710caa Fixed mouse move bug, where if your cursor is over and UI element it doesn't fire the mouseUp event 2025-02-19 10:45:04 +02:00
Evan d9f2b683d7 add eq for zoom, chagne meta give more bonus large players, don't throw exception when attack self 2025-02-15 14:31:18 -08:00
Evan 40966ca3b9 format all files with prettier 2025-02-12 08:28:15 -08:00
Evan c3a5e58be6 add zoom and pan keyboard shortcuts 2025-02-11 18:01:26 -08:00
Evan 4ee37323f9 format codebase with prettier 2025-02-01 12:05:11 -08:00
Evan 4266bd8a59 mobile UI: show playerInfo when radial menu activated 2025-02-01 12:05:11 -08:00
evanpelle 2771d3d432 ctrl + click brings up build menu 2024-12-25 18:45:26 -08:00
evanpelle dbf288d2c4 hide build menu when click on map on mobile 2024-12-25 17:38:49 -08:00
evanpelle fbdf26cff8 alt-r to redraw graphics 2024-12-25 17:07:11 -08:00
Evan 17d75324f8 hit space bar for alternate view 2024-12-20 20:31:24 -08:00
Evan 8f3f9ee84a add name of player under cursor in top right 2024-11-30 19:13:20 -08:00
evanpelle 4059b53904 fix but where touch input breaks on mobile (I think) 2024-10-08 19:43:15 -07:00
evanpelle 10e3361966 add donate icon 2024-10-06 19:19:21 -07:00
evanpelle 851e12613a create basic radial menu 2024-09-26 16:24:58 -07:00
evanpelle df99457867 fix left click lost after right click bug 2024-09-20 19:50:35 -07:00
evanpelle c47aa9b949 input handler only checks canvas updates (prevents accidental attacks when clicking a button.) 2024-09-20 13:19:43 -07:00
evanpelle f3307300ef refactored GameImpl into multiple files 2024-09-17 19:49:16 -07:00
evanpelle 7c5ebaf456 created right click handler, refacter renderers 2024-09-16 17:09:01 -07:00
evanpelle 2f626bcc39 mobile friendly 2024-09-16 09:42:23 -07:00
evanpelle 05f55c490f First Commit 2024-08-04 19:51:23 -07:00