Rochet2 / TrinityCore

Rochet2's stuff for TC
https://rochet2.github.io
90 stars 143 forks source link

Legion Transmog 3.3.5 UI #147

Open TheSnowcraft opened 1 year ago

TheSnowcraft commented 1 year ago

Is it possible to alter the transmog system to utilise a downported UI from Legion for transmog? I happen to have all of the UI elements extracted from a Legion client, and believe it would be better suited to the Legion transmog system as a whole (either via an AddOn or client patch).

Rochet2 commented 1 year ago

Probably, if you have the time to do it.

This is the NPC c++ code that shows the menu to the user. https://github.com/Rochet2/TrinityCore/blob/e58ace1d7341fabfe89966e14bd55c6d0ffeaa89/src/server/scripts/Custom/Transmog/Transmogrifier.cpp

Instead of making a gossip menu, the server and client could communicate through some channel and exchange messages. For example, the server could send all of the relevant data to the client, the client displays whatever it needs to and when changes are accepted, the client sends a message to the server to finalize the changes on the player.

One problem is to choose some channel for the communication. For example one could use addon messages or some packet maybe.