sfx
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
948
|
||||
949
|
||||
@@ -76,9 +76,6 @@ class StoryMenuState extends MusicBeatState
|
||||
|
||||
override function create()
|
||||
{
|
||||
transIn = FlxTransitionableState.defaultTransIn;
|
||||
transOut = FlxTransitionableState.defaultTransOut;
|
||||
|
||||
if (FlxG.sound.music != null)
|
||||
{
|
||||
if (!FlxG.sound.music.playing)
|
||||
@@ -94,12 +91,6 @@ class StoryMenuState extends MusicBeatState
|
||||
txtWeekTitle.setFormat("VCR OSD Mono", 32, FlxColor.WHITE, RIGHT);
|
||||
txtWeekTitle.alpha = 0.7;
|
||||
|
||||
var rankText:FlxText = new FlxText(0, 10);
|
||||
rankText.text = 'RANK: GREAT';
|
||||
rankText.setFormat(Paths.font("vcr.ttf"), 32);
|
||||
rankText.size = scoreText.size;
|
||||
rankText.screenCenter(X);
|
||||
|
||||
var ui_tex = Paths.getSparrowAtlas('menus/storymenu/assets');
|
||||
var yellowBG:FlxSprite = new FlxSprite(0, 56).makeGraphic(FlxG.width, 400, 0xFFF9CF51);
|
||||
|
||||
@@ -203,7 +194,7 @@ class StoryMenuState extends MusicBeatState
|
||||
|
||||
txtTracklist = new FlxText(FlxG.width * 0.05, yellowBG.x + yellowBG.height + 100, 0, "Tracks", 32);
|
||||
txtTracklist.alignment = CENTER;
|
||||
txtTracklist.font = rankText.font;
|
||||
txtTracklist.font = Paths.font("vcr.ttf");
|
||||
txtTracklist.color = 0xFFe55777;
|
||||
add(txtTracklist);
|
||||
// add(rankText);
|
||||
|
||||
@@ -111,9 +111,9 @@ class CoolUtil
|
||||
*/
|
||||
public static function playMenuSFX(menuSFX:Int = 0, volume:Float = 1) {
|
||||
FlxG.sound.play(Paths.sound(switch(menuSFX) {
|
||||
case 1: 'confirmMenu';
|
||||
case 2: 'cancelMenu';
|
||||
default: 'scrollMenu';
|
||||
case 1: 'menu/confirm';
|
||||
case 2: 'menu/cancel';
|
||||
default: 'menu/scroll';
|
||||
}), volume);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user