fixed the font issue
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
1437
|
||||
1438
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user