VisualThemes

From WowAce Wiki

Jump to: navigation, search
Summary
VisualThemes
Base that provides animated transitions to UI elements.
TOC 2.3 (20300)
Category Interface Enhancements Addons
Author Kameril
Details
Embeds Ace2, DewdropLib, TabletLib, FuBarPlugin-2.0, Waterfall-1.0
Links
Betas Ace SVN Zip
Changelog FishEye

It basically brings Windows Vista's Aero theme or OSX to WoW's default UI elements by adding a transitional animation between frame states.

Currently VisualThemes supports a fading and scale theme. The theme allows either to be toggled and scaling to be adjusted.

Here's a short fraps of the Auction House and a few misc frames.
Here's a short fraps of an early version in action (Thanks Matrix110)

Contents

Caveats

The higher your FPS the better it works since the transitions will appear jumpy with lower FPS. The hiding process can be intrusive to certain frames, most of these are dealt with by special case within the theme. Certain frames cannot be hooked without causing tainting issues.

Known Issues

  • When Dewdrop Dropdowns are themed with ScaleFade and a new level is opened the frames may not sync up correctly.
  • Certain addons themes may not properly update after VisualThemes has been put into standby mode and resumed until the UI is reloaded.

Frames that cannot be themed

  • SpellBookFrame - Unable to cast from it.
  • FriendsFrame(Friends, Guild, Who, Raid) - Won't open in combat.
  • MacroFrame - Can't change macros while in combat.

Bug Reporting and Feature Requests

Currently, please direct both (including specific frame/addon requests) to the official thread

Localization

I still need help from translators! Currently everything in Locales/enUS.lua needs localization, if you wish to contribute post them in the official thread or pm me. Thanks.

Developer Information

If you're working on a mod and would like to support VisualThemes it's as simple as:

if VisualThemes then
VisualThemes:RegisterFrames(grouping, childDepth, ...)
end

Args

[grouping] 
<string> - The a brief descriptive name that groups the frames, such as "Quest Frames" or "MyMod Popup Windows"
[childDepth] 
<number|nil> - The depth of children of these frame(s) to theme. In most cases 0 works perfectly. The higher the number the demanding it is to theme. Defaults to 0.
[tuple] 
<string|frame object> - A list of frames by either their global name or frame object. Use global names if possible.

Remarks

Calling :RegisterFrames with the same group adds another frame to that group. Note that frames themed with ScaleFade won't have their OnHide scripts called immediately after :Hide() is called.

Example

local f = CreateFrame("Frame", "MyAddon_Frame", parent)
if VisualThemes then
VisualThemes:RegisterFrames("MyAddon Frames", 0, "MyAddon_Frame")
end
Personal tools
Support the Site