PDA

View Full Version : Question to the raidframes



Ariya
07-06-2006, 01:19 AM
I have been looking though the old threads but I havnt been able to find any answer to this question ( I may be blind :confused: )

Thing is that I have been looking for some decent looking raidframes for a long time, the nurfed ones have excatly the looks I want +the configuration options are sweet.
My problem now is: Am I right when I only seem to be able to make them show % and not deficit of the raidmembers?

As I priest I base all my heals on the current amount missing from the target and I dont click every target each time I need to cast a heal -

So please tell me that I have missed a function or how I may (as a complete coding newb) Be able change this myself...

Edit: And secondly is it possible to remove the player/party frames and keep the raidframes, if so then how?

Thanks on advance :D

Ariya

Cleeq
07-06-2006, 02:12 AM
I'm sure if I looked into the coding there would be a way to get it to display only the missing HP like it does on normal Unit and Party frames. However, I'm lazy and sleepy at the moment so forgive me :)

As far as your second question, there is a thread in which it seems a few people have gotten it to work. I can't say for sure, as I haven't tried it yet. But its worth a look :D http://forums.nurfed.com/showthread.php?t=9735

BlackSource
07-06-2006, 05:58 AM
I have one question.
I setup my raid frmae, but when I relog it always appears attached to the top of my screen. It is never in the position I left it,, even if I have locked Nurfed.
Can anyone help?

Ariya
07-06-2006, 08:12 AM
Well Cleeq is there any chance I could convince you to look into it at some point when youre less sleepy or is there anyone else out there who is able to help me, since I am pretty sure Id screw something completely up if I tried to do something about it myself (girls and technics :P )

Its really a must for me to get these raidframes but I simply cant use them unless they show the deficit :(

Gigamo
07-06-2006, 09:06 AM
Don't know if this will work, backup your old layout/default first, but try changing this under the Nurfed_RaidUnit_Template:


hpperc = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 9, "OUTLINE" },
JustifyH = "RIGHT",
Anchor = "all",
TextColor = { 1, 0.25, 0 },
vars = { format = "$perc" },
},

with:


hpperc = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 9, "OUTLINE" },
JustifyH = "RIGHT",
Anchor = "all",
TextColor = { 1, 0.25, 0 },
vars = { format = "$miss" },
},

Kahkon
07-06-2006, 10:08 AM
I have one question.
I setup my raid frmae, but when I relog it always appears attached to the top of my screen. It is never in the position I left it,, even if I have locked Nurfed.
Can anyone help?

I am having same problem as well. I really want to try these raid frames but cannot get past them moving.

I got few other problems like no buffs showing, only debuffs, no right click support, No main tank frames. BUT if I could could get the damn things to sit still I would live with the lack of options till they are coded.

Kahkon
07-06-2006, 10:18 AM
Don't know if this will work, backup your old layout/default first, but try changing this under the Nurfed_RaidUnit_Template:


hpperc = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 9, "OUTLINE" },
JustifyH = "RIGHT",
Anchor = "all",
TextColor = { 1, 0.25, 0 },
vars = { format = "$perc" },
},

with:


hpperc = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 9, "OUTLINE" },
JustifyH = "RIGHT",
Anchor = "all",
TextColor = { 1, 0.25, 0 },
vars = { format = "$miss" },
},

This doesnt work at all, When I log out and back in all my raid windows reset to bottom of screen..It almost feels like it is resetting to default position where reloaded. If you resize your raid frames it jumps up and down the sceeen as well. They dont sit still. I just tossing out whats happeneing cause maybe the fix isnt where everyone thinks it is.

Gigamo
07-06-2006, 10:33 AM
Well, that bug is not because of this, that bug is with every version of the raid frames :P

Kahkon
07-06-2006, 10:37 AM
Well, that bug is not because of this, that bug is with every version of the raid frames :P

The scaling bug? ya it is in every version :p

The people using the raid frames are you experiencing this bug where raid frames dont stay put also?

grom
07-06-2006, 12:06 PM
i can't assert that it will work but this should show missing hp on the raidframe.


Nurfed_RaidUnit_Template = {
type = "Button",
size = { 105, 14 },
children = {
name = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 10, "OUTLINE" },
JustifyH = "LEFT",
--ShadowColor = { 0, 0, 0, 1},
--ShadowOffset = { -1, -1 },
Anchor = "all",
},
hpperc = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 9, "OUTLINE" },
JustifyH = "RIGHT",
Anchor = "all",
TextColor = { 1, 0.25, 0 },
vars = { format = "$perc" },
},
hp = {
type = "StatusBar",
size = { 105, 14 },
FrameStrata = "LOW",
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."statusbar7.tga",
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 },
StatusBarColor = { 0, 1, 0 },
children = {
text = {
type = "FontString",
size = { 29, 10 },
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 9, "NONE" },
JustifyH = "RIGHT",
TextColor = { 1, 1, 1 },
Anchor = { "LEFT", "$parent", "RIGHT", 0, 1 },
vars = { format = "$miss" },
},
},
},
mp = {
type = "StatusBar",
size = { 105, 14 },
FrameStrata = "LOW",
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."statusbar7.tga",
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 0, 0 },
StatusBarColor = { 0, 1, 1 },
},
debuff1 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parent", "RIGHT", 1, 0 } } },
debuff2 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentdebuff1", "RIGHT", 0, 0 } } },
debuff3 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentdebuff2", "RIGHT", 0, 0 } } },
debuff4 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentdebuff3", "RIGHT", 0, 0 } } },
},
OnClick = function() Nurfed_Unit_OnClick(arg1) end,
OnEnter = function() UnitFrame_OnEnter() end,
OnLeave = function() UnitFrame_OnLeave() end,
OnEvent = function() Nurfed_Units_OnEvent() end,
},

