View Single Post
10-02-10, 10:27 AM   #271
Canities
A Wyrmkin Dreamwalker
Join Date: Oct 2007
Posts: 54
Originally Posted by Sec View Post
I am running into a spot of trouble in having my TinyDPS-related panels. Although they increase proportion correctly when the TinyDPS frame grows, they will not decrease in proportion if the frame shrinks during the play session due to fewer players being displayed by TinyDPS. How can I rectify this, if possible?
Hmm, my current code for tinyDPS changes size depending on people
Code:
lpanels:CreateLayout("TinyBG", {
    { name = "TinyBG", --Tiny DPS Frame
        parent = "tdpsFrame", anchor_frame = "tdpsFrame", 
        anchor_to = "BOTTOMRIGHT", anchor_from = "BOTTOMRIGHT", y_off = 0, x_off = 4,
        width = 169, height = "100%",
        gradient = "H", 
        bg_color = {0,0,0}, bg_alpha = 0,
        gradient_color = {0,0,0}, gradient_alpha = 0.5,
    },
        { name = "TinyBGTop", 
        parent = "TinyBG", 
        anchor_to = "BOTTOM", anchor_from = "TOP", y_off = 0, x_off = 0,
        width = "100%", height = 5,
        gradient = "H", 
        bg_color = {0,0,0}, bg_alpha = 0,
        gradient_color = {0,0,0}, gradient_alpha = 0.5,
    },
        { name = "BorderTop", parent = "TinyBGTop",
        anchor_to = "TOP", 
        width = "100%", height = 1,
        bg_color = {0,0,0}, bg_alpha = 0.75,
    },
        { name = "TinyBGBottom", 
        parent = "TinyBG",  
        anchor_to = "TOP", anchor_from = "BOTTOM", y_off = 0, x_off = 0,
        width = "100%", height = 5,
        gradient = "H", 
        bg_color = {0,0,0}, bg_alpha = 0,
        gradient_color = {0,0,0}, gradient_alpha = 0.5,
    },
    { name = "BorderBottom", parent = "TinyBGBottom",
        anchor_to = "BOTTOM", 
        width = "100%", height = 1,
        bg_color = {0,0,0}, bg_alpha = 0.75,
    },
})
Only diffrence is my code is parented and anchored to the tinyDPS frame, i then use a simple addon to locate TinyDPS to where i want it.

Cani
  Reply With Quote