fixed the font issue

This commit is contained in:
Yoshman29
2022-12-08 17:10:28 +01:00
parent a4d07ae8ab
commit 88f8055c4e
6 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -1 +1 @@
1437
1438
+1 -1
View File
@@ -75,7 +75,7 @@ class HScript extends Script {
if (interp == null) return null;
var func = interp.variables.get(funcName);
if (Reflect.isFunction(func))
if (func != null && Reflect.isFunction(func))
return (parameters != null && parameters.length > 0) ? Reflect.callMethod(null, func, parameters) : func();
return null;
+1 -1
View File
@@ -66,7 +66,7 @@ class ScriptPack extends Script {
for(e in scripts) {
e.call(func, [event]);
@:privateAccess
if (event.cancelled && event.__continueCalls) break;
if (event.cancelled && !event.__continueCalls) break;
}
return event;
}
@@ -16,7 +16,7 @@ class CancellableEvent {
* Prevents default action from occuring.
* @param c Whenever the scripts following this one should be called or not. (Defaults to `true`)
*/
public function preventDefault(c:Bool = true) {
public function preventDefault(c:Bool = false) {
cancelled = true;
__continueCalls = c;
}
+6 -3
View File
@@ -24,9 +24,12 @@ class AssetsLibraryList extends AssetLibrary {
public override function getPath(id:String) {
for(e in libraries) {
var path = e.getPath(id);
if (path != null)
return path;
@:privateAccess
if (e.exists(id, e.types.get(id))) {
var path = e.getPath(id);
if (path != null)
return path;
}
}
return null;
}
+1 -1
View File
@@ -57,7 +57,7 @@ class Paths
{
return 'assets/$file';
}
inline static public function file(file:String, type:AssetType = TEXT, ?library:String)
{
return getPath(file, type, library);