Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
Fixed some time bars showing only the bar even if the time bar type was set to a No Bar option
  • Loading branch information
JordanSantiagoYT committed Oct 2, 2024
1 parent a0083e5 commit e890aee
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ class PlayState extends MusicBeatState
timeBarBG.y = timeTxt.y + (timeTxt.height / 8);
timeBarBG.scrollFactor.set();
timeBarBG.alpha = 0;
timeBarBG.visible = showTime;
timeBarBG.visible = showTime && !ClientPrefs.timeBarType.contains('(No Bar)');
timeBarBG.color = FlxColor.BLACK;
timeBarBG.xAdd = -4;
timeBarBG.yAdd = -4;
Expand All @@ -1044,7 +1044,7 @@ class PlayState extends MusicBeatState
timeBar.createFilledBar(FlxColor.BLACK, FlxColor.WHITE);
timeBar.numDivisions = 400; //How much lag this causes?? Should i tone it down to idk, 400 or 200?
timeBar.alpha = 0;
timeBar.visible = showTime;
timeBar.visible = showTime && !ClientPrefs.timeBarType.contains('(No Bar)');
add(timeBar);
timeBarBG.sprTracker = timeBar;

Expand All @@ -1058,7 +1058,7 @@ class PlayState extends MusicBeatState
timeBarBG.y = timeTxt.y + (timeTxt.height / 8);
timeBarBG.scrollFactor.set();
timeBarBG.alpha = 0;
timeBarBG.visible = showTime;
timeBarBG.visible = showTime && !ClientPrefs.timeBarType.contains('(No Bar)');
timeBarBG.color = FlxColor.BLACK;
timeBarBG.xAdd = -4;
timeBarBG.yAdd = -4;
Expand All @@ -1071,7 +1071,7 @@ class PlayState extends MusicBeatState
timeBar.createFilledBar(FlxColor.GRAY, FlxColor.LIME);
timeBar.numDivisions = 800; //How much lag this causes?? Should i tone it down to idk, 400 or 200?
timeBar.alpha = 0;
timeBar.visible = showTime;
timeBar.visible = showTime && !ClientPrefs.timeBarType.contains('(No Bar)');
add(timeBar);
timeBarBG.sprTracker = timeBar;

Expand All @@ -1085,7 +1085,7 @@ class PlayState extends MusicBeatState
timeBarBG.y = timeTxt.y + (timeTxt.height / 4);
timeBarBG.antialiasing = true;
timeBarBG.scrollFactor.set();
timeBarBG.visible = showTime;
timeBarBG.visible = showTime && !ClientPrefs.timeBarType.contains('(No Bar)');
timeBarBG.xAdd = -4;
timeBarBG.yAdd = -4;
add(timeBarBG);
Expand All @@ -1095,7 +1095,7 @@ class PlayState extends MusicBeatState
timeBar.scrollFactor.set();
timeBar.numDivisions = 800; //How much lag this causes?? Should i tone it down to idk, 400 or 200?
timeBar.alpha = 0;
timeBar.visible = showTime;
timeBar.visible = showTime && !ClientPrefs.timeBarType.contains('(No Bar)');
timeBarBG.sprTracker = timeBar;
timeBar.createFilledBar(FlxColor.GRAY, FlxColor.fromRGB(57, 255, 20));
insert(members.indexOf(timeBarBG), timeBar);
Expand All @@ -1116,7 +1116,7 @@ class PlayState extends MusicBeatState
timeBarBG.y = timeTxt.y + (timeTxt.height / 8);
timeBarBG.scrollFactor.set();
timeBarBG.alpha = 0;
timeBarBG.visible = showTime;
timeBarBG.visible = showTime && !ClientPrefs.timeBarType.contains('(No Bar)');
timeBarBG.color = FlxColor.BLACK;
timeBarBG.xAdd = -4;
timeBarBG.yAdd = -4;
Expand All @@ -1128,7 +1128,7 @@ class PlayState extends MusicBeatState
timeBar.scrollFactor.set();
timeBar.numDivisions = 1000; //How much lag this causes?? Should i tone it down to idk, 400 or 200?
timeBar.alpha = 0;
timeBar.visible = showTime;
timeBar.visible = showTime && !ClientPrefs.timeBarType.contains('(No Bar)');
timeBarBG.sprTracker = timeBar;
timeBar.createGradientBar([FlxColor.TRANSPARENT], [FlxColor.fromRGB(boyfriend.healthColorArray[0], boyfriend.healthColorArray[1], boyfriend.healthColorArray[2]), FlxColor.fromRGB(dad.healthColorArray[0], dad.healthColorArray[1], dad.healthColorArray[2])]);
add(timeBar);
Expand Down Expand Up @@ -5383,8 +5383,7 @@ class PlayState extends MusicBeatState
judgeTxt.cameras = [camHUD];
judgeTxt.visible = true;
judgeTxt.screenCenter(X);
if (botplayTxt != null)
judgeTxt.y = !ClientPrefs.downScroll ? botplayTxt.y + 60 : botplayTxt.y - 60;
if (botplayTxt != null) judgeTxt.y = !ClientPrefs.downScroll ? botplayTxt.y + 60 : botplayTxt.y - 60;
judgeTxt.alpha = 1;
if (!miss) switch (daRating.name)
{
Expand Down

0 comments on commit e890aee

Please sign in to comment.