Commit Graph

6375 Commits

Author SHA1 Message Date
nickofolas
a954095519 Prevent FactionRoot options from extending beyond the window 2022-01-21 16:15:41 -06:00
nickofolas
6018f2280d Research modal UI pass 2022-01-21 16:08:02 -06:00
jamie-mac
8963842276 Fixes black matching 0 on the roulette table 2022-01-21 21:28:25 +00:00
jamie-mac
60c354622d Fixes incorrect result being detected on the roulette table
Resolves #2382
Resolves #2086
2022-01-21 20:42:09 +00:00
nickofolas
844b228596 Align overview page 2022-01-21 14:32:02 -06:00
nickofolas
a904c362d9 Office UI alignment 2022-01-21 14:32:02 -06:00
nickofolas
542f164930 Align warehouse buttons 2022-01-21 14:32:02 -06:00
smolgumball
90e855053d Merge branch 'dev' into add-ns-getRecentScripts 2022-01-21 13:13:18 -07:00
Xi-Lin Yeh
935f4718e0 Fix type in delete function 2022-01-21 08:52:53 -08:00
lethern
a96053a82b
Aug info: fixed typo 2022-01-21 15:51:31 +01:00
Kyle Hargraves
b7604709e5 NetscriptDefinitions: fix jsdoc for Corp research functions 2022-01-21 07:37:16 -06:00
Kyle Hargraves
267a7144cb Fix type of CrimeStats.name 2022-01-21 07:32:39 -06:00
Martin Fournier
6dba1db3c9 Display bonus time in sleeve detailed stats panel
Also adds a field to modify the stored cycles in the dev menu.
2022-01-21 07:50:41 -05:00
Terrana
f2c4109211
Add ns.printf function
Behaviour is consistent with that of tprintf versus tprint and
should be equivalent to ns.print(ns.sprintf(...))
2022-01-21 12:08:47 +00:00
Olivier Gagnon
07fe3c1906 update scam msg 2022-01-20 23:53:33 -05:00
Olivier Gagnon
a3c599e6c5 update to prevent scam 2022-01-20 23:43:19 -05:00
nickofolas
1a8a24587f Ensure that the proper editor is updated by syncing 2022-01-20 17:45:54 -06:00
Martin Fournier
5c0d76828f Add ID to ThemeEditorButton 2022-01-20 18:43:36 -05:00
Martin Fournier
a26b9c8dcf Add theme browser page accessible from game options
Removed the themes buttons that were in the ThemeEditorModal and only
left a "Revert to Default" button along with a link to the ThemeBrowser
page.

Split off the buttons into reusable components since they are now used
in two pages.

Display the themes in big cards with a zoomable screenshot. Applying the
theme now shows a toast with an option to undo the action.

The snackbar now allows ReactNode instead of only strings.

- Add link with details on how to create a new theme in the game.
- Add link to the theme-sharing discord channel.
- Add icons to the theme & style buttons in GameOptions
- Add "Theme Editor" button to ThemeBrowser
- Add "Style Editor" button to ThemeBrowser
- Move Styles related files into Themes folder
- Includes a modal that shows a bigger version of the screenshot.
- Change Snackbar to allow for ReactNode as the message
2022-01-20 18:41:49 -05:00
Martin Fournier
61d6e43b37 Add theme screenshots & make some fields required
- Description, Name & Author is now mandatory
- Add screenshots
- Add dist/images to electron build
2022-01-20 18:41:49 -05:00
Martin Fournier
a9e2e35446 Move theme related things into its own subfolder
This will make contributions easier and less prone to conflicts.
2022-01-20 18:41:48 -05:00
Martin Fournier
aae3851d59 Add webpack file-loader to handle images
It lets us bundle static files such as images.

Allows us to `imports img from "./img.png"` to retrieve an image's path.
Note that we'll have to add other entries in the global.d.ts file if we
want to handle other extensions than .png.

