WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   OpenRDX: Feature Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=104)
-   -   Status bar picker (https://www.wowinterface.com/forums/showthread.php?t=40997)

Narinka 07-26-11 01:18 PM

Status bar picker
 
Atm, stack text font in Status bar picker is anchored to the status bar frame, can we make it anchored to the icon please?

I mean..
I wish to see stack text in the center of the icon and have no way to do this.

Cripsii 07-27-11 03:53 AM

Ok !

Logout
Go to Wow Install folder
Interface/Addons/VFL/UI/FrameClasses

Open StatusBarTexture.lua in your favorite editor

Search for "-- stacktext" (without "") normaly on line 259

and replace
Code:

-- stacktxt
        f.stacktxt = VFLUI.CreateFontString(f);
        f.stacktxt:SetAllPoints(f);
        VFLUI.SetFont(f.stacktxt, desc.stacktxt, nil, true);
        f.stacktxt:Show();

with
Code:

-- stacktxt
        if desc.showicon then
        f.stacktxt = VFLUI.CreateFontString(f);
        f.stacktxt:SetAllPoints(f.icon);
        VFLUI.SetFont(f.stacktxt, desc.stacktxt, nil, true);
        f.stacktxt:Show();
        else
        f.stacktxt = VFLUI.CreateFontString(f);
        f.stacktxt:SetAllPoints(f);
        VFLUI.SetFont(f.stacktxt, desc.stacktxt, nil, true);
        f.stacktxt:Show();
        end

Save and relog.

If you enable the icon, the stack automaticaly get the icon for parent, else the anchor is the frame if the icon is disable.

Good luck !

sigg 07-28-11 09:28 AM

Add into RDX.

Thanks


All times are GMT -6. The time now is 01:54 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI