hydroflame
d274e21a10
Merge pull request #2596 from MartinFournier/feature/ns-ui-styles
...
Add ns.ui.[getStyles, setStyles, resetStyles]
2022-01-12 19:18:54 -05:00
Martin Fournier
9b638b911f
Add ns.ui.[getStyles, setStyles, resetStyles]
...
Adds three Netscript functions to manipulate the user's styles like the
player can with theme.
2022-01-12 18:34:05 -05:00
nickofolas
e7983552dc
Fix formatting for empty editor splash
2022-01-12 12:15:03 -06:00
nickofolas
415f922a37
Add focus arg to Singularity functions
2022-01-12 12:03:49 -06:00
Jeffrey A. Robinson
bedea0ac73
Add support for the mv command in NS
2022-01-12 09:53:54 -08:00
Andriy Mykhaylyk
d2ea934c8e
change defs
2022-01-12 13:51:21 +01:00
daan flore
66fbec5365
Cleanup of code
2022-01-10 22:33:50 +01:00
daan flore
51edac414e
Adding IPort interface and correcting return value of getPortHandle in NetscriptDefinitions file
2022-01-10 22:31:30 +01:00
Russell Stringer
a16fad7f01
Add documentation about using PID for some ns functions
...
Fixes #2219
2022-01-10 16:23:06 -05:00
Russell Stringer
3276cf3c32
Add documentation for NetscriptPort to NetscriptDefinitions
2022-01-10 16:23:06 -05:00
Russell Stringer
26ae4345cf
Try to clear up confusing documentation for TIX.getOrders()
...
api-documenter won't generate property lists for [key: string]: type
interfaces, so I tried to put explanations and @links in the appropriate
remarks sections.
Since the list of stock symbols is known, this could also be fixed by
setting each symbol as an optional property of the StockOrder interface
Fixes #2269
2022-01-10 16:23:06 -05:00
Russell Stringer
2989306ac8
Add (in GB) note to params/return values documentation where missing
...
fixes #2403
2022-01-10 16:23:06 -05:00
Russell Stringer
cfa1b9e236
adds missing bitnode mults to definitions file
...
fixes #2424
2022-01-10 16:23:06 -05:00
zeddrak
02e9ae6e8e
Commit Crime Returns updated
...
Updated the text for the return value of commitCrime to match the description (and not the create programs hold-over)
2022-01-10 02:58:16 -08:00
Olivier Gagnon
d8a5f5b03c
many fixes
2022-01-09 15:24:32 -05:00
nickofolas
357258261a
Use codeblocks for null
2022-01-08 14:59:28 -06:00
nickofolas
a971921417
Document null duration for toasts
2022-01-08 14:56:29 -06:00
hydroflame
7633f271db
Merge pull request #2265 from TheMas3212/fix-2119
...
Fix 2119
2022-01-08 13:56:05 -05:00
hydroflame
ff15d2d730
Merge pull request #2451 from neuralsim/fixSyntaxHighlighting
...
fixed syntax highlighting (don't highlight partial tokens/keywords)
2022-01-08 13:30:35 -05:00
Olivier Gagnon
fb90e21a31
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2022-01-08 13:19:44 -05:00
Olivier Gagnon
5a1cabdb34
typo
2022-01-08 13:19:35 -05:00
Christopher
ad0b73aaee
fixed syntax highlighting (don't highlight partial tokens/keywords)
2022-01-07 19:19:03 -06:00
Jens
ede37767ac
Doc formatting updates & fixing a few spelling errors.
2022-01-06 20:52:15 -08:00
hydroflame
c722ff5982
Merge pull request #2373 from MartinFournier/feature/mem-verbose
...
Add detailed ram cost to mem command
2022-01-06 11:25:41 -05:00
tigercat2000
6e96428643
Update print and tprint signatures to match code
...
In https://github.com/danielyxie/bitburner/pull/1380 , print() and
tprint() were both changed to allow for variadic arguments, but this
wasn't documented in NetscriptDefinitions.d.ts.
2022-01-06 04:13:36 -08:00
Martin Fournier
4b06bdd89c
Add detailed ram cost to mem command
2022-01-05 16:41:48 -05:00
Martin Fournier
c9ca1e9d37
Add ns.ui.setTheme() and ns.ui.resetTheme()
2022-01-04 20:33:18 -05:00
Olivier Gagnon
4860d6dc83
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2022-01-04 19:09:38 -05:00
Olivier Gagnon
c59a267437
change sf4
2022-01-04 19:09:34 -05:00
Woody Lam
d7cd5b0d96
Fix #2230 typo (again)
2022-01-04 22:40:41 +00:00
hydroflame
0d02ce6308
Merge pull request #2326 from MartinFournier/feature/editor-wordwrap-option
...
Add wordWrap option to Monaco
2022-01-04 12:54:50 -05:00
Martin Fournier
f0161367af
Add wordWrap option to Monaco
2022-01-04 09:41:44 -05:00
Dexalt142
914b06ec88
feat (editor theme): atom one dark theme
2022-01-04 18:39:09 +07:00
Olivier Gagnon
dfae337d26
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2022-01-03 15:49:05 -05:00
hydroflame
69ed320b93
Merge pull request #2287 from daanflore/dev
...
Saw in vscode that some typedefenitions where not the same as how they work in the game
2022-01-03 15:44:08 -05:00
hydroflame
8e0b5e3ecd
Merge pull request #2288 from pan-kuleczka/dev
...
ns.hackAnalyze definition fix to match markdown
2022-01-03 15:43:48 -05:00
Andriy Mykhaylyk
38923af436
fix ns.run args type definition
2022-01-03 16:10:22 +01:00
daan flore
8c851b577a
Adding correct types at run args command
2022-01-02 20:40:57 +01:00
daan flore
74ee7f371d
String value should also be possible to write
2022-01-02 19:24:16 +01:00
pan-kuleczka
62c19c9078
hackAnalyze definition fix to match markdown
2022-01-02 18:56:52 +01:00
daan flore
f8607ce73e
Adding dorgotten typescript defenitions to file
2022-01-02 18:54:11 +01:00
Olivier Gagnon
1e0e9f7bd7
change button text
2022-01-02 11:55:06 -05:00
hydroflame
a1ec54ff90
Merge pull request #2241 from billyvg/fix/vim-save
...
fix(editor): Fix vim mode quit and add `wq`
2022-01-02 11:40:40 -05:00
hydroflame
a6be7ecc3e
Merge pull request #2243 from TheMas3212/dev
...
Add Function Call signatures to ns.kill so typescript is able to call ns.kill correctly
2022-01-02 11:39:56 -05:00
Brandon Bothell
dd4b548917
docs: comma for good measure
2022-01-02 02:40:03 -05:00
TheMas3212
6251678532
clear currentScript to null not undefined
2022-01-02 02:16:32 +11:00
TheMas3212
a20dd47ec6
fixes #2119 close open scripts that exist on deleted servers
...
this prevents a crash by trying to open the script editor with a script
open that exists on a server that has been deleted
this is achieved by filtering the list of open scripts whenever the
editor is opened and removing any that exist on a server that has been
deleted
it also handles the case of the selected script being one that was
removed in which case it defaults to selecting the first script
2022-01-02 02:10:10 +11:00
TheMas3212
8707dc7079
remove extra function signature for ns.kill()
2021-12-31 23:33:23 +11:00
TheMas3212
e3e1770439
Fix Typedef for getScriptIncome/getScriptExpGain
...
Current Typedef does not allow using the run with no arguments for
totals versions
2021-12-31 23:31:46 +11:00
TheMas3212
31ed5d8f64
Add Function Call signatures to ns.kill so typescript is able to call
...
ns.kill(pid)
previously it will fail to compile due to not providing a host argument
2021-12-31 10:58:56 +11:00
Billy Vong
38366e45db
fix(editor): Fix vim mode quit and add "wq"
...
This changes `:q` to be quit (w/o saving) and added `:wq` to save *and* close.
2021-12-30 13:14:54 -05:00
Olivier Gagnon
04f2cfe522
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2021-12-29 02:04:28 -05:00
Olivier Gagnon
0fc95e6215
text editor improvements
2021-12-29 02:04:24 -05:00
hydroflame
cc4f07d037
Merge pull request #2175 from Xynrati/patch-3
...
Removing old comment about removed parameter
2021-12-28 11:59:41 -05:00
Alexander Morland
aaf1ad4ae5
Fixed typo
...
needed to fix docs
2021-12-28 17:27:21 +01:00
Xynrati
26ab62eea6
More comments to be removed
2021-12-28 08:04:50 -08:00
hydroflame
9f9ce40ef0
Merge pull request #2179 from antonvmironov/fix-CorporationInfo.state
...
Fix CorporationInfo.state
2021-12-28 10:37:42 -05:00
ReeseJones
1087db9f33
changed setting to selling in getSaleGain
2021-12-26 14:35:46 -08:00
Anton Mironov
3dd818cb7b
Updating doc for CorporationInfo.state
...
Now includes a list of possible values.
2021-12-24 17:35:23 +01:00
Hedrauta
3eedd9df88
empty host = current host
2021-12-24 00:23:38 +01:00
hydroflame
b33af9df20
Merge pull request #2150 from Hedrauta/new-Editor-theme_dracula
...
New Editor Theme: Dracula ( from VSCode )
2021-12-23 13:36:16 -05:00
Hedrauta
693c6480a0
as close as possible
...
Sadly, i can't color specific variables, because of monaco itself.
Did my best for this. 😉
2021-12-23 07:27:58 +01:00
TheMas3212
e0aaa383a4
modify BasicHGWOptions definition to mark threads parameter as optional
...
this is used by hack, grow and weaken all of which dont require it to be defined
2021-12-23 14:42:06 +11:00
hydroflame
bfdfee2a68
Merge branch 'dev' into mychanges
2021-12-22 16:16:24 -05:00
Olivier Gagnon
d2d6c33fc8
mychanges
2021-12-22 16:15:56 -05:00
hydroflame
fba2265cce
Merge pull request #2118 from Icehawk78/feat/add-ns2-examples-docs
...
Add ns2 examples to the netscript docs
2021-12-22 15:21:06 -05:00
Nicholas Galauxy
35cfa9492e
Fix unintended spacing change
2021-12-22 13:38:32 -06:00
Nicholas Galauxy
ed4d4d091c
Update docs to include NS2 examples
2021-12-22 13:36:44 -06:00
hydroflame
dbf8c788e0
Merge pull request #2111 from mikomyazaki/2027-documentation-updates
...
Documentation updates
2021-12-22 14:30:14 -05:00
Xynrati
21ac94dbb3
Add ns2 example for scp
2021-12-22 09:38:21 -08:00
Andrew Cooper
c2e5c9f371
Documentation updates to getgrowtime, gethacktime, getweakentime, hack, hackanalyze and weaken.
2021-12-22 17:25:09 +00:00
hydroflame
7260d5fe35
Merge pull request #2100 from mikomyazaki/empty-editor-to-terminal
...
Closing the final script in your editor will take you to the terminal
2021-12-22 12:17:32 -05:00
Hedrauta
7f3f5c7648
commitCrime will return milliseconds 😉
2021-12-22 02:00:22 +01:00
Andrew Cooper
f2bdf00aba
Closing the final script in your editor will take you to the terminal.
2021-12-22 00:26:01 +00:00
Olivier Gagnon
b2b682fa04
fix editor not loading files
2021-12-21 13:44:18 -05:00
Olivier Gagnon
41593e0dce
fix editor not loading
2021-12-21 12:02:06 -05:00
hydroflame
79eb2f7e0b
Merge pull request #2092 from theit8514/script-focus-v2
...
Add focus parameter to workForCompany/workForFaction
2021-12-21 11:02:26 -05:00
hydroflame
c1c7131545
Merge branch 'dev' into feat/open-multiple-files-from-cli
2021-12-21 11:02:06 -05:00
hydroflame
81e3f2afd1
Merge pull request #1986 from billyvg/feat/add-vim-command
...
feat: add `vim` terminal command
2021-12-21 11:00:33 -05:00
hydroflame
26106fa71d
Merge pull request #2077 from MartinFournier/feature/get-theme
...
Add ns.ui.getTheme() api function
2021-12-21 10:57:58 -05:00
hydroflame
4be5e45740
Merge pull request #2073 from billyvg/fix/window-resizing
...
fix: Update editor height when resizing window
2021-12-21 10:56:51 -05:00
hydroflame
7a9e8936ee
Merge pull request #2083 from 65-7a/txt-file-editor-patch
...
Script editor fixes for .txt files
2021-12-21 10:49:08 -05:00
theit8514
d873f7279b
Add focus parameter to workForCompany/workForFaction
...
Defaults to true to keep previous behavior.
2021-12-21 08:13:18 -05:00
Dan
8ccb128e6f
docs(ns.getPlayer): update doc to have ram cost
...
Resolves danielyxie/bitburner#2084
2021-12-21 01:44:32 +00:00
65-7a
a6aebd4a29
Change model to plaintext for txt files
2021-12-21 10:35:03 +11:00
65-7a
56e540802b
Disable RAM calculation for txt files
2021-12-21 10:21:22 +11:00
Billy Vong
bb2f8e883c
feat: Support opening multiple files from command line
2021-12-20 16:55:17 -05:00
Billy Vong
d30edc7f59
feat: Add vim
terminal command
2021-12-20 16:20:50 -05:00
Olivier Gagnon
b57ac45698
doc
2021-12-20 15:59:46 -05:00
Olivier Gagnon
41a7109baa
fix
2021-12-20 15:48:26 -05:00
Martin Fournier
65d0877edc
Add ns.ui.getTheme() api function
2021-12-20 14:37:10 -05:00
Billy Vong
63891351be
remove TODO
2021-12-20 14:05:59 -05:00
Billy Vong
60749eefa7
remove console + format
2021-12-20 14:05:22 -05:00
Billy Vong
ee177393fa
fix: Update editor height when resizing window
2021-12-20 14:04:42 -05:00
Olivier Gagnon
5dc9ac040a
toast time config
2021-12-20 13:29:04 -05:00
Billy Vong
3fd904ff87
format
2021-12-20 10:48:32 -05:00
Billy Vong
6641ca9c73
fix ts
2021-12-20 10:45:44 -05:00
Billy Vong
517066a710
fix missed conflicts
2021-12-20 10:44:17 -05:00
Billy Vong
d372166c8b
Merge branch 'dev' into feat/add-vim-mode
2021-12-20 10:36:58 -05:00
Martin Fournier
e60996b86c
Focus editor when opening or changing tabs
2021-12-20 07:15:53 -05:00
Martin Fournier
08a4a1649f
Linting ScriptEditor
2021-12-20 07:01:34 -05:00
BuildTools
302af48be4
Fixed merge conflict
2021-12-20 01:44:51 -06:00
BuildTools
6d90025370
Adapted PR #2055 to the refacted script editor code
2021-12-20 01:40:01 -06:00
BuildTools
e5c4c8f64b
Rebased
...
Added hostname to tab name
Removed -tas arg from the rm command
2021-12-20 01:40:01 -06:00
BuildTools
cbfdfa5753
Removed testing log statements
2021-12-20 01:40:01 -06:00
BuildTools
3120d97cfa
Update
2021-12-20 01:40:01 -06:00
BuildTools
6dc7dc42c5
resolved merge issue
2021-12-20 01:39:20 -06:00
Dan
6ec7fcb9fa
refactor(keybinds): change editor save keybind S
...
We need to stop the event from bubbling up to the browser and opening a
'save html' window to keep support in the browser, other than that,
straight forward change to swap keybinding to 'S' for saving in the
editor.
Resolves danielyxie/bitburner#2053
2021-12-20 04:34:27 +00:00
hydroflame
82f6bbee13
Merge pull request #2046 from MartinFournier/fix/tests
...
Fix jest unit tests & add a github action workflow to build, test & lint
2021-12-19 22:35:25 -05:00
Jordan Turner
f678574a6c
made it more clear what nuke exe does
2021-12-19 13:47:34 -07:00
Martin Fournier
3b99da8474
Lint current problems & fix ignore paths
2021-12-19 13:17:44 -05:00
Olivier Gagnon
02605090df
v1.2.0
2021-12-18 16:28:09 -05:00
hydroflame
853125009b
Merge pull request #1977 from Rez855/feature/multi-tab-script-editor
...
Added the ability to open multiple script files at a time
2021-12-18 14:53:35 -05:00
hydroflame
d5201885aa
Merge pull request #1997 from pobiega/fix/nformat-return-type
...
ScriptEditor NetScriptDefinitions: nFormat should return string
2021-12-18 14:40:20 -05:00
BuildTools
59498f780a
Small css tweaks
2021-12-18 07:11:59 -06:00
Robin Rexstedt
87d8f67df1
make nFormat return a string
2021-12-18 13:12:23 +01:00
BuildTools
2265f797c4
Added the ability to open multiple script files at a time
...
Fixed a bug where ram would stay the same when switching between scripts
Fixed bug where updating ram could cause the GUI to crash
The editor will now go to the last edited line when switching tabs.
Tidied up the script editor UI
2021-12-18 04:10:25 -06:00
Adraxas
069d76df25
Fix NS.exec signature
2021-12-17 18:40:00 -08:00
Billy Vong
b3f9380ebd
prettier
2021-12-17 12:56:48 -05:00
Billy Vong
6fb5565b08
remove unused code
2021-12-17 12:48:50 -05:00
Billy Vong
fb5d374279
feat: Add vim mode to script editor
...
This adds an option to turn on vim mode using the `monaco-vim` library.
2021-12-17 12:34:00 -05:00
Martin Fournier
217b94d0a0
Fix #1863 : Add getHashUpgrades hacknet function
...
Adds a new functions ofr hacknet servers that returns the list of
available hash upgrades.
2021-12-17 05:35:17 -05:00
Olivier Gagnon
33e918fc49
doc
2021-12-16 15:28:53 -05:00
Olivier Gagnon
e16fba2418
scan doc
2021-12-16 15:21:00 -05:00
Olivier Gagnon
5718800b91
doc update
2021-12-16 12:41:18 -05:00
Olivier Gagnon
6ef99e138c
fix BN exploit
2021-12-16 12:40:24 -05:00
Olivier Gagnon
3c67da02f3
typo
2021-12-16 12:33:44 -05:00
Olivier Gagnon
16431f1031
minor tweak to doc
2021-12-16 12:13:00 -05:00
hydroflame
2da9f87031
Merge pull request #1895 from TheCoderJT/editingGitDocs
...
Editing git docs
2021-12-16 12:11:05 -05:00
Olivier Gagnon
91c7811a36
format
2021-12-16 12:04:09 -05:00
Jordan Turner
e1e032b61f
added semi colons they were missing at the end of some examples
2021-12-15 22:15:29 -07:00
Jordan Turner
db9b0a8ec8
added await before the ns2 method calls
2021-12-15 22:01:44 -07:00
Jordan Turner
3926913790
updated appearach of example sections based on alainbryden suggestion
2021-12-15 21:47:18 -07:00
theit8514
2e133bcf0a
Fix return type of isFocused
2021-12-15 20:55:47 -05:00
theit8514
d59601f848
Add return value and code style cleanup
2021-12-15 20:48:19 -05:00
theit8514
ad57f3dc73
Work functions do not take focus
...
setFocus readded and updated to send the user to the Work page if focusing.
2021-12-15 20:33:48 -05:00
Jordan Turner
632e1f70f3
added rs to backricks to color code syntax
2021-12-15 10:25:54 -07:00
Jordan Turner
687682fcbd
added syntax useage to github ns page
2021-12-15 10:10:32 -07:00
Olivier Gagnon
e5b4dd8e90
Files should be saved on the server that opened them.
2021-12-13 20:08:58 -05:00
Olivier Gagnon
7b8e486e3a
fix typo in doc
2021-12-13 15:50:01 -05:00
Olivier Gagnon
11ba8c91be
getServer of hacknet doesn't return undefined
2021-12-12 13:47:05 -05:00
Olivier Gagnon
394a286646
formulas for ascension
2021-12-09 12:52:51 -05:00
Olivier Gagnon
c915cd06d8
corp doc
2021-12-08 20:03:22 -05:00
Olivier Gagnon
14317628e6
formulas doc
2021-12-08 19:19:07 -05:00
Olivier Gagnon
5a15df9ce7
rename the functions I created 2 minutes ago.
2021-12-08 19:03:33 -05:00
Olivier Gagnon
6eba92b36c
rename the functions I created 2 minutes ago.
2021-12-08 18:41:49 -05:00
Olivier Gagnon
2af57cb01e
formulas for gang stuff
2021-12-08 18:19:30 -05:00
Olivier Gagnon
d01d75606a
few bugfix
2021-12-08 17:39:01 -05:00
Olivier Gagnon
737276e855
corp api
2021-12-03 23:06:04 -05:00
Olivier Gagnon
3c27893aa3
v1.1.0
2021-12-03 16:14:13 -05:00