Skip to content
Closed
10 changes: 5 additions & 5 deletions hmm.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
"name": "flixel",
"type": "git",
"dir": null,
"ref": "622bb65e7f49f0e1a03826b6593369d3ad5e54fa",
"ref": "2bb82d29f52ef25a0da4a3f0157f7bfb0f648c9a",
"url": "https://github.com/FunkinCrew/flixel"
},
{
"name": "flixel-addons",
"type": "git",
"dir": null,
"ref": "187f93b34f93c6a405d634a42913c745e443463a",
"ref": "7628435364c4a45440d1e5db656741b66a8cd2ec",
"url": "https://github.com/FunkinCrew/flixel-addons"
},
{
Expand Down Expand Up @@ -121,7 +121,7 @@
"name": "hxcpp",
"type": "git",
"dir": null,
"ref": "485b5e9defb3b8a8548a27452f73d75a0b040f22",
"ref": "1a468335a0016aa87439c1878b5b845f88a4bae0",
"url": "https://github.com/FunkinCrew/hxcpp"
},
{
Expand Down Expand Up @@ -179,7 +179,7 @@
"name": "lime",
"type": "git",
"dir": null,
"ref": "e1f3f09e3b27639459ffb4519e6ebc6f17401975",
"ref": "1874acee93bb830655cdc6f03b6dacac7423c314",
"url": "https://github.com/FunkinCrew/lime"
},
{
Expand All @@ -193,7 +193,7 @@
"name": "openfl",
"type": "git",
"dir": null,
"ref": "21ef5de843087c81bbaa4c7f3666845fe066183b",
"ref": "567379433d44c76e47b51e042ac660457b494d58",
"url": "https://github.com/FunkinCrew/openfl"
},
{
Expand Down
10 changes: 4 additions & 6 deletions project.hxp
Original file line number Diff line number Diff line change
Expand Up @@ -852,10 +852,8 @@ class Project extends HXProject
// Should be true on mobile builds.
CENSOR_EXPLETIVES.apply(this, isMobile());

// Should be true on Android.
// Some Android devices support native blends, but it causes issues
// with other shaders, so we'll disable it for now.
FORCE_BLEND_SHADER.apply(this, isAndroid());
// Should be false by default.
FORCE_BLEND_SHADER.apply(this, false);

//
// FEATURE FLAGS
Expand Down Expand Up @@ -2161,8 +2159,8 @@ class Project extends HXProject

if (haxe.io.Path.isAbsolute(devPath))
{
Sys.println("- " + libraryName.replace(",", ".") + " (Development Build)".blue().bold());
Sys.println((" Path: " + haxe.io.Path.removeTrailingSlashes(devPath)).blue());
Sys.println("- " + libraryName.replace(",", ".") + " (Development Build)".bright_cyan());
Sys.println((" Path: " + haxe.io.Path.removeTrailingSlashes(devPath)).bright_blue());
}
else
{
Expand Down
11 changes: 4 additions & 7 deletions source/funkin/mobile/util/AdMobUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import extension.admob.Admob;
import extension.admob.AdmobBannerAlign;
import extension.admob.AdmobBannerSize;
import extension.admob.AdmobEvent;
import flixel.FlxG;
import funkin.play.cutscene.VideoCutscene;
import lime.media.AudioManager;

/**
* Provides utility functions for working with admob advertisements.
Expand Down Expand Up @@ -83,12 +82,10 @@ class AdMobUtil

Admob.startInterstitialPreloader(AdMobUtil.ADMOB_INTERSTITIAL_PRELOAD_ID, adUnitID, AdMobUtil.ADMOB_INTERSTITIAL_PRELOAD_BUFFER_SIZE);
}
#if ios
case AdmobEvent.INTERSTITIAL_LOADED:
lime.media.AudioManager.suspend();
case AdmobEvent.INTERSTITIAL_SHOWED:
AudioManager.suspend();
case AdmobEvent.INTERSTITIAL_DISMISSED:
lime.media.AudioManager.resume();
#end
AudioManager.resume();
default:
}

Expand Down
2 changes: 1 addition & 1 deletion source/funkin/play/notes/SustainTrail.hx
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ class SustainTrail extends FlxSprite
if (!camera.visible || !camera.exists) continue;
// if (!isOnScreen(camera)) continue; // TODO: Update this code to make it work properly.

getScreenPosition(_point, camera).subtractPoint(offset);
getScreenPosition(_point, camera).subtract(offset);
camera.drawTriangles(graphic, vertices, indices, uvtData, null, _point, blend, true, antialiasing, colorTransform, shader);
}

Expand Down
2 changes: 1 addition & 1 deletion source/funkin/ui/credits/CreditsState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class CreditsState extends MusicBeatState

#if ios
var fix = new FlxText();
fix.font = CREDITS_FONT;
fix.font = funkin.assets.Paths.font('ui/fonts/Inconsolata Black');
fix.draw();
#end

Expand Down
25 changes: 20 additions & 5 deletions source/funkin/ui/debug/charting/ChartEditorState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3129,7 +3129,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
buttonSelectOpponent.y = GRID_INITIAL_Y_POS - NOTE_SELECT_BUTTON_HEIGHT;
buttonSelectOpponent.width = GRID_SIZE * 4;
buttonSelectOpponent.height = NOTE_SELECT_BUTTON_HEIGHT;
buttonSelectOpponent.tooltip = 'Click to set selection to all notes on this side./nShift-click to add all notes on this side to selection.';
buttonSelectOpponent.tooltip = 'Click to set selection to all notes on this side.\nShift-click to add all notes on this side to selection.';
buttonSelectOpponent.zIndex = 110;
add(buttonSelectOpponent);

Expand All @@ -3154,7 +3154,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
buttonSelectPlayer.y = buttonSelectOpponent.y;
buttonSelectPlayer.width = GRID_SIZE * 4;
buttonSelectPlayer.height = NOTE_SELECT_BUTTON_HEIGHT;
buttonSelectPlayer.tooltip = 'Click to set selection to all notes on this side./nShift-click to add all notes on this side to selection.';
buttonSelectPlayer.tooltip = 'Click to set selection to all notes on this side.\nShift-click to add all notes on this side to selection.';
buttonSelectPlayer.zIndex = 110;
add(buttonSelectPlayer);

Expand All @@ -3180,7 +3180,7 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
buttonSelectEvent.y = buttonSelectPlayer.y;
buttonSelectEvent.width = GRID_SIZE;
buttonSelectEvent.height = NOTE_SELECT_BUTTON_HEIGHT;
buttonSelectEvent.tooltip = 'Click to set selection to all events./nShift-click to add all events to selection.';
buttonSelectEvent.tooltip = 'Click to set selection to all events.\nShift-click to add all events to selection.';
buttonSelectEvent.zIndex = 110;
add(buttonSelectEvent);

Expand Down Expand Up @@ -3286,13 +3286,28 @@ class ChartEditorState extends UIState // UIState derives from MusicBeatState
if (currentWorkingFilePath != null)
{
this.exportAllSongData(true, currentWorkingFilePath);
this.success('Saved Chart', 'Chart saved successfully to ${currentWorkingFilePath}.');
}
else
{
this.exportAllSongData(false, null);
this.exportAllSongData(false, null, function(path:String)
{
// CTRL + SHIFT + S Successful
this.success('Saved Chart', 'Chart saved successfully to ${path}.');
}, function()
{
// CTRL + SHIFT + S Cancelled
});
}
};
menubarItemSaveChartAs.onClick = _ -> this.exportAllSongData(false, null);
menubarItemSaveChartAs.onClick = _ -> this.exportAllSongData(false, null, function(path:String)
{
// CTRL + SHIFT + S Successful
this.success('Saved Chart', 'Chart saved successfully to ${path}.');
}, function()
{
// CTRL + SHIFT + S Cancelled
});
menubarItemExit.onClick = _ -> quitChartEditor(true);

// Edit
Expand Down
Loading