Adds mocks to Jest tests so that we don't fail tests when loading static
assets.
2022-01-20 18:41:48 -05:00
nickofolas
a5ad97f47d Remove unnecessary editor code 2022-01-20 17:28:19 -06:00
nickofolas
99ef71de4a Update prompt message content 2022-01-20 17:14:38 -06:00
SagePtr
32ba81883f Force achievements recalculation on bitnode completion 2022-01-21 00:04:47 +02:00
nickofolas
bc50f5180a Refactor 2022-01-20 15:48:17 -06:00
nickofolas
b4a78c26f3 Implement editor tab actions 2022-01-20 15:48:16 -06:00
Olivier Gagnon
f7d18efaf6 Merge branch 'dev' of github.com:danielyxie/bitburner into dev 2022-01-20 16:14:35 -05:00
Olivier Gagnon
77f525c98c rm blob caching 2022-01-20 16:11:48 -05:00
Xi-Lin Yeh
861fcf70c4 Clean invocation of get/delete 2022-01-20 09:39:50 -08:00
hydroflame
fd530ad779
Merge pull request #2704 from Meowdoleon/patch-1
Declaring the script variable in the NS2 example
2022-01-20 12:25:04 -05:00
hydroflame
ca7b8068ea
Merge pull request #2713 from JohnnyUrosevic/dev
Change "import" to "important" in hackers-starting-handbook.lit
2022-01-20 12:24:45 -05:00
hydroflame
0ff9ff87d1
Merge pull request #2715 from JosephDavidTalbot/dev
Fixed Formatting Issue with Coding Contract Documentation
2022-01-20 12:24:31 -05:00
hydroflame
51efb0b72d
Merge pull request #2720 from MartinFournier/feature/add-version-title
Add game version in document.title
2022-01-20 12:24:16 -05:00
Martin Fournier
6e908814db Add game version in document.title
Also add [dev] prefix when in development mode.
2022-01-20 09:26:07 -05:00
Xi-Lin Yeh
5386f8e027 Commonalize Api-server response handling
- Fixed issue with error headers
- Aggregated response handling
2022-01-20 00:14:42 -08:00
Xi-Lin Yeh
4a3ee95b63 Enhanced API Server interface
- Used restful patterns for handling server calls (GET/PUT/DELETE)

- Utilized Server interface for saves rather than reimplementing code

- Exposed operations for getting codebase of scripts on the home server and deleting files.

- Added a common response structure
2022-01-20 00:03:07 -08:00
Joe
f28dfcf3ba Merge branch 'dev' of https://github.com/JosephDavidTalbot/bitburner into dev 2022-01-19 15:35:01 -06:00
Joe
5952f01885 Fixed Coding Contract Documentation
The table wasn't displaying. Put a misplaced | back where it should be. Should work fine now.
2022-01-19 15:34:48 -06:00
Joe
b63bb3f1e6 Fixed the Coding Contracts docs formatting
The table wasn't displaying, and one of the lines was out of place. This should probably fix it.
2022-01-19 15:26:10 -06:00
Johnny Urosevic
81db1b0a97
Change "import" to "important" 2022-01-19 13:00:59 -08:00
smolgumball
1a6300b287 Cleanup @usage docs 2022-01-19 13:32:07 -07:00
Meowdoleon
c5bf58a3eb
Declaring the script variable in the NS2 example
Small change to declares the script variable in the NS2 example.
2022-01-19 13:58:15 -05:00
pigalot
5c7ac9ab8e Fix for corp product cost 2022-01-19 18:44:48 +00:00
lethern
61cea12ca2
purchaseServer: improved error message for ram > maxRam 2022-01-19 19:09:33 +01:00
smolgumball
74e2acfa6f Add ns.getRecentScripts() 2022-01-19 00:04:48 -07:00
hydroflame
34f18a6000
Merge pull request #2695 from SagePtr/patch-1
Remove console spamming from CalculateShareMult
2022-01-19 01:53:15 -05:00
Sage Pointer
5fc7993dff
Remove console spamming from CalculateShareMult 2022-01-19 02:47:51 +02:00
phyzical
71ac4aacf1 updated buyback and sells functions docs 2022-01-19 08:25:12 +08:00
Olivier Gagnon
53727f6222 typo 2022-01-18 19:20:16 -05:00