Fixed some bugs + Typo fixes

Fixed newgrounds logo not showing and causing errors
Small optimizations
This commit is contained in:
NeeEoo
2023-01-13 06:04:58 +01:00
parent c4a50908d4
commit 66a6283167
19 changed files with 110 additions and 105 deletions
+7 -7
View File
@@ -12,7 +12,7 @@ import openfl.utils.Assets;
class Script extends FlxBasic implements IFlxDestroyable {
/**
* Use "static var thing = true;" in hscript to use those!!
* are reset every mod switch so once youre done with them make sure to make them null!!
* are reset every mod switch so once you're done with them make sure to make them null!!
*/
public static var staticVariables:Map<String, Dynamic> = [];
@@ -155,7 +155,7 @@ class Script extends FlxBasic implements IFlxDestroyable {
/**
* Creates a new instance of the script class.
* @param path
* @param path
*/
public function new(path:String) {
super();
@@ -184,14 +184,14 @@ class Script extends FlxBasic implements IFlxDestroyable {
* Sets the "public" variables map for ScriptPack
*/
public function setPublicMap(map:Map<String, Dynamic>) {
}
/**
* Hot-reloads the script, if possible
*/
public function reload() {
}
/**
@@ -204,7 +204,7 @@ class Script extends FlxBasic implements IFlxDestroyable {
], TRACE);
}
/**
* Calls the function `func` defined in the script.
* @param func Name of the function
@@ -216,13 +216,13 @@ class Script extends FlxBasic implements IFlxDestroyable {
curScript = this;
var result = onCall(func, parameters == null ? [] : parameters);
curScript = oldScript;
return result;
}
/**
* Sets a script's parent object so that its properties can be accessed easily. Ex: Passing `PlayState.instace` will allow `boyfriend` to be typed instead of `PlayState.instance.boyfriend`.
* Sets a script's parent object so that its properties can be accessed easily. Ex: Passing `PlayState.instance` will allow `boyfriend` to be typed instead of `PlayState.instance.boyfriend`.
* @param variable Parent variable.
*/
public function setParent(variable:Dynamic) {}
@@ -14,7 +14,7 @@ class CancellableEvent implements IFlxDestroyable {
public var data:Dynamic = {};
/**
* Prevents default action from occuring.
* Prevents default action from occurring.
* @param c Whenever the scripts following this one should be called or not. (Defaults to `true`)
*/
public function preventDefault(c:Bool = false) {
@@ -12,16 +12,16 @@ class NoteHitEvent extends CancellableEvent {
@:dox(hide) public var autoHitLastSustain:Bool = true;
/**
Whenever a miss should be added.
**/
* Whenever a miss should be added.
*/
public var misses:Bool = true;
/**
Whenever a miss should be added.
**/
* Whenever a miss should be added.
*/
public var countAsCombo:Bool = true;
/**
Whenever ratings should be shown or not.
**/
* Whenever ratings should be shown or not.
*/
public var showRating:Null<Bool> = null;
/**
* Note that has been pressed
@@ -141,7 +141,7 @@ class NoteHitEvent extends CancellableEvent {
}
@:dox(hide)
public function cancelCamZooming() {preventCamZooming();}
/**
* Prevents the sustain tail (the last one) from being automatically hit when the sustain before it is hit.
*/
@@ -150,7 +150,7 @@ class NoteHitEvent extends CancellableEvent {
}
@:dox(hide)
public function cancelLastSustainHit() {preventLastSustainHit();}
/**
* Prevents the strum from glowing after this note has been pressed.
*/
@@ -160,7 +160,7 @@ class NoteHitEvent extends CancellableEvent {
@:dox(hide)
public function cancelStrumGlow() {preventStrumGlow();}
private inline function get_character()
private inline function get_character()
return characters[0];
private function set_character(char:Character) {
characters = [char];