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 - Import to Available Items from clipboard #330

Closed
wants to merge 3 commits into from

Conversation

Pixelated-Grunt
Copy link
Contributor

@Pixelated-Grunt Pixelated-Grunt commented Aug 28, 2024

This change add 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:

@Pixelated-Grunt Pixelated-Grunt changed the title Import to Available Items from clipboard ESEImport to Available Items from clipboard Aug 28, 2024
@Pixelated-Grunt Pixelated-Grunt changed the title ESEImport to Available Items from clipboard ESE - Import to Available Items from clipboard Aug 28, 2024
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.

1 participant