Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/update 0.10 #127

Merged
merged 4 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Code Quality

on:
pull_request:
branches: [ master ]

pull_request

jobs:
build:
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions scripts/pages/leaderboards/leaderboards.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class Leaderboards {

const currentMode = GameModeAPI.GetCurrentGameMode();
map.leaderboards
.filter(leaderboard => leaderboard.gamemode === currentMode)
.filter((leaderboard) => leaderboard.gamemode === currentMode)
.forEach((leaderboard, index) => {
let trackStr;
if (leaderboard.trackType === 0) {
Expand All @@ -201,14 +201,15 @@ class Leaderboards {
item.SetAttributeInt('trackType', leaderboard.trackType);

this.panels.tracksDropdown.AddOption(item);
});
});

this.panels.tracksDropdown.SetSelectedIndex(0);
this.panels.tracksDropdown.SetPanelEvent('onuserinputsubmit', () => {
const selected = this.panels.tracksDropdown.GetSelected();
$.GetContextPanel().selectTrack(
selected.GetAttributeInt('trackType', 0),
selected.GetAttributeInt('trackNum', 0));
selected.GetAttributeInt('trackNum', 0)
);
});
}
}
11 changes: 0 additions & 11 deletions scripts/pages/learn.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class Learn {
UiToolkitAPI.ShowGenericPopup(
'Learn Section - Very early alpha!',
'Welcome to the beginnings of the Learn section!\n\n' +
'Please note: for this section to work, you *MUST* launch the game with the -mapping launch option. This will change in the near future!\n\n' +
"This is in an early testing phase, with each mode's maps at differing levels of completion.\n\n" +
"They'll be being updated regularly through Steam updates, so make sure to check back in every now and then!\n\n" +
"Feedback is GREATLY appreciated, especially if you're brand new to a mode, so be sure to let us know your thoughts in the new learn channels in the Discord.\n\n" +
Expand Down Expand Up @@ -132,16 +131,6 @@ class Learn {
static startCurrentLesson() {
if (!this.currentLessonData) return;

if (!MomentumAPI.GetVersionInfo().isInMappingMode) {
UiToolkitAPI.ShowGenericPopup(
'Please launch in mapping mode!',
'Apologies for the inconvenience, but you must launch the game in -mapping mode to use the Learn section for now. Close the game, then select Momentum in your Steam library, go to Properties, and in Launch Options add -mapping. Then relaunch and this annoying popup will go away!',
''
);

return;
}

if (!this.currentLessonData['Map']) {
$.Warning(`Learn: No map specified for lesson ${this.currentLessonData['Name']}`);
return;
Expand Down
2 changes: 1 addition & 1 deletion styles/pages/leaderboards/leaderboards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,4 @@
width: 65%;
vertical-align: center;
}
}
}
Loading