move back button + swap class names
This commit is contained in:
@@ -177,7 +177,7 @@ class GameOverSubState extends MusicBeatSubState
|
||||
Conductor.instance.update(0);
|
||||
|
||||
#if mobile
|
||||
addBackButton(FlxG.width * 0.77, FlxG.height * 0.84, FlxColor.WHITE, goBack);
|
||||
addBackButton(FlxG.width - 230, FlxG.height - 200, FlxColor.WHITE, goBack);
|
||||
#end
|
||||
|
||||
// Allow input a second later to prevent accidental gameover skips.
|
||||
|
||||
@@ -120,7 +120,7 @@ class CreditsState extends MusicBeatState
|
||||
FlxG.sound.music.fadeIn(6, 0, 0.8);
|
||||
|
||||
#if mobile
|
||||
addBackButton(FlxG.width * 0.77, FlxG.height * 0.85, FlxColor.WHITE, exit);
|
||||
addBackButton(FlxG.width - 230, FlxG.height - 200, FlxColor.WHITE, exit, 0.7);
|
||||
#end
|
||||
}
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ class MainMenuState extends MusicBeatState
|
||||
// FlxG.camera.setScrollBounds(bg.x, bg.x + bg.width, bg.y, bg.y + bg.height * 1.2);
|
||||
|
||||
#if mobile
|
||||
addBackButton(FlxG.width * 0.03, FlxG.height * 0.79, FlxColor.BLACK, goBack);
|
||||
addBackButton(FlxG.width - 230, FlxG.height - 200, FlxColor.WHITE, goBack, 1.0);
|
||||
#end
|
||||
|
||||
super.create();
|
||||
|
||||
@@ -16,7 +16,7 @@ import funkin.input.Controls;
|
||||
import funkin.api.newgrounds.NewgroundsClient;
|
||||
#end
|
||||
#if mobile
|
||||
import funkin.mobile.ui.FunkinBackspace;
|
||||
import funkin.mobile.ui.FunkinBackButton;
|
||||
import funkin.util.TouchUtil;
|
||||
import funkin.mobile.ui.options.ControlsSchemeMenu;
|
||||
#end
|
||||
|
||||
@@ -17,7 +17,7 @@ import funkin.ui.options.items.CheckboxPreferenceItem;
|
||||
import funkin.ui.options.items.NumberPreferenceItem;
|
||||
import funkin.ui.options.items.EnumPreferenceItem;
|
||||
#if mobile
|
||||
import funkin.mobile.ui.FunkinBackspace;
|
||||
import funkin.mobile.ui.FunkinBackButton;
|
||||
import funkin.mobile.ui.FunkinHitbox.FunkinHitboxControlSchemes;
|
||||
import funkin.util.TouchUtil;
|
||||
import funkin.util.SwipeUtil;
|
||||
@@ -77,7 +77,7 @@ class PreferencesMenu extends Page<OptionsState.OptionsMenuPageName>
|
||||
});
|
||||
|
||||
#if mobile
|
||||
var backButton:FunkinBackspace = new FunkinBackspace(FlxG.width * 0.77, FlxG.height * 0.85, flixel.util.FlxColor.BLACK, exit);
|
||||
var backButton:FunkinBackButton = new FunkinBackButton(FlxG.width * 0.77, FlxG.height * 0.85, flixel.util.FlxColor.BLACK, exit);
|
||||
add(backButton);
|
||||
#end
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ class StoryMenuState extends MusicBeatState
|
||||
#end
|
||||
|
||||
#if mobile
|
||||
addBackButton(FlxG.width * 0.77, FlxG.height * 0.85, FlxColor.WHITE, goBack);
|
||||
addBackButton(FlxG.width - 230, FlxG.height - 170, FlxColor.WHITE, goBack, 0.7);
|
||||
#end
|
||||
|
||||
#if FEATURE_TOUCH_CONTROLS
|
||||
|
||||
Reference in New Issue
Block a user