PDA

View Full Version : Dragon HUD scaling



p0seidon
09-27-2006, 05:15 PM
Great work on the new nurfedui. Just a question, can you scale the dragon hud at all?

really great work, just really not used to it and takes up quite a bit of viewing area. So if I cant scale it down can you eliminate parts of it, ie, take out the dragons leave the casting bar art?

Tyrellas
09-27-2006, 10:06 PM
To leave the cast bar, just copy the default layout into the layout.lua file, but leave the part for the cast bar from the dragon hud. I think that should work. As far as scaling it, I don't know, you might be able to open the textures in Photoshop and change the dimentions that way if you really want..

Ralrra
09-28-2006, 04:37 AM
Scaling is actually extremely easy. Open up layout.lua and look for this type of code.


hp = {
type = "Texture",
layer = "OVERLAY",
size = { 200, 400 },
Texture = NRF_HUD_IMG.."player_health",
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 0, 0 },
--VertexColor = { 0, 0, 0, 0.60 },
vars = {
bar = 234,
height = 400,
width = 200,
fill = "top",
},
},

Basically you just have to change the numerical values highlighted in red. It's probably best to keep them proportionate though, or the image will look stretched/squashed. so you could scale it down to 1/2 size by using 100, 200 for instance. Repeat the size changes for both hp/mp and their backgrounds, for both player and target.

By scaling it down however, it may adversely effect where the objects are placed relative to your character. You can alter that with the code line in blue.

a67rhf7823jn8747==