Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-24-21, 10:34 AM   #1
fullmoon_sulfuras
A Fallenroot Satyr
Join Date: Dec 2019
Posts: 21
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!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Supporting multiple clients


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off