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

ESE - Add import from clipboard into Available Items #331

Merged
merged 6 commits into from
Aug 29, 2024

Conversation

Pixelated-Grunt
Copy link
Contributor

This change allows users to import an existing list of items and use ESE to find compatible items. It adds 2 extra options to the 'Filter' menu strip.

  • Import from Clipboard
    • Import ACE arsenal export format array to the 'Available Items' (existing items will be replaced/removed). Available Items list will stay as the imported list until user hit reset
  • Reset
    • Reset the 'Available Items' back to all items

This is a simple change by using existing functions to convert clipboard data to have the same data structure as the 'EHN_ENE_itemsHashMap' hashmap. Then replace the 'EHN_ENE_itemsHashMap' variable with the newly created hashmap.

Existing 'EHN_ENE_itemsHashMap' will be saved for the reset function.

==============================================================================

It also adds filters to both 'fn_ESE_lbAdd' and 'fn_ESE_lbnAdd' functions to skip items that are blanks (no Display Text). The ESE list boxes contain blank rows, this behavior exist in the current Steam release as well. See before and after screenshots from the Steam release version.

BEFORE
20240829034628_1

AFTER
20240829034339_1

Copy link

Do not forget to also update the following files:

@R3voA3 R3voA3 merged commit 4e29dc9 into R3voA3:master Aug 29, 2024
@R3voA3
Copy link
Owner

R3voA3 commented Aug 29, 2024

Awesome. Thanks a lot!

@Pixelated-Grunt Pixelated-Grunt deleted the import_filter branch August 29, 2024 13:27
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.

2 participants