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

Ability to define custom events #7

Open
Fank opened this issue Jul 11, 2021 · 3 comments
Open

Ability to define custom events #7

Fank opened this issue Jul 11, 2021 · 3 comments
Assignees
Labels
component:web Affects web component documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@Fank
Copy link
Member

Fank commented Jul 11, 2021

As currently defined here it is possible to send custom events:
https://github.com/OCAP2/addon/blob/103b38d2bce8084e09775e9a477bcaeaaca120fe/addons/%40ocap/addons/ocap/functions/fn_addEventMission.sqf#L33-L41

But these are not shown on the web, because they needed to be registered for that.

We may need some kind of option to easily define them on our own, or/and add some predefined events.

@Fank Fank added documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed labels Jul 14, 2021
@indig0fox indig0fox added this to the v1.1.0 milestone Jul 14, 2021
@Fank
Copy link
Member Author

Fank commented Jul 14, 2021

Add documentation in this repo of how to use, which events do exists and how to call them

@indig0fox
Copy link
Member

[objectiveName, objectiveNumber (if in sequence), name player]

  • Terminal activated (counting down for upload)
  • Terminal paused/stopped (upload interrupted)
  • Terminal successfully hacked (obj complete)
  • Objective destroyed (cache, plane, truck, etc)
  • Sector captured (if no persistent/take and hold)
  • Sector controlled by side (if accruing points by holding)
  • Sector gone neutral (sector is neutral awaiting recapture)
  • Game phases
    • Planning phase started (if in-game)
    • Pre-start ended, game started

@Fank Fank added the component:web Affects web component label Jul 15, 2021
@Fank Fank modified the milestones: v1.1.0, v1.2.0 Jul 24, 2021
@indig0fox indig0fox self-assigned this Apr 11, 2022
@indig0fox
Copy link
Member

added general custom event handler for next ver (including web) that will simply add text to the timeline announcing something has occurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:web Affects web component documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants