Skip to content

Commit

Permalink
Removed accidental changes and made constant for song filter button
Browse files Browse the repository at this point in the history
  • Loading branch information
NSGolova committed Sep 29, 2024
1 parent 8c9a268 commit 45bb7f2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Source/2_Core/Managers/ReplayRecorder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Reflection;
using BeatLeader.Core.Managers.NoteEnhancer;
Expand Down
3 changes: 1 addition & 2 deletions Source/7_Utils/BSMLUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public static Sprite LoadSprite(string location) {
string text = location.Substring(1);
sprite = FindSpriteCached(text);
} else {
var task = Task.Run(async () => await Utilities.LoadSpriteFromAssemblyAsync(location));
sprite = task.GetAwaiter().GetResult();
sprite = Utilities.LoadSpriteFromAssemblyAsync(location).GetAwaiter().GetResult();
sprite.texture.wrapMode = TextureWrapMode.Clamp;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ internal class BeatmapSelectorViewController : DummyViewController {
private SelectLevelCategoryViewController.LevelCategory _lastSelectedLevelCategory = SelectLevelCategoryViewController.LevelCategory.All;
private BeatmapLevel? _originalPreviewBeatmapLevel;
private bool _isInitialized;

private string _defaultPlayButtonText = Localization.Get("BUTTON_PLAY");
private static string CUSTOM_PLAY_BUTTON = "SELECT";

public void Init(
LevelSelectionNavigationController levelSelectionNavigationController,
Expand Down Expand Up @@ -75,7 +77,7 @@ public override void DidActivate(bool firstActivation, bool addedToHierarchy, bo
Array.Empty<BeatmapCharacteristicSO>(),
false,
false,
"SELECT",
CUSTOM_PLAY_BUTTON,
null,
SelectLevelCategoryViewController.LevelCategory.None,
null,
Expand All @@ -87,7 +89,7 @@ public override void DidActivate(bool firstActivation, bool addedToHierarchy, bo
_closeButton.ManualInit(_closeButton.transform);
_closeButton.ButtonPressedEvent += HandleCloseButtonPressed;
}
_levelSelectionNavigationController._actionButtonText = "SELECT";
_levelSelectionNavigationController._actionButtonText = CUSTOM_PLAY_BUTTON;

_originalLevelCategory = _levelSelectionNavigationController.selectedLevelCategory;
_originalPreviewBeatmapLevel = _levelCollectionNavigationController.beatmapLevel;
Expand Down
2 changes: 1 addition & 1 deletion Source/8_UI/ModPanel/ModPanelUtils.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using BeatSaberMarkupLanguage.Util;
using BeatSaberMarkupLanguage.Util;

namespace BeatLeader {
internal partial class ModPanelUI {
Expand Down
2 changes: 1 addition & 1 deletion Source/8_UI/ReeUIComponentV2.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
Expand Down
2 changes: 1 addition & 1 deletion Source/8_UI/SettingsPanel/SettingsPanelUtils.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using BeatSaberMarkupLanguage.Util;
using BeatSaberMarkupLanguage.Util;

namespace BeatLeader {
internal partial class SettingsPanelUI {
Expand Down

0 comments on commit 45bb7f2

Please sign in to comment.