Commit Graph

30 Commits

Author SHA1 Message Date
Aotumuri 3eccbaa982 Added User Settings Modal (#379)
## Description:

This PR adds a **User Settings** modal accessible from the main UI.

Currently available settings include:
- Toggle for Dark Mode
- Writing Speed Multiplier (slider)
- Bug Count (number input)
-  Troop and Worker Ratio (slider)
-  Left Click to Open Menu
-  Emoji toggle

Settings are saved via `localStorage` and persist across sessions.
There's also a hidden Easter Egg...

https://discord.com/channels/1284581928254701718/1286741605310533653/1355900228712009908
<img width="787" alt="スクリーンショット 2025-03-31 8 40 08"
src="https://github.com/user-attachments/assets/a9943834-cf40-4fa6-b828-06a8476172da"
/>

Fixes #482 

## 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:

<DISCORD USERNAME>
aotumuri
2025-04-14 11:47:50 -07:00
Evan 8b6895d745 add prettier import plugin 2025-03-31 13:09:27 -07:00
Ilan Schemoul 837d59d929 fix: translation broke numbers (#211) 2025-03-10 17:24:36 -07:00
PilkeySEK 9389005e39 Possibly fix the NaN bug (#200)
There's a bug that when using translators in your browser it shows
troops/gold/... as `NaN`, I couldn't get a translator to work to
confirm, but this should work
2025-03-10 13:29:36 -07:00
ilan schemoul f989470cf4 fix: troop ratio different UI and code 2025-03-07 00:18:11 +01:00
ilan schemoul bd8f72421e default 95% soldiers 2025-03-06 01:22:00 +01:00
NewHappyRabbit c057f70c45 UI fixes 2025-03-02 09:29:10 -08:00
Evan a8b6c88c2a add number of troops to attack in control panel 2025-02-20 06:18:54 -08:00
NewHappyRabbit 7ae4f17a35 Decrease power by 10% with hotkey '1', increase by 10% with hotkey '2' 2025-02-20 03:46:43 +02:00
Evan 33cb3a7d0a make pop increase rate yellow or green if increasing/decreasing 2025-02-18 19:43:37 -08:00
Evan d407d45338 fix control panel string error 2025-02-10 20:00:37 -08:00
NewHappyRabbit 85159b228f Fixed the range sliders for Troops and Attack ratio to not go outside of the input container at 100%.
Removed the custom thumb (ball) element and just styled it using CSS.
2025-02-11 01:46:36 +02:00
NewHappyRabbit 54354f7b14 Disabled right-clicks on all in-game UI elements 2025-02-10 06:31:47 +02:00
Evan 921509a23b fix sliders not getting input bug 2025-02-09 13:51:29 -08:00
Evan 5a1295a0da create topbar for mobile 2025-02-01 12:05:11 -08:00
Evan f2d7c34c92 make control panel and events display mobile freindly 2025-02-01 12:05:11 -08:00
Evan ebe50b30e1 make control panel mobile friendly 2025-02-01 12:05:11 -08:00
evanpelle e87139edf6 update controlpanel to use lit 2025-02-01 12:05:11 -08:00
Evan f571f8020d make control panel slighlty wider 2025-02-01 12:05:11 -08:00
evanpelle 4bbb63fd48 move Game updates to GameUpdate.ts 2025-02-01 12:05:11 -08:00
Evan 3e8517363f use GameView in renderers 2025-02-01 12:05:11 -08:00
Evan 722165c401 adding persistent id 2024-12-17 14:30:16 -08:00
Evan aea22f089c make more mobile friendly 2024-11-15 20:28:01 -08:00
Evan 7b1bab1e0f troop/worker slider shows current ratio 2024-11-04 19:17:12 -08:00
Evan d666a398ec control panel dissappears when player dies 2024-11-03 20:29:53 -08:00
Evan 60751150bf added gold, troops, workers slider 2024-11-03 20:11:04 -08:00
Evan e20cd96df4 make manpower addition rate function of total manpower 2024-11-03 12:38:53 -08:00
Evan 4a3131d382 add max troops to control panel 2024-10-31 15:08:39 -07:00
Evan 3ab9f3b617 add troop send amount bar. can full send! 2024-10-30 17:31:01 -07:00
evanpelle c08645a7fe add troop count slider 2024-10-19 20:53:57 -07:00