Supporting multiple clients
Hi there! I'm working on fixing LunarSphere for TBC Classic and wed like to have it working for the three clients: Retail, Classic, and BCC. The Backdrop System Changes seems the most problematic to handle, as every single frame creation will have an extra argument for inheriting from `BackdropTemplate` for Retail and BCC, but not for Classic.
Any elegant way to handle this? I didn't want to pepper the code with `if` on every single frame declaration. Perhaps defining a `BackdropTemplate` only for the Classic client? We have some frame templates defined in XML, so I'm guessing we would need to define the template in XML as well (because it's parsed before the Lua code). Thanks! |
See https://www.wowinterface.com/forums/...19&postcount=8 for more ...
Something like this should do the trick ... Lua Code:
For xml-files I'd recommend to take a look at the new toc-change mentioned here ... https://github.com/Stanzilla/WoWUIBu...ment-830351390 This way you can have different xml-files loaded by providing client-based toc files. |
An alternative with xml to using different files is to use:
Code:
<OnLoad inherit="prepend"> Lua Code:
|
All times are GMT -6. The time now is 09:40 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI