Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NChelp fix #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions assets/console/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,7 @@ const _nativeContains = (array, name) => {
}

function NCHelp() {
let help = readString("console/startup.js-help");

let b = new StringBuilder();
for (method in _interface) {
if (!_nativeContains(_defaultMethods, method)) {
b.append("NewConsole.[blue]").append(method).append("[];\n");
}

}

println(Strings.format(help, b.toString()));
println("[green]# hello and welcome to new console one of the first consoles that can be publicly used #\n# everything will be explaned here #\n\n [white]lets start with what you see now\non this side this is the [yellow]logs [white]every log is printed here\n[red][[Warning]the log scroll back is limted tp 30k characters for performance reasons\n\n [white] on the right side is the console input\nlets start with what it can do with the buttons:\n\nthe run button well runs the current code\n\nthe prev button changes the current code to the previously ran code in the logs\nthe next button well is the same as the prev button just of course the next in the logs if theres nothing next it will clear the code input\n\nthe scripts button well lets you well view/run saves scripts or save scripts\n\nthe files button opens the ingame file browser [red]WARNING DANGEROUS\n\n[white]the events button opens the script autoren menu [[unfinished?]\n\n if you want to access anything from this mod just use the [blue]NewConsole [white]object\n\n [yellow]here are the default functions:\n[white]NCHelp() prints this message\nappend(value) add value to the logs [red]doesnt print to ingame logs\n[white]println(value) append just with \n at the start\nbackread() reads the logs and override the output?\n\nimportCls(name) import any (even modded) vlass by its fully-qualified name?")
}

const append = text => {
Expand Down