delete the red and add the green lines. the alignment will probably be very messy because the code is only copy&paste.

Kahkon
07-06-2006, 02:05 PM
This doesnt work at all, When I log out and back in all my raid windows reset to bottom of screen..It almost feels like it is resetting to default position where reloaded. If you resize your raid frames it jumps up and down the sceeen as well. They dont sit still. I just tossing out whats happeneing cause maybe the fix isnt where everyone thinks it is.


anyone else have a possible fix for this?

Ariya
07-07-2006, 03:19 AM
i can't assert that it will work but this should show missing hp on the raidframe.


Nurfed_RaidUnit_Template = {
type = "Button",
size = { 105, 14 },
children = {
name = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 10, "OUTLINE" },
JustifyH = "LEFT",
--ShadowColor = { 0, 0, 0, 1},
--ShadowOffset = { -1, -1 },
Anchor = "all",
},
hpperc = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 9, "OUTLINE" },
JustifyH = "RIGHT",
Anchor = "all",
TextColor = { 1, 0.25, 0 },
vars = { format = "$perc" },
},
hp = {
type = "StatusBar",
size = { 105, 14 },
FrameStrata = "LOW",
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."statusbar7.tga",
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 },
StatusBarColor = { 0, 1, 0 },
children = {
text = {
type = "FontString",
size = { 29, 10 },
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 9, "NONE" },
JustifyH = "RIGHT",
TextColor = { 1, 1, 1 },
Anchor = { "LEFT", "$parent", "RIGHT", 0, 1 },
vars = { format = "$miss" },
},
},
},
mp = {
type = "StatusBar",
size = { 105, 14 },
FrameStrata = "LOW",
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."statusbar7.tga",
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 0, 0 },
StatusBarColor = { 0, 1, 1 },
},
debuff1 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parent", "RIGHT", 1, 0 } } },
debuff2 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentdebuff1", "RIGHT", 0, 0 } } },
debuff3 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentdebuff2", "RIGHT", 0, 0 } } },
debuff4 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentdebuff3", "RIGHT", 0, 0 } } },
},
OnClick = function() Nurfed_Unit_OnClick(arg1) end,
OnEnter = function() UnitFrame_OnEnter() end,
OnLeave = function() UnitFrame_OnLeave() end,
OnEvent = function() Nurfed_Units_OnEvent() end,
},

delete the red and add the green lines. the alignment will probably be very messy because the code is only copy&paste.


This worked - However you changed the statusbar texture to '7' that should have been '6' and the anchor should have remained 'all' to keep the missing hp on the raidframe and not outside it =)

So the code I am using now is looking this way:


Nurfed_RaidUnit_Template = {
type = "Button",
size = { 105, 14 },
children = {
name = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 10, "OUTLINE" },
JustifyH = "LEFT",
--ShadowColor = { 0, 0, 0, 1},
--ShadowOffset = { -1, -1 },
Anchor = "all",
},
hp = {
type = "StatusBar",
size = { 105, 14 },
FrameStrata = "LOW",
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."statusbar6.tga",
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 0, 0 },
StatusBarColor = { 0, 1, 0 },
children = {
text = {
type = "FontString",
size = { 29, 10 },
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 9, "OUTLINE" },
JustifyH = "RIGHT",
TextColor = { 1, 1, 1 },
Anchor = "all",
vars = { format = "$miss" },
},
},
},
mp = {
type = "StatusBar",
size = { 105, 14 },
FrameStrata = "LOW",
Orientation = "HORIZONTAL",
StatusBarTexture = NRF_IMG.."statusbar7.tga",
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMLEFT", 0, 0 },
StatusBarColor = { 0, 1, 1 },
},
debuff1 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parent", "RIGHT", 1, 0 } } },
debuff2 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentdebuff1", "RIGHT", 0, 0 } } },
debuff3 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentdebuff2", "RIGHT", 0, 0 } } },
debuff4 = { template = "Nurfed_Unit_aura", properties = { size = { 14, 14 }, Anchor = { "LEFT", "$parentdebuff3", "RIGHT", 0, 0 } } },
},
OnClick = function() Nurfed_Unit_OnClick(arg1) end,
OnEnter = function() UnitFrame_OnEnter() end,
OnLeave = function() UnitFrame_OnLeave() end,
OnEvent = function() Nurfed_Units_OnEvent() end,
},


As a complete coding nub girl I was actually suprised how easy this stuff is to understand :p

And thank you very much Grom :D I can finally get rid of those ugly ctframes now

Cleeq
07-09-2006, 10:11 AM
Heh, I was recently on vacation, and didn't get the time to look over it sorry. I'm glad you got it all fixed :D

a67rhf7823jn8747==