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

Goggles - Add effect event for API #10314

Merged
merged 7 commits into from
Sep 17, 2024
Merged

Conversation

MiszczuZPolski
Copy link
Contributor

When merged this pull request will:

  • Add API for goggles addon

I need API for new addon for KAM that gives event when one of these effects are applied. @LinkIsGrim helped me with making it more general event but i am not sure if documentation is done right.

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}.

@LinkIsGrim LinkIsGrim added the kind/enhancement Release Notes: **IMPROVED:** label Sep 13, 2024
@LinkIsGrim LinkIsGrim added this to the 3.18.0 milestone Sep 13, 2024
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.

LGTM

@PabstMirror
Copy link
Contributor

slight preference to just give first 2 args and let the listener call isVisable
that way we avoid calling that function if no-one is listening

@LinkIsGrim
Copy link
Contributor

isVisible isn't public though

@johnb432
Copy link
Contributor

isVisible isn't public though

Maybe we should make it public - not sure if it would have many uses though.

@MiszczuZPolski
Copy link
Contributor Author

I only need unit as argument, maybe cause. So feel free to change it, i just did it with Grim suggestion

addons/goggles/functions/fnc_applyDirtEffect.sqf Outdated Show resolved Hide resolved
addons/goggles/functions/fnc_applyDustEffect.sqf Outdated Show resolved Hide resolved
addons/goggles/functions/fnc_applyRainEffect.sqf Outdated Show resolved Hide resolved
addons/goggles/functions/fnc_applyRotorWashEffect.sqf Outdated Show resolved Hide resolved
docs/wiki/framework/goggles-framework.md Outdated Show resolved Hide resolved
@LinkIsGrim
Copy link
Contributor

Goggle visibility function is public and I can't read

@LinkIsGrim LinkIsGrim merged commit a5f8b89 into acemod:master Sep 17, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants