Skip to content

Commit b596760

Browse files
committed
feat: removed extra menu lines
1 parent 1f044a5 commit b596760

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

.github/workflows/release-modern.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
dotnet-version: '8.0.x'
3232

3333
- name: Restore dependencies
34-
run: dotnet restore CS2ScreenMenuAPI.csproj
34+
run: dotnet restore
3535

3636
- name: Build project
37-
run: dotnet build CS2ScreenMenuAPI.csproj --configuration Release --no-restore
37+
run: dotnet build --configuration Release --no-restore
3838

3939
- name: Get version and create zip
4040
id: prepare_release

src/MenuRenderer/MenuRenderer.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ internal class MenuRenderer
2020
private nint? _createdForPawn = null;
2121
public bool ForceRefresh = true;
2222
private bool _presentingHtml = false;
23-
private const float FADE_DURATION = 0.1f;
2423

2524
private string? _htmlContent = null;
2625
private nint _menuCurrentObserver = nint.Zero;
@@ -392,11 +391,6 @@ private void BuildMenuStrings(Action<string, TextStyling, int> writeLine, Action
392391
}
393392
}
394393

395-
int itemsOnPage = endIndex - startIndex;
396-
for (int i = 0; i < _menu.ItemsPerPage - itemsOnPage; i++)
397-
{
398-
writeSimpleLine(" ", default);
399-
}
400394
writeSimpleLine(" ", default);
401395

402396
bool showBackButton = _menu.CurrentPage > 0 || (_menu.IsSubMenu && _menu.PrevMenu != null);

0 commit comments

Comments
 (0)