Commit Graph

348 Commits

Author SHA1 Message Date
Snarling f05df0659d Improve tail window buttons 2022-04-23 16:48:48 -04:00
hydroflame 40febcf22e Merge pull request #3488 from Snarling/touchScreenTailFix
UI: FIX #3341 Enable touch-clicks in react-draggable
2022-04-18 20:52:09 -04:00
Snarling 5c53b39edc Try to fix formatting? 2022-04-17 17:40:37 -04:00
Snarling 2e7b7c9d86 Enable touch-clicks in react-draggable
Add onTouchEnd events for click functions inside react-draggable. Necessary because react-draggable prevents default click behavior.
2022-04-17 15:57:35 -04:00
nickofolas 9db90709fd Bulk of design overhaul 2022-04-17 12:51:14 -05:00
Heinous Tugboat 492c7012ea Renames SnackbarVariant to ToastVariant, adds enum to ns 2022-04-13 01:54:13 -04:00
hydroflame eee8d3e283 Merge pull request #3381 from HeinousTugboat/htugboat/toast-enum
Adds SnackbarVariant enum
2022-04-13 00:34:09 -04:00
Olivier Gagnon 52e01fc026 fix a few things about getRecentScritps 2022-04-12 14:45:48 -04:00
hydroflame 68abd27d2c Merge branch 'dev' into add-ns-getRecentScripts 2022-04-12 14:21:18 -04:00
nickofolas 4a0998c568 Fix DOM parse warnings 2022-04-09 09:06:32 -05:00
Heinous Tugboat 5b96cedd0c Adds SnackbarVariant enum 2022-04-08 23:46:19 -04:00
nickofolas ed8e1537d6 Initial overhaul work 2022-04-07 11:31:06 -05:00
Olivier Gagnon 48f80f25d6 fmt and lint 2022-04-06 19:30:08 -04:00
BB c7a95ccb2d Fixed eslint warning for unused vars 2022-04-02 13:11:55 +02:00
Olivier Gagnon 1789e1b745 allbuild commit /usr/bin/git 2022-03-29 17:19:14 -04:00
Olivier Gagnon 680081c548 post-grafting changes 2022-03-29 14:09:17 -04:00
hydroflame fb1bce579f Merge pull request #3170 from nickofolas/feature/grafting
[Feature] Grafting
2022-03-29 13:25:41 -04:00
Martin Fournier 2262d6d8dd Add a warning triggered while auto-saves are off
The check auto-save engine loop will show a warning toast if the auto-saves are disabled (at 0s) and not suppressed. This warning includes a button to re-enable them.

