dumbeau / AutoHotPie

Radial menus in Windows, aka PIE MENYOOS!
MIT License
340 stars 18 forks source link

Action modulization #121

Closed ryjacky closed 1 year ago

ryjacky commented 1 year ago

Background Information

The following is a screenshot of the pie menu editor in v3 development build. image

Until today, the selectable list of actions is all built-in to the core application and was not extendable without modifying the source code.

What's new in this pull request

In this pull request, several shared module that is used in the editor and will be used in 3rd party plugins is moved into an npm package called autohotpie-core. In other words, autohotpie-core serves as a "bridge" between the editor and 3rd party plugins (or community plugins).

What does it mean? It means that a plugin system is integrated into AHP and it will allow the community to develop plugins for it.

However, the plugin system is still quite limited since it is in its very early stage. All it allows the community to do is to develop their own "actions". Actions, specifically, is the command(s) that will be executed when a pies of pie menu button is clicked (or triggered).

This system has made integrating 3rd party apps such as blender more friendly and feasible (though developing such a system is still difficult considering we have to use socket or similar technologies, the communication channel basically involves 3 parties: AHP <-> AHP plugin <-> 3rd party software plugin).

Structure wise, it is a more modularized software structure and I believe the code to be more robust as it improves over time.

The documentation of the plugin system will be separated into another pull request since it is not the theme of this branch.

(I'm so excited for this implementation hehe)

dumbeau commented 1 year ago

THAT IS SO COOL!

My guy, you are nuts, thank you for this.