WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Customizing Layouts (https://www.wowinterface.com/forums/forumdisplay.php?f=95)
-   -   Cast bar question (https://www.wowinterface.com/forums/showthread.php?t=23392)

Dudeness83 05-08-09 10:43 AM

Cast bar question
 
Is there anyway i can scale down the size of the castbar?

Xrystal 05-08-09 10:49 AM

Only by editing the nUI_HUDSkin_#######_Castbar.lua file of the respective hud layouts available in nUI/Layouts/Default/HUDLayouts.

This is what it is set to by Default:

Code:


                ["Casting"] =
                {
                        anchor =
                        {
                                anchor_pt  = "BOTTOM",
                                relative_to = nUI_HUDLAYOUT_PLAYERTARGET.."Bottom",
                                relative_pt = "TOP",
                                xOfs        = 0,
                                yOfs        = 130,
                        },               
                        options =
                        {
                                enabled = true,
                                height  = 40,
                                width  = 375,
                                inset  = 0,
                                strata  = nil,
                                level  = 4,
                               
                                orient      = "LEFT",
                                persist      = false,
                                show_bar    = true,
                                show_gcd    = false,
                                show_latency = true,       
                                overlay    = "Interface\\AddOns\\nUI\\Layouts\\Default\\Art\\nUI_BarOverlay1",
                               
                                cur_time =
                                {
                                        enabled    = true,
                                        fonsize    = 11,
                                        justifyH    = "RIGHT",
                                        justifyV    = "MIDDLE",
                                        anchor_pt  = "RIGHT",
                                        xOfs        = -5,
                                        yOfs        = 1,
                                       
                                        color = { r = 1, g = 1, b = 1, a = 1 },
                                },
                               
                                spell_name =
                                {
                                        enabled    = true,
                                        fonsize    = 11,
                                        justifyH    = "LEFT",
                                        justifyV    = "MIDDLE",
                                        anchor_pt  = "LEFT",
                                        xOfs        = 5,
                                        yOfs        = 1,
                                       
                                        color = { r = 1, g = 1, b = 1, a = 1 },
                                },
                               
                                msg_label =
                                {
                                        enabled  = true,
                                        fonsize    = 13,
                                        justifyH  = "CENTER",
                                        justifyV  = "MIDDLE",
                                        anchor_pt = "CENTER",
                                        xOfs      = 0,
                                        yOfs      = 1,
                                       
                                        color = { r = 1, g = 0, b = 0, a = 1 },
                                },
                       
                                border =
                                {
                                        backdrop =
                                        {
                                                bgFile  = "Interface\\Tooltips\\UI-Tooltip-Background",
                                                edgeFile = nil,
                                                tile    = true,
                                                tileSize = 1,
                                                edgeSize = 5,
                                                insets  = { left = 0, right = 0, top = 0, bottom = 0 },
                                        },                                       
                                        color =
                                        {
                                                border  = { r = 0, g = 0, b = 0, a = 0 },
                                                backdrop = { r = 0, g = 0, b = 0, a = 0.75 },
                                        },
                                },
                        },
                },


spiel2001 05-08-09 11:01 AM

As a matter of record, I'm pretty sure that the default code has "show_gcd" set to true, not false, on the player casting bar. I'm not sure if the one copied there was the player or target bar. The offsets look to me like it's the player bar which normally would display the GCD.

Xrystal 05-08-09 11:03 AM

yeah the global cooldown code was above it. But where the question was on the castbar I just posted that relevant code

It was the PlayerTarget hud and I've never changed that code before so that is as is. The global cooldown code above it is the GCD section.

spiel2001 05-08-09 11:09 AM

Nope.. you're confusing the cooldown bar with the GCD. The GCD does not have a separate bar, it's part of the player casting bar itself (actually an option to the casting bar).

Gonna have to look into that... might be something broken here because if show_gcd is set to false on your player casting bar, then you shouldn't be seeing the global cooldown indicator at all (the ball on a string in the casting bar -- as I like to describe it) -- if that's the default way the code is being shipped I messed something up somewhere.

Glad you posted that... looks like a bug then.


All times are GMT -6. The time now is 06:28 PM.

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