Adds a user setting to suppress those warnings.
Adds information to save button tooltip.
2022-03-25 09:18:35 -04:00
nickofolas 5416038fd7 Merge branch 'dev' of github.com:danielyxie/bitburner into feature/grafting 2022-03-23 11:10:18 -05:00
nickofolas 3df3e04f9c Formulas 2022-03-22 17:53:57 -05:00
hydroflame 1c801c5651 Merge pull request #3217 from phyzical/bugfix/dom-nesting-error-with-ul
fix for dom nesting with elements like ul
2022-03-22 10:46:35 -04:00
nickofolas dfca624e35 Merge branch 'dev' of github.com:danielyxie/bitburner into feature/grafting 2022-03-21 11:08:48 -05:00
phyzical 54e8f701a1 change to 100 ms 2022-03-21 20:02:59 +08:00
phyzical 7271f37ec5 added logic to pick up log when its closed via event emotter 2022-03-21 19:56:54 +08:00
phyzical 14b4b08294 fix for dom nesting with elements like ul 2022-03-21 19:17:12 +08:00
Olivier Gagnon 699ae2e967 with SLEEVE_8, fix workForFaction 2022-03-20 23:27:53 -04:00
Olivier Gagnon 10f7d0ebbc fix react error 2022-03-20 21:26:10 -04:00
hydroflame 9922ffb3c2 Merge branch 'dev' into issues/2308 2022-03-20 14:22:32 -04:00
nickofolas d2dd88c5ca Polish some UI 2022-03-19 11:04:15 -05:00
hydroflame 15badafd37 Merge pull request #3184 from nickofolas/improvement/sleeve-and-clash-ui
Sleeve and Territory UI refresh
2022-03-19 11:23:28 -04:00
Jack Haden-Enneking a8064f739e re-add pre tags to support \n in prompt
#2880 was merged after #2968, causing a regression of #2520. This reapplies the small change from #2968 (thank you @phyzical).
2022-03-18 14:13:21 -07:00
Master-Guy 8bf0641d28 Recently changed file 2022-03-18 11:15:51 +01:00
Master-Guy 9373d65a16 Merge branch 'danielyxie:dev' into issues/2308 2022-03-18 11:12:21 +01:00
Master-Guy 9dd933ecee Changed .keyCode to .key for files in "src" 2022-03-18 10:43:56 +01:00
Olivier Gagnon bfa30dcdbb allbuild commit /usr/bin/git 2022-03-17 18:17:19 -04:00
Olivier Gagnon 3cdf0452a4 fix up the new prompt UI 2022-03-17 16:44:44 -04:00
hydroflame 83ef5a940b Merge branch 'dev' into prompt-additions 2022-03-17 15:38:13 -04:00
nickofolas 2524b429ec Merge branch 'dev' of github.com:danielyxie/bitburner into improvement/sleeve-ui 2022-03-16 16:48:13 -05:00
Olivier Gagnon 3aabbb7aaa dont hide int anymore 2022-03-16 15:42:25 -04:00
nickofolas 230d68aab2 Implement common stats row element 2022-03-12 15:49:07 -06:00
BB 2f4d879c16 Trailing whitespace and files not ending with \n are now illegal 2022-03-08 22:51:02 +01:00
BB 2c3e0985c4 Simplified some relative imports 2022-03-06 05:05:55 +01:00
phyzical 1931734694 added pre tags to support \n 2022-02-13 18:49:24 +08:00
Phil 378f67097c Amending NetscriptDefinitions 2022-01-31 18:15:13 +00:00
Phil af43e63415 Blanking Prompt value on close 2022-01-30 14:21:46 +00:00
Phil 08d0b4cbae Adding support for text/select options in Prompt command 2022-01-30 14:06:18 +00:00
smolgumball 2add4e9112 Merge branch 'dev' into add-ns-getRecentScripts 2022-01-26 19:07:02 -07:00
Martin Fournier a47eae8b25 Add function to enable/disable routing
Wraps the toX() functions of the Router to add a check to only run the
function when it is allowed.

The check is used in the import page to prevent user scripts from
redirecting away to a crime or something else.
2022-01-26 03:56:19 -05:00
Martin Fournier 855a4e622d Add Electron preload script to allow communication
Adds a channel to communicate between the main process & the renderer
process, so that the game can easily ship data back to the main process.

It uses the Electron contextBridge & ipcRenderer/ipcMain.

Connects those events to various save functions. Adds triggered events
on game save, game load, and imported game. Adds way for the Electron
app to ask for certain actions or data.

Hook handlers to disable automatic restore

Allows to temporarily disable restore when the game just did an import
or deleted a save game. Prevents looping screens.
2022-01-26 03:56:19 -05:00
Martin Fournier 26432082e2 Add an import save comparison page
This adds a new page reachable from the import save file
options menu. It shows the difference between the current save
and the data that is being imported, for confirmation.

Includes an "automatic" variant, which has different wording for when
Electron decides it has access to a newer version of the game.

While in this screen, the autosave is disabled.

This also adds a new BypassWrapper component around the game's tree.
It allows for content to be displayed without rendering the nested
pages (import, recovery). This prevents player scripts from messing
with the screen.
2022-01-26 03:56:17 -05:00