Skip to content

Workshop v2 Integration#190

Merged
iamsirenstorm merged 64 commits into
mainfrom
feat/addon-download-notifs
May 4, 2026
Merged

Workshop v2 Integration#190
iamsirenstorm merged 64 commits into
mainfrom
feat/addon-download-notifs

Conversation

@iamsirenstorm

Copy link
Copy Markdown
Member

No description provided.

@iamsirenstorm iamsirenstorm requested a review from a team as a code owner May 3, 2026 21:04
Comment thread scripts/pages/campaigns/campaign-selector.ts
Comment thread scripts/pages/campaigns/workshop-selector.ts Outdated
Comment thread scripts/pages/campaigns/automap-selector.ts
Comment on lines +38 to +41
const buckets = CampaignAPI.GetAllCampaignBuckets();
if (!AddonManager.advancedMode && buckets.some((v: CampaignBucket) => v.addon_id === this.index)) {
this.panel.visible = false;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this imply for every addon we request every campaign bucket and check if the current addon has a bucket?

I think this might scale poorly? Maybe we need an API for this? or to do all the matching once in one location?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't scale very well so we probably do need a C++ API for this because I don't see any other way to check this in JS-land. Scales even worse because it will do this every time the page is opened :D

Comment thread scripts/pages/main-menu/addons.ts Outdated
Comment on lines +235 to +244
if (campaign && campaign.bucket.addon_id === addon) {
const p = $.CreatePanel('Panel', this.addonContainer, 'ContentDivider');
p.AddClass('addons__divider');
p.AddClass('fancy-orange-noborder');
p.AddClass('addons__divider__orange');
$.CreatePanel('Label', p, 'ContentDividerText', {
text: '[HC] The following addons are required by in-game content.',
class: 'horizontal-align-center text-weight-bold'
});
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah clever. just putting campaign + all below as required. nice idea. i was curious how you were doing it

Comment thread scripts/pages/main-menu/addons.ts Outdated

@ozxybox ozxybox left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Awesome work! Just maybe make sure the event that got changed still works and good to merge

@iamsirenstorm iamsirenstorm merged commit f9bd574 into main May 4, 2026
1 check failed
@iamsirenstorm iamsirenstorm deleted the feat/addon-download-notifs branch May 4, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants