View Single Post
10-02-10, 08:23 AM   #269
Sec
A Cyclonian
 
Sec's Avatar
Join Date: Jan 2008
Posts: 48
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?

I have used kgPanels for the same functionality, and I had to utilize an OnUpdate script to make sure those panels would resize when TinyDPS' frame did.

The following is my layout code, and I admit it may be overly complex, but my experiments with nesting panels to attain the same look did not work out too well so. I'll leave that for another post/day.


Code:
{   name = "tdpsTopBlack", parent = "tdpsFrame",
    anchor_to = "TOP", x_off = 0, y_off = 1,
    width = "100%", height = 3,
    bg_color = "0 0 0", bg_alpha = 1,
},
{   name = "tdpsTopColor", parent = "tdpsTopBlack",
    anchor_to = "CENTER", x_off = 0, y_off = 0,
    width = "99%", height = 1,
    bg_color = ".20 .20 .20", bg_alpha = 1,
},
{   name = "tdpsBottomBlack", parent = "tdpsFrame",
    anchor_to = "BOTTOM", x_off = 0, y_off = -1,
    width = "100%", height = 3,
    bg_color = "0 0 0", bg_alpha = 1,
},
{   name = "tdpsBottomColor", parent = "tdpsBottomBlack",
    anchor_to = "CENTER", x_off = 0, y_off = 0,
    width = "99%", height = 1,
    bg_color = ".20 .20 .20", bg_alpha = 1,
},{   name = "tdpsLeftBlack", parent = "tdpsFrame",
    anchor_to = "LEFT", x_off = -1, y_off = 0,
    width = 3, height = "100%",
    bg_color = "0 0 0", bg_alpha = 1,
},
{   name = "tdpsLeftColor", parent = "tdpsLeftBlack",
    anchor_to = "CENTER", x_off = 0, y_off = 0,
    width = 1, height = "100%",
    bg_color = ".20 .20 .20", bg_alpha = 1,
},
{   name = "tdpsRightBlack", parent = "tdpsFrame",
    anchor_to = "RIGHT", x_off = 1, y_off = 0,
    width = 3, height = "100%",
    bg_color = "0 0 0", bg_alpha = 1,
},
{   name = "tdpsRightColor", parent = "tdpsRightBlack",
    anchor_to = "CENTER", x_off = 0, y_off = 0,
    width = 1, height = "100%",
    bg_color = ".20 .20 .20", bg_alpha = 1,
},
{   name = "tdpsBackground", parent = "tdpsFrame",
    anchor_to = "CENTER", x_off = 0, y_off = 0,
    width = "97%", height = "100%",
    inset = { top = 2, bottom = 2 },
    bg_color = ".20 .20 .20", bg_alpha = 1,
},
  Reply With Quote