WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   <Layer> => .lua? (https://www.wowinterface.com/forums/showthread.php?t=20525)

Sythalin 02-13-09 12:30 AM

<Layer> => .lua?
 
Yes, yes, more questions. I've scoured wowwiki and can't find anything on making layers via .lua:

Code:

<Layer level="OVERLAY">
    <FontString inherits="GameFontNormal" text="Text">
        <Anchors>
            <Anchor point="TOP" relativeTo="$parent">
                <Offset><AbsDimension x="0" y="-15"/></Offset>
            </Anchor>
        </Anchors>
    </FontString>
</Layer>

Just need various text labels displayed.

Brodrick 02-13-09 02:55 AM

http://www.wowwiki.com/Widget_API#La...on_Derivatives

http://www.wowwiki.com/Widget_API#LayeredRegion

http://www.wowwiki.com/Layer

Layers aren't things you create, there are 5 preset layers that you can set Textures and FontStrings to on create or using the SetDrawLayer method.

Eggi 02-13-09 03:06 AM

Quote:

local fontstring = frame:CreateFontString()
fontstring:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME")
fontstring:SetText("your text")
fontstring:SetPoint("TOPLEFT", barf, "TOPLEFT", 5 , 1)
Put that in a loop and you get as many labels as you like.


All times are GMT -6. The time now is 02:18 PM.

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