Commit Graph

100 Commits

Author SHA1 Message Date
hydroflame
1a8b9a96ec
Documentation added ingame (#667) 2023-07-12 17:10:52 -04:00
Snarling
48e7bd6471
CODEBASE: Follow-up for lint rules PR + address some eslint disables (#651) 2023-06-29 13:22:10 -04:00
Aleksei Bezrodnov
1d5a735941
MISC: enforce eslint react checks (#640) 2023-06-26 22:29:44 -04:00
Aleksei Bezrodnov
1af01401d9
UI: Correct behavior of "back" button on faction augs page
Plus router refactoring
2023-06-26 04:24:37 -04:00
Snarling
6732549196
ENUMS: Initial Enum Helper rework + Reorganization (#596) 2023-06-12 00:34:20 -04:00
Snarling
0df984eea0
CODEBASE: Add Jsonable Map and Set types, move player.sourceFiles to a map (#473) 2023-04-18 03:19:45 -04:00
Snarling
6a6043c509
CODEBASE: Add custom useRerender hook (#359) 2023-02-11 13:22:55 -05:00
David Walker
71bae01fd4
BUG: Fix console error about bad ref use. (#278) 2023-01-01 04:10:06 -05:00
omuretsu
2489ec43fe Sidebar tweaks 2022-12-04 23:04:33 -05:00
David Walker
a46d34bd60
UI: Break SidebarRoot into smaller components, and memoize (#246) 2022-12-04 21:05:55 -05:00
David Walker
8d793ea271
Internal refactoring of Router (#241) 2022-12-04 03:14:06 -05:00
David Walker
49f732d1ee
Revert "Revert "Add keycode table and switch to event.code in select places" (#224)" (#242) 2022-12-03 22:56:42 -05:00
David Walker
70fadde222
Revert "Add keycode table and switch to event.code in select places" (#224)
Using code instead of key is strongly warned against at MDN and causes issues with nonstandard layouts:
https://developer.mozilla.org/en-US/docs/Web/API/Element/keydown_event#keyboardevent.code

This also fixes ScriptEditorRoot.tsx, where some code snuck in that
wasn't using *any* of the constants.

This reverts commit 016a9a873fba71388bdbaa1423134fd1f2335a15.
2022-11-26 08:51:09 -05:00
Olivier Gagnon
cbb7f58231 Make the main player object an alias, makes it easier to import 2022-10-09 18:42:14 -04:00
Snarling
91a69d7d8f format & lint 2022-09-27 15:35:40 -04:00
Snarling
83d357e758 commit1 2022-09-27 15:35:40 -04:00
Olivier Gagnon
bb8af88b77 prep v2 2022-07-19 14:21:12 -04:00
Olivier Gagnon
5b8eea66d4 rm some any 2022-07-15 23:34:27 -04:00
Olivier Gagnon
dd7ceeefdd rm a any 2022-07-14 19:02:59 -04:00
Olivier Gagnon
fac6633347 remove so many fields and values used by the old system 2022-07-12 23:13:40 -04:00
ilkecan
9f8c567d4c Add a keyboard shortcut to switch to Options page 2022-06-29 00:33:39 +00:00
Zoë Hoekstra
016a9a873f
Add keycode table and switch to event.code in select places 2022-05-03 15:59:46 +02:00
Undeemiss
001e8f6d06 Removed redPillFlag and minor refactors to MessageHelpers.ts
Removed redPillFlag, replacing its use with appropriate UI checks.
converted MessageFilenames to enum and removed unnecessary type checks.
2022-04-12 20:32:01 -05:00
hydroflame
0e89017794
Merge pull request #3246 from phyzical/refactor-more-key-codes
slice out event key constant refactors
2022-03-30 00:12:36 -04:00
phyzical
c681828ec1 few more event key. constant refactors 2022-03-24 23:09:24 +08:00
nickofolas
dfca624e35 Merge branch 'dev' of github.com:danielyxie/bitburner into feature/grafting 2022-03-21 11:08:48 -05:00
nickofolas
919f8480dd Grafting UI framework 2022-03-18 23:22:21 -05:00
Master-Guy
65832e72d2 Merge branch 'issues/2308' of https://github.com/Master-Guy/bitburner-1 into issues/2308 2022-03-18 10:49:23 +01:00
Master-Guy
9dd933ecee Changed .keyCode to .key for files in "src" 2022-03-18 10:43:56 +01:00
Master-Guy
edd60cff5c Changed .keyCode to .key for files in "src" 2022-03-17 15:29:14 +01:00
nickofolas
a93e2b670f Redesign Create Program UI 2022-03-12 10:59:55 -06:00
hydroflame
5344548740
Merge pull request #2668 from MartinFournier/fix/locked-shortcuts
Shortcuts now check to see if feature is unlocked
2022-01-17 15:53:18 -05:00
hydroflame
2a8a958a7a
Merge pull request #2673 from MartinFournier/feature/sidebar-collapsed-tooltip
Add tooltips on sidebar icons when collapsed
2022-01-17 15:52:13 -05:00
hydroflame
a9a2764d62
Merge pull request #2672 from MartinFournier/fix/sidebar-stays-collapsed
Keep the sidebar opened or closed on reload
2022-01-17 15:52:01 -05:00
Martin Fournier
82fe86820f Change job shortcut test to match sidebar item
I switched it to match the same condition as the sidebar menu item,
which checks for player.companyName, which should be set to the latest
company the player worked at. This can prevent a crash loading the jobs
page with an invalid companyName.

This fixes a problem a user had where the player.companyName was empty
while actually items in player.jobs, but I could not figure out how
to replicate. It may have had something to do with part-time jobs.
2022-01-17 08:08:33 -05:00
Martin Fournier
490da6d374 Add tooltips on sidebar icons when collapsed 2022-01-16 17:11:12 -05:00
Martin Fournier
f9daf5df64 Keep the sidebar opened or closed on reload
Previously, going to a full-width page and heading back to the terminal would default the sidebar to its opened state regardless of what it was before.

Now it stores it in the GameRoot's state and also in the Settings so
that it persists over reloads.
2022-01-16 17:00:06 -05:00
Martin Fournier
a03e47593f Shortcuts now check to see if feature is unlocked
The sidebar now checks if the Player has unlocked the features before using the router to head to the new page.
  - Check added for Bladeburner
  - Check added for Gangs
2022-01-16 11:31:52 -05:00
Martin Fournier
844d518684 Add achievements to base game
- Add a script to generate achievement data from Steamworks API
- Add achievements page with a link in sidebar
- Calculate achievements (1/min) with an engine counter
- Store achievements with a timestamp on unlocked in the PlayerObject
- Add a script to generate monochrome icons from Steam icons
- Add toast when unlocking an achievement
2022-01-08 05:45:32 -05:00
MageKing17
eb137455f5
Allow shortcuts to work while doing unfocused work.
A lot of people thought keyboard shortcuts weren't working because the code to make them stop working was only checking if the player was working without checking if the player was also focused. If doing unfocused work, there's no reason not to allow keyboard shortcuts to keep working.
2021-12-24 21:22:46 -08:00
Dan
2f9eb324b4
fix(shortcut): job shortcut only run when have job
The shortcut was always allowed to run, meaning when the player doesn't
have a job, they were sent to the job screen with no job and lost the
view context/sidebar.

- Add utility method to check if the player 'hasJob', being at least 1
job.
- Check if player has job when the key combination is pressed

Resolves danielyxie/bitburner#2013
2021-12-19 15:20:02 +00:00
Billy Vong
f4ea1ae970 Merge branch 'dev' into fix/prevent-ctrl-alt-j-navigation 2021-12-17 12:39:57 -05:00
Billy Vong
659211e1ff Prevent ctrl+alt+j from navigating to Jobs
This is a browser hot key to open the Chrome Developer Tools.
2021-12-17 12:35:47 -05:00
Olivier Gagnon
99f3566e52 bugfix 2021-12-16 20:09:19 -05:00
Martin Fournier
e8e2760c73 Fix #1880: Show git commit of bundled app 2021-12-16 15:25:59 -05:00
Olivier Gagnon
4460bf1613 fix shortcuts 2021-12-12 14:02:45 -05:00
Olivier Gagnon
faa9b87733 added new mechanic that allows the wd to be stronger 2021-11-20 01:30:45 -05:00
Olivier Gagnon
3ab3106634 build with dev 2021-11-20 00:26:01 -05:00
Olivier Gagnon
4730347330 revert dev meny thingy 2021-11-17 10:59:33 -05:00
Olivier Gagnon
ae9ad4430e Increase rep gains 2 2021-11-17 10:59:15 -05:00