Thread Tools Display Modes
Unread 07-11-09, 08:24 AM   #1
Depresjon
A Chromatic Dragonspawn
 
Depresjon's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 191
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?
__________________


New!!!
Depresjon's nUI corner : link

Depresjon is offline  
Unread 07-11-09, 11:44 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
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.
__________________

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  
Unread 07-11-09, 12:28 PM   #3
Depresjon
A Chromatic Dragonspawn
 
Depresjon's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 191
Thx for the explaining.
Animated Ui would be nice i think
__________________


New!!!
Depresjon's nUI corner : link

Depresjon is offline  
Unread 07-11-09, 07:30 PM   #4
havoxx
A Chromatic Dragonspawn
 
havoxx's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 152
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.
__________________
havoxx is offline  
Unread 07-12-09, 12:39 AM   #5
Depresjon
A Chromatic Dragonspawn
 
Depresjon's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 191
thx havoxx for your help.
ill give it a shot when i find some time.
__________________


New!!!
Depresjon's nUI corner : link

Depresjon is offline  
 

Go BackWoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Customizing Layouts » Few questions :)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off