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

Interact Menu - Use hashmaps for interactions #9920

Merged
merged 5 commits into from
May 22, 2024

Conversation

johnb432
Copy link
Contributor

@johnb432 johnb432 commented Apr 4, 2024

When merged this pull request will:

  • Title.
  • Optimised the function ACE_interact_menu_fnc_splitPath.

IMPORTANT

  • If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

@johnb432 johnb432 added the kind/optimization Release Notes: **IMPROVED:** label Apr 4, 2024
Copy link
Contributor

@LinkIsGrim LinkIsGrim Apr 4, 2024

Choose a reason for hiding this comment

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

Not public so it doesn't matter, but this does have some 3rd party use and will become case-sensitive

Copy link
Contributor

@LinkIsGrim LinkIsGrim left a comment

Choose a reason for hiding this comment

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

Should have been a single review but too late now. See comments above.


// Compile actions for CAManBase now and use for all mans types
["CAManBase"] call FUNC(compileMenu);
GVAR(cacheManActions) = +(GVAR(ActNamespace) getVariable ["CAManBase", []]); // copy
GVAR(cacheManActions) = +(GVAR(ActNamespace) getOrDefault ["CAManBase" call EFUNC(common,getConfigName), []]); // copy
Copy link
Contributor

Choose a reason for hiding this comment

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

Better safe than sorry, I guess

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, in case, somehow, a mod managed to change it - highly unlikely, so we could probably remove it.

@LinkIsGrim LinkIsGrim added this to the 3.18.0 milestone Apr 7, 2024
@PabstMirror PabstMirror merged commit 4cf61a0 into master May 22, 2024
5 checks passed
@PabstMirror PabstMirror deleted the interact_menu-hashmaps branch May 22, 2024 01:18
blake8090 pushed a commit to blake8090/ACE3 that referenced this pull request Aug 18, 2024
* Use hashmaps for interactions

* Update addons/interact_menu/functions/fnc_splitPath.sqf

Co-authored-by: Grim <[email protected]>

* Account for case sensitivity

* Update addons/interact_menu/functions/fnc_compileMenu.sqf

Co-authored-by: PabstMirror <[email protected]>

* Update addons/interact_menu/functions/fnc_compileMenuSelfAction.sqf

Co-authored-by: PabstMirror <[email protected]>

---------

Co-authored-by: Grim <[email protected]>
Co-authored-by: PabstMirror <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/optimization Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants