haxe language server hopeful fix (needs testing)
This commit is contained in:
@@ -374,6 +374,10 @@ class FunkinSprite extends FlxAnimate implements IBeatReceiver implements IOffse
|
||||
|
||||
super.prepareDrawMatrix(matrix, camera);
|
||||
|
||||
applyZoomFactor(matrix, camera);
|
||||
}
|
||||
|
||||
function applyZoomFactor(matrix:FlxMatrix, camera:FlxCamera) {
|
||||
if(__shouldDoZoomFactor()) {
|
||||
__prepareZoomFactor(_rect2, camera);
|
||||
matrix.setTo(
|
||||
|
||||
@@ -25,7 +25,7 @@ class AliasMacro {
|
||||
}];
|
||||
|
||||
public static function build():Array<Field> {
|
||||
#if display
|
||||
#if LIME_DISPLAY
|
||||
return Context.getBuildFields();
|
||||
#end
|
||||
|
||||
|
||||
@@ -19,9 +19,9 @@ class DefinesMacro {
|
||||
|
||||
// INTERNAL MACROS
|
||||
#if REGION
|
||||
private static macro function __getDefines() {
|
||||
private static macro function __getDefines():Expr {
|
||||
#if display
|
||||
return macro $v{[]};
|
||||
return macro $v{([]:Map<String, Dynamic>)};
|
||||
#else
|
||||
return macro $v{Context.getDefines()};
|
||||
#end
|
||||
|
||||
@@ -64,7 +64,7 @@ class GitCommitMacro {
|
||||
// INTERNAL MACROS
|
||||
#if REGION
|
||||
private static macro function __getCommitHash() {
|
||||
#if display
|
||||
#if LIME_DISPLAY
|
||||
return macro $v{"-"};
|
||||
#else
|
||||
try {
|
||||
@@ -78,7 +78,7 @@ class GitCommitMacro {
|
||||
}
|
||||
|
||||
private static macro function __getCommitNumber() {
|
||||
#if display
|
||||
#if LIME_DISPLAY
|
||||
return macro $v{0};
|
||||
#else
|
||||
try {
|
||||
@@ -92,7 +92,7 @@ class GitCommitMacro {
|
||||
}
|
||||
|
||||
private static macro function __getCommitHashLong() {
|
||||
#if display
|
||||
#if LIME_DISPLAY
|
||||
return macro $v{"-"};
|
||||
#else
|
||||
try {
|
||||
@@ -106,7 +106,7 @@ class GitCommitMacro {
|
||||
}
|
||||
|
||||
private static macro function __getCommitMessage() {
|
||||
#if display
|
||||
#if LIME_DISPLAY
|
||||
return macro $v{"-"};
|
||||
#else
|
||||
try {
|
||||
@@ -124,7 +124,7 @@ class GitCommitMacro {
|
||||
}
|
||||
|
||||
private static macro function __getCommitAuthor() {
|
||||
#if display
|
||||
#if LIME_DISPLAY
|
||||
return macro $v{"-"};
|
||||
#else
|
||||
try {
|
||||
@@ -138,8 +138,8 @@ class GitCommitMacro {
|
||||
}
|
||||
|
||||
private static macro function __getCommitDate() {
|
||||
#if display
|
||||
return macro $v{Date.now()};
|
||||
#if LIME_DISPLAY
|
||||
return macro Date.now();
|
||||
#else
|
||||
try {
|
||||
// get the time in UTC format
|
||||
@@ -164,7 +164,7 @@ class GitCommitMacro {
|
||||
}
|
||||
|
||||
private static macro function __getCurrentBranch() {
|
||||
#if display
|
||||
#if LIME_DISPLAY
|
||||
return macro $v{"-"};
|
||||
#else
|
||||
try {
|
||||
@@ -179,7 +179,7 @@ class GitCommitMacro {
|
||||
}
|
||||
|
||||
private static macro function __getHasUncommittedChanges() {
|
||||
#if display
|
||||
#if LIME_DISPLAY
|
||||
return macro $v{false};
|
||||
#else
|
||||
try {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package funkin.game;
|
||||
|
||||
import sys.FileSystem;
|
||||
import flixel.util.FlxSpriteUtil;
|
||||
import openfl.display.Graphics;
|
||||
import flixel.util.typeLimit.OneOfTwo;
|
||||
@@ -90,6 +89,8 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
|
||||
scripts.call("create");
|
||||
buildCharacter(xml);
|
||||
scripts.call("postCreate");
|
||||
|
||||
|
||||
}
|
||||
|
||||
@:noCompletion var __swappedLeftRightAnims:Bool = false;
|
||||
@@ -158,9 +159,9 @@ class Character extends FunkinSprite implements IBeatReceiver implements IOffset
|
||||
if (event.cancelled) return;
|
||||
|
||||
if (isDanceLeftDanceRight)
|
||||
playAnim(((danced = !danced) ? 'danceLeft' : 'danceRight') + idleSuffix, DANCE);
|
||||
playAnim(((danced = !danced) ? 'danceLeft' : 'danceRight') + idleSuffix, false, DANCE);
|
||||
else
|
||||
playAnim('idle' + idleSuffix, DANCE);
|
||||
playAnim('idle' + idleSuffix, false, DANCE);
|
||||
}
|
||||
|
||||
public function tryDance() {
|
||||
|
||||
Reference in New Issue
Block a user