Thread: Boss Frames
View Single Post
Unread 12-12-11, 07:35 PM   #8
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
It's not difficult at all... you can do it with any text editor (notepad even)

Edit [ Interface > AddOns > nUI > Layouts > Default > UnitPanels > {panel mode} > nUI_UnitPanel_{panel mode}.lua ] where "{panel mode}" is the type of unit panel you are using in your raids... i.e. Raid10, Raid 25, etc.

Now look for the "BOSS" frames in the file... they will be near the bottom and look something like this...

Code:
        [nUI_UNITFRAME_RAID10BOSS.."2"] = 
        {
            anchor = 
            {
                anchor_pt   = "TOPRIGHT",
                relative_to = "nUI_TopBars",
                relative_pt = "BOTTOM",
                xOfs        = -2.5,
                yOfs        = 7.5,
            },
            options = 
            {
                skinName  = nUI_UNITSKIN_BOSSFRAME,
                enabled   = true,
                
                strata    = nil,
                level     = 8,
                
                unit_id   = "boss2",
                party_id  = nil,
                raid_id      = nil,
                
                scale      = 1,
                clickable  = true,
                
                popup =
                {
                    anchor_pt = "TOPRIGHT",
                    relative_pt = "BOTTOM",
                    xOfs = 0,
                    yOfs = 0,
                    
                    color = { r = 0, g = 0, b = 0, a = 0.75 },
                };
            },
        },
        [nUI_UNITFRAME_RAID10BOSS.."3"] = 
        {
            anchor = 
            {
                anchor_pt   = "TOPLEFT",
                relative_to = "nUI_TopBars",
                relative_pt = "BOTTOM",
                xOfs        = 2.5,
                yOfs        = 7.5,
            },
            options = 
            {
                skinName  = nUI_UNITSKIN_BOSSFRAME,
                enabled   = true,
                
                strata    = nil,
                level     = 8,
                
                unit_id   = "boss3",
                party_id  = nil,
                raid_id      = nil,
                
                scale      = 1,
                clickable  = true,
                
                popup =
                {
                    anchor_pt = "TOPRIGHT",
                    relative_pt = "BOTTOM",
                    xOfs = 0,
                    yOfs = 0,
                    
                    color = { r = 0, g = 0, b = 0, a = 0.75 },
                };
            },
        },
        [nUI_UNITFRAME_RAID10BOSS.."1"] = 
        {
            anchor = 
            {
                anchor_pt   = "RIGHT",
                relative_to = nUI_UNITFRAME_RAID10BOSS.."2",
                relative_pt = "LEFT",
                xOfs        = -5,
                yOfs        = 0,
            },
            options = 
            {
                skinName  = nUI_UNITSKIN_BOSSFRAME,
                enabled   = true,
                
                strata    = nil,
                level     = 8,
                
                unit_id   = "boss1",
                party_id  = nil,
                raid_id      = nil,
                
                scale      = 1,
                clickable  = true,
                
                popup =
                {
                    anchor_pt = "TOPRIGHT",
                    relative_pt = "BOTTOM",
                    xOfs = 0,
                    yOfs = 0,
                    
                    color = { r = 0, g = 0, b = 0, a = 0.75 },
                };
            },
        },
        [nUI_UNITFRAME_RAID10BOSS.."4"] = 
        {
            anchor = 
            {
                anchor_pt   = "LEFT",
                relative_to = nUI_UNITFRAME_RAID10BOSS.."3",
                relative_pt = "RIGHT",
                xOfs        = 5,
                yOfs        = 0,
            },
            options = 
            {
                skinName  = nUI_UNITSKIN_BOSSFRAME,
                enabled   = true,
                
                strata    = nil,
                level     = 8,
                
                unit_id   = "boss4",
                party_id  = nil,
                raid_id      = nil,
                
                scale      = 1,
                clickable  = true,
                
                popup =
                {
                    anchor_pt = "TOPRIGHT",
                    relative_pt = "BOTTOM",
                    xOfs = 0,
                    yOfs = 0,
                    
                    color = { r = 0, g = 0, b = 0, a = 0.75 },
                };
            },
        },
There are only two lines you need to edit per unit frame... the xOfs and yOfs values in the "Anchor" section for each boss frame. I highlighted them in purple above. The xOfs value moves the frame left and right and the yOfs value moves it up and down.

Just experiment by changing the vales, doing a "file/save" in the panel file and then a '/nui rl' in game to see your changes. It shouldn't take long to get them the way you like them. Once you've done it in one panel file, it will be super simple to make the same changes in the other panel files.

And, if it all goes horribly wrong, just unzip the nUI download file overtop of your copy and it will be back to where I had it.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
spiel2001 is offline