after ages VERBOSE MODE
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
- [x] Dialogue
|
- [x] Dialogue
|
||||||
- [ ] Finish Base Game port
|
- [ ] Finish Base Game port
|
||||||
- [x] Add credits
|
- [x] Add credits
|
||||||
- [ ] Verbose mode (`--verbose`)
|
- [x] Verbose mode (`--verbose`)
|
||||||
- [ ] Tooltips
|
- [ ] Tooltips
|
||||||
- [ ] Fix bugs
|
- [ ] Fix bugs
|
||||||
|
|
||||||
|
|||||||
@@ -64,8 +64,8 @@ class CommandLineHandler {
|
|||||||
Main.noCwdFix = true;
|
Main.noCwdFix = true;
|
||||||
case "-livereload":
|
case "-livereload":
|
||||||
// do nothing
|
// do nothing
|
||||||
case "-verbose":
|
case "-v" | "-verbose" | "--verbose":
|
||||||
// do nothing
|
Main.verbose = true;
|
||||||
default:
|
default:
|
||||||
Sys.println("Unknown command");
|
Sys.println("Unknown command");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,25 +143,20 @@ class Logs {
|
|||||||
traceColored(text, level);
|
traceColored(text, level);
|
||||||
}
|
}
|
||||||
|
|
||||||
public inline static function getPrefix(prefix:String) {
|
public inline static function getPrefix(prefix:String)
|
||||||
return logText('[${prefix}] ', BLUE);
|
return logText('[${prefix}] ', BLUE);
|
||||||
}
|
|
||||||
|
|
||||||
public inline static function infos(text:String, color:ConsoleColor = LIGHTGRAY, ?prefix:String) {
|
public inline static function infos(text:String, color:ConsoleColor = LIGHTGRAY, ?prefix:String)
|
||||||
Logs.trace(text, INFO, color, prefix);
|
Logs.trace(text, INFO, color, prefix);
|
||||||
}
|
|
||||||
|
|
||||||
public inline static function verbose(text:String, color:ConsoleColor = LIGHTGRAY, ?prefix:String) {
|
public inline static function verbose(text:String, color:ConsoleColor = LIGHTGRAY, ?prefix:String)
|
||||||
Logs.trace(text, VERBOSE, color, prefix);
|
if (Main.verbose) Logs.trace(text, VERBOSE, color, prefix);
|
||||||
}
|
|
||||||
|
|
||||||
public inline static function warn(text:String, color:ConsoleColor = YELLOW, ?prefix:String) {
|
public inline static function warn(text:String, color:ConsoleColor = YELLOW, ?prefix:String)
|
||||||
Logs.trace(text, WARNING, color, prefix);
|
Logs.trace(text, WARNING, color, prefix);
|
||||||
}
|
|
||||||
|
|
||||||
public inline static function error(text:String, color:ConsoleColor = RED, ?prefix:String) {
|
public inline static function error(text:String, color:ConsoleColor = RED, ?prefix:String)
|
||||||
Logs.trace(text, ERROR, color, prefix);
|
Logs.trace(text, ERROR, color, prefix);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum abstract Level(Int) {
|
enum abstract Level(Int) {
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ class Main extends Sprite
|
|||||||
public static var modToLoad:String = null;
|
public static var modToLoad:String = null;
|
||||||
public static var forceGPUOnlyBitmapsOff:Bool = #if windows false #else true #end;
|
public static var forceGPUOnlyBitmapsOff:Bool = #if windows false #else true #end;
|
||||||
public static var noTerminalColor:Bool = false;
|
public static var noTerminalColor:Bool = false;
|
||||||
|
public static var verbose:Bool = false;
|
||||||
|
|
||||||
public static var scaleMode:FunkinRatioScaleMode;
|
public static var scaleMode:FunkinRatioScaleMode;
|
||||||
#if !mobile
|
#if !mobile
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class CreditsCodename extends funkin.options.OptionsScreen {
|
|||||||
});
|
});
|
||||||
Options.contributors = contributors;
|
Options.contributors = contributors;
|
||||||
}
|
}
|
||||||
Logs.trace('[CreditsCodename] Contributors list Updated!', VERBOSE);
|
Logs.verbose('[CreditsCodename] Contributors list Updated!');
|
||||||
|
|
||||||
var errorOnMain:Bool = false;
|
var errorOnMain:Bool = false;
|
||||||
var idk2 = GitHub.getOrganizationMembers(Flags.REPO_OWNER, function(e) {
|
var idk2 = GitHub.getOrganizationMembers(Flags.REPO_OWNER, function(e) {
|
||||||
@@ -103,7 +103,7 @@ class CreditsCodename extends funkin.options.OptionsScreen {
|
|||||||
});
|
});
|
||||||
if(!errorOnMain) {
|
if(!errorOnMain) {
|
||||||
Options.mainDevs = [for(m in idk2) m.id];
|
Options.mainDevs = [for(m in idk2) m.id];
|
||||||
Logs.trace('[CreditsCodename] Main Devs list Updated!', VERBOSE);
|
Logs.verbose('[CreditsCodename] Main Devs list Updated!');
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user