WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   nUI: Customizing Layouts (https://www.wowinterface.com/forums/forumdisplay.php?f=95)
-   -   Few questions :) (https://www.wowinterface.com/forums/showthread.php?t=25349)

Depresjon 07-11-09 08:24 AM

Few questions :)
 
question 1 : Could someone learn me abit more about the hud art?
or could some1 make the art ''diablo'' style or learn me how to do?

Question 2 : Is there a way to use ''moving parts'' in the art,like a gif is moving or aint that inpossible with the bpl format?

spiel2001 07-11-09 11:44 AM

It is possible to do animate textures, but you'll have to code Lue to do the animation. As for how to do the HUD art, check the thread in this forum where Havoxx was working on the tribal HUD... for that matter, have a chat with Havoxx since he's already done it and have a look at his tribal HUD plugin.

Depresjon 07-11-09 12:28 PM

Thx for the explaining.
Animated Ui would be nice i think

havoxx 07-11-09 07:30 PM

Let's work my majik here on the keys. Basically, all you want to look at is in your interface\addons\nui\layouts\default\hudlayouts\ and well, I'll leave you to the LUA, in each LUA, there are lines that look like this...

Code:

    anchor =
            {
                anchor_pt  = "CENTER",
                relative_to = nUI_HUDLAYOUT_PLAYERTARGET.."Left",
                xOfs = 0,
                yOfs = 0,
            },       
            options =
            {
                enabled  = true,
                height  = 600,
                width    = 300,
                inset    = 0,
                strata  = nil,
                level    = nil,
               
                bar =
                {
                    enabled    = true;
                    orient    = "BOTTOM",
                    min_offset = 0.01171875,
                    max_offset = 0.990234375,
                    texture    = "Interface\\AddOns\\nUI\\Layouts\\Default\\Art\\nUI_HUD_lhb1",
                    overlay    = "Interface\\AddOns\\nUI\\Layouts\\Default\\Art\\nUI_HUD_lhf1
",
                },

The underlined bold, that's what you want to look at. Essentially, you adjust those files, and rename them, the min offset is the 0 point of your skin, in other words, the very bottom you want your skin to start at.

This is a very tricky one to do, you need to do it properly, and essentially, after you have your art ingame, you need to adjust them. For me, since my tribal hud is shorter, I needed to drop the max offset to .5, since my hud is about half the size of the original.

I won't tell you it's easy, the graphics and offsets aren't any work essentially, it's making graphics and simple trial and error. Here's where the fun stuff comes..... in those same files, there are lines that read like this.
Code:

            max_health =
                {
                    enabled    = true,
                    maxcolor    = true,
                    fontsize    = 16,
                    justifyH    = "RIGHT",
                    justifyV    = "MIDDLE",
                    anchor_pt  = "TOPRIGHT",
                    relative_to = "$parent_Health",
                    relative_pt = "TOP",
                    xOfs        = -65,
                    yOfs        = -30,
                },
               
                cur_health =
                {
                    enabled    = true,
                    barcolor    = true,
                    fontsize    = 15,
                    justifyH    = "RIGHT",
                    justifyV    = "MIDDLE",
                    anchor_pt  = "BOTTOMRIGHT",
                    relative_to = "$parent_Health",
                    relative_pt = "BOTTOM",
                    xOfs        = -75,
                    yOfs        = 0,
                },
               
                pct_health =
                {
                    enabled    = true,
                    barcolor    = true,
                    fontsize    = 17,
                    justifyH    = "RIGHT",
                    justifyV    = "MIDDLE",
                    anchor_pt  = "BOTTOMRIGHT",
                    relative_to = "$parent_Health",
                    relative_pt = "BOTTOM",
                    xOfs        = -90,
                    yOfs        = 30,

Those are the text blocks, I'll leave that to you, essentially, the relative_to you don't touch, the offsets are the main ones you need to modify, I find setting the Anchor_pt and relative_pt to center, are the easiest ways to start, and work for there.

This is as far as I can go, I hope I helped you, but I don't know how to explain it any more, good luck.

Depresjon 07-12-09 12:39 AM

thx havoxx for your help.
ill give it a shot when i find some time.


All times are GMT -6. The time now is 08:04 AM.

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