//! `CreateFrame`'s fourth argument against real FrameXML templates, loaded the way the client //! loads them: the addon idiom `CreateFrame("Button", "MyTab", UIParent, "TabButtonTemplate")` //! then `getglobal("MyTab".."Text")`. mod common; use benilla_ui::script::UiScript; /// The prefix of the production load these templates need. `FauxScrollFrameTemplate` and /// `TabButtonTemplate` are the stock ones, from `UIPanelTemplates.xml` on the player's chain. const FILES: &[&str] = &[ "Interface\\FrameXML\\GlobalStrings.lua", "Interface\\FrameXML\\Fonts.xml", "Interface\\FrameXML\\BasicControls.xml", // `TEXT`, which StaticPopup.lua reads at file scope "Interface\\FrameXML\\LocaleProperties.lua", r"Interface\FrameXML\UIParent.xml", r"Interface\FrameXML\MoneyFrame.lua", r"Interface\FrameXML\MoneyFrame.xml", r"Interface\FrameXML\UIPanelTemplates.lua", r"Interface\FrameXML\UIPanelTemplates.xml", "Interface\\FrameXML\\StaticPopup.xml", // the dialog engine // A guard, not a dependency: its whole body is `