tg123 / myslot

The missing layout/keybinding/macro exportor for World of Warcraft
https://myslot.net/
Apache License 2.0
46 stars 20 forks source link

Add Account/Character Macro feature. #49

Closed pgarneau closed 4 months ago

pgarneau commented 5 months ago

image

image

pgarneau commented 5 months ago

@tg123 Made a separate PR cause I changed some logic around. I do think this is the best UX of the UI we're gonna get. Dropdowns are too "hidden" when you press import.

I will close my other PR, but I still have the branch

tg123 commented 5 months ago

the reason ignore applies to export is that people may wish to hide their macro or something else. this option will also contribute to smaller exported text

pgarneau commented 5 months ago

The end result is the same if you ignore on export or ignore on import. THe size of the exported text is really a concern?

tg123 commented 5 months ago

people can decode exported text to get macro if it contains everything and many people use it for sharing macro only

pgarneau commented 5 months ago

Yes but it’s kinda necessary in this use case:

You import action bars, but ignore account macros because you already have them.

The action bar import relies on the macro table to find the macro with index X.

If you didnt modify your account macros, you can use the index directly to translate to macroId.

However if you did modify macros, you can use the macro table with the MySlot:FindMacro() to find the new index EVEN IF you decided to ignore it

On Sat, Jun 15, 2024 at 2:41 AM Boshi Lian @.***> wrote:

people can decode exported text to get macro if it contains everything and many people use it for sharing macro only

— Reply to this email directly, view it on GitHub https://github.com/tg123/myslot/pull/49#issuecomment-2169163776, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADR4JCX5PPUNJ5JDC4BWDV3ZHPO3JAVCNFSM6AAAAABJKPVLHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRZGE3DGNZXGY . You are receiving this because you authored the thread.Message ID: @.***>

pgarneau commented 5 months ago

And yes people use the string to share macros, sometimes use it to share whole UIs.

We already have very long import strings in other addons like elvui/weakauras/etc

I still dont see how it is a problem

tg123 commented 5 months ago

image

pgarneau commented 5 months ago

I don't like how the configuration is hidden when you click on import or export.

It is cleaner though.

tg123 commented 5 months ago

please check branch optref (WIP)

tg123 commented 4 months ago

Thanks

Your PR inspired me a lot, for example your FindMacro fixed long time duplicate macro issue. I copied it Also, I rethought about your question if macro should be export: that the reason you want to keep macro info is that ignore macro during import would stop myslot looking up local macro table, the latest version also fixed it.

Please let me know if https://www.curseforge.com/wow/addons/myslot/files/5485299 solved all your headache problems

too busy at day time work, sorry for the delay.

pgarneau commented 4 months ago

@tg123 ty I'll check out your latest release