From d5be649bbd0e34754f4f064eedf39377257c220b Mon Sep 17 00:00:00 2001 From: danielyxie Date: Mon, 24 Jul 2017 20:06:40 -0500 Subject: [PATCH] Added autocompletion for aliases. Added autocompletion for any number of arguments. Added getServerRam() function --- css/menupages.css | 74 +++--- index.html | 216 ++++++++-------- src/Faction.js | 270 ++++++++++---------- src/NetscriptFunctions.js | 106 ++++---- src/Terminal.js | 276 ++++++++++---------- src/engine.js | 524 +++++++++++++++++++------------------- 6 files changed, 739 insertions(+), 727 deletions(-) diff --git a/css/menupages.css b/css/menupages.css index a86a3aec8..23011b8c8 100644 --- a/css/menupages.css +++ b/css/menupages.css @@ -1,6 +1,6 @@ /* CSS for different main menu pages, such as character info, script editor, etc (but excluding terminal which has its own page) */ - + .generic-menupage-container { height: 100%; padding-left: 10px; @@ -21,7 +21,7 @@ visibility: hidden; white-space: pre; } - + #script-editor-container { position: fixed; padding-top: 10px; @@ -64,7 +64,7 @@ margin-right: 0px; padding-left: 6px; width: 100%; - border: 2px solid var(--my-highlight-color); + border: 2px solid var(--my-highlight-color); } #script-editor-filename-tag { @@ -76,26 +76,26 @@ color: white; } -#script-editor-filename { +#script-editor-filename { background-color: #555; display: inline-block; float: center; resize: none; color: white; margin: 4px; - + padding: 2px; - - border: 2px solid var(--my-highlight-color); - -webkit-box-shadow: + + border: 2px solid var(--my-highlight-color); + -webkit-box-shadow: inset 0 0 8px rgba(0,0,0,0.1), - 0 0 16px rgba(0,0,0,0.1); - -moz-box-shadow: + 0 0 16px rgba(0,0,0,0.1); + -moz-box-shadow: inset 0 0 8px rgba(0,0,0,0.1), - 0 0 16px rgba(0,0,0,0.1); - box-shadow: + 0 0 16px rgba(0,0,0,0.1); + box-shadow: inset 0 0 8px rgba(0,0,0,0.1), - 0 0 16px rgba(0,0,0,0.1); + 0 0 16px rgba(0,0,0,0.1); } #script-editor-status { @@ -108,21 +108,21 @@ height: 80%; width: 100%; margin-left: 6px; - + padding-left: 6px; padding-top: 6px; padding-bottom: 6px; - - border: 2px solid var(--my-highlight-color); - -webkit-box-shadow: + + border: 2px solid var(--my-highlight-color); + -webkit-box-shadow: inset 0 0 8px rgba(0,0,0,0.1), - 0 0 16px rgba(0,0,0,0.1); - -moz-box-shadow: + 0 0 16px rgba(0,0,0,0.1); + -moz-box-shadow: inset 0 0 8px rgba(0,0,0,0.1), - 0 0 16px rgba(0,0,0,0.1); - box-shadow: + 0 0 16px rgba(0,0,0,0.1); + box-shadow: inset 0 0 8px rgba(0,0,0,0.1), - 0 0 16px rgba(0,0,0,0.1); + 0 0 16px rgba(0,0,0,0.1); } /* Active scripts */ @@ -301,16 +301,16 @@ margin: 6px; padding: 6px; width: 85%; - border: 2px solid var(--my-highlight-color); - -webkit-box-shadow: + border: 2px solid var(--my-highlight-color); + -webkit-box-shadow: inset 0 0 8px rgba(0,0,0,0.1), - 0 0 16px rgba(0,0,0,0.1); - -moz-box-shadow: + 0 0 16px rgba(0,0,0,0.1); + -moz-box-shadow: inset 0 0 8px rgba(0,0,0,0.1), - 0 0 16px rgba(0,0,0,0.1); - box-shadow: + 0 0 16px rgba(0,0,0,0.1); + box-shadow: inset 0 0 8px rgba(0,0,0,0.1), - 0 0 16px rgba(0,0,0,0.1); + 0 0 16px rgba(0,0,0,0.1); } .hacknet-node-button-div a { @@ -380,7 +380,7 @@ #faction-donate-div-wrapper { float: left; border: 2px solid #333; - padding: 14px 6px 4px 6px; + padding: 14px 6px 4px 6px; margin: 6px; } @@ -390,7 +390,7 @@ margin: 8px; } -#faction-donate-amount-txt, +#faction-donate-amount-txt, #faction-donate-input { padding: 6px; margin: 6px; @@ -477,6 +477,10 @@ div.faction-clear { margin: 10px; } +#tutorial-container a { + width: 50%; +} + /* Location */ #location-container { position: fixed; @@ -512,12 +516,12 @@ div.faction-clear { position: fixed; padding: 6px; } -#infiltration-left-panel, +#infiltration-left-panel, #infiltration-right-panel { display:inline-block; border: 1px solid white; width: 35%; - height: 75%; + height: 75%; top: 10px; overflow-y: auto; overflow-x: auto; @@ -544,7 +548,7 @@ div.faction-clear { } #stock-market-container p { - padding: 10px; + padding: 10px; margin: 10px; width: 70%; } @@ -574,4 +578,4 @@ div.faction-clear { color: var(--my-font-color); text-decoration: none; cursor: pointer; -} \ No newline at end of file +} diff --git a/index.html b/index.html index 4b551ec75..73bba2561 100644 --- a/index.html +++ b/index.html @@ -10,10 +10,10 @@ - + - + @@ -28,14 +28,14 @@ - + - + @@ -66,9 +66,9 @@ - + - +