PDA

View Full Version : My Frames



Squid_00
08-10-2006, 10:04 AM
Nothing spectacular but here's mine:

http://i35.photobucket.com/albums/d185/Hideakia/wowpics/nurfframe.gif
• Put Class Icon in the Target Frame (Thanks Erelen)
• Removed PvP from ALL Frames
• Moved/Resized Hp_Miss from right to left
• Centered Hp/Mp (Thanks Tarsos)
• Removed Pet from Party (Thanks Tarsos)
• Resized/Moved Name / Hp_Perc in Target
• Moved Target of Target to Bottom Right of Target
• Removed Target of Target's Target
• Hide Party in Raid (Thanks Franki)
-----------------------------------------------------
-----------------------------------------------------

"Colorations = Changes I made"

My Nurfed Adjustments:

Target of Target Target Removal:

-- targettarget = { template = "Nurfed_Unit_mini", properties = { Anchor = { "BOTTOMRIGHT", "$parent", "TOPRIGHT", 0, -3 } } },

Move Target of Target to bottom Right:

target = { template = "Nurfed_Unit_mini", properties = { Anchor = { "TOPLEFT", "$parent", "TOPRIGHT", -4, -27 } } },

Resize/Move the HpPerc for Target

hpperc = {
type = "FontString",
size = { 100, 9 },
layer = "OVERLAY",
Font = {NRF_FONT.."framd.ttf", 14, "NONE" },
JustifyH = "RIGHT",
Anchor = { "TOPRIGHT", "$parent", "TOPRIGHT", -62, -10 },
vars = { format = "$perc" },

Removing the PvP for ALL Frames:
"REMOVE"
1st: Nurfed_UnitsLayout.Layout-Player //
2nd: After Target = "debuff16 = "...


Line 391 Start:
rank = {
type = "Texture",
size = { 17, 17 },
layer = "OVERLAY",
Anchor = { "TOPRIGHT", "$parent", "TOPRIGHT", -23, -4 },

Line 553 Start:
rank = {
type = "Texture",
size = { 20, 20 },
layer = "OVERLAY",
Anchor = { "TOPRIGHT", "$parent", "TOPLEFT", 3, -4 },
},

Add Class INSTEAD of PvP Rank for Target:
Replace:

Line 553 Start:
rank = {
type = "Texture",
size = { 20, 20 },
layer = "OVERLAY",
Anchor = { "TOPRIGHT", "$parent", "TOPLEFT", 3, -4 },
},

With:

classicon = {
type = "Texture",
size = { 16, 16 },
layer = "OVERLAY",
Texture = "Interface\\Glues\\CharacterCreate\\UI-CharacterCreate-Classes",
Anchor = { "TOPRIGHT", "$parent", "TOPRIGHT", -45, -5},

Resize/Move Hp-Miss:Nurfed_Unit_Hp:

Line 61:
text2 = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 11, "OUTLINE" },
JustifyH = "LEFT",
TextColor = { 1, 0.25, 0 },
Anchor = "all",
vars = { format = "$miss" },

Remove Pet from Party: Party

Line725:
-- "UNIT_PET",


Line:833
--
partypet = {
template = "Nurfed_Unit_mini",
properties = {
events = { "UNIT_NAME_UPDATE", "UNIT_HEALTH", "UNIT_MAXHEALTH" },
Anchor = { "BOTTOMLEFT", "$parent", "BOTTOMRIGHT", -4, 2 },
OnEvent = function() Nurfed_Units_OnEvent() end,
},
},
};
end --

Hide Party in Raid: Line 737 + 831 in "Party ="


ADD: "RAID_ROSTER_UPDATE",

to bottom of:
"UNIT_AURA",
-- "UNIT_PET",


Change:
OnEvent = function() Nurfed_Units_OnEvent() end,
OnClick = function() Nurfed_Unit_OnClick(arg1) end,

To:
OnEvent = function()
if (HIDE_PARTY_INTERFACE == 1 and UnitInRaid("player"))
then this:Hide()
else
Nurfed_Units_OnEvent() end
end,
OnClick = function() Nurfed_Unit_OnClick(arg1) end,

Gigamo
08-10-2006, 11:50 AM
You can't change your health bar color on the way you change mana color. That's why you get errors.

You have to change values in Nurfed_Utility\Nurfed_Units.lua

Squid_00
08-10-2006, 02:04 PM
I was using that format from what someone posted in regards to changing the hp/mana color, but I don't think I will anyways, it takes away from the original theme of things, I think...:)

Squid_00
08-10-2006, 02:55 PM
You can't change your health bar color on the way you change mana color. That's why you get errors.

You have to change values in Nurfed_Utility\Nurfed_Units.lua

Not finding this... is it R, G, B kind of thing or?

Gigamo
08-11-2006, 02:13 AM
Find this function in Nurfed_Units.lua:


function Nurfed_Units:GetHealth(unit)

Then change the values in red:


local perc = currhp/maxhp;
local color = {};
if(perc > 0.5) then
color.r = (1.0 - perc) * 2;
color.g = 0.85;
else
color.r = 1.0;
color.g = perc * 2;
end

Blu
08-11-2006, 03:57 AM
Wow, thanks, i always wanted to scale the HP numbers bigger.

Squid_00
08-11-2006, 08:09 AM
Find this function in Nurfed_Units.lua:


function Nurfed_Units:GetHealth(unit)

Then change the values in red:


local perc = currhp/maxhp;
local color = {};
if(perc > 0.5) then
color.r = (1.0 - perc) * 2;
color.g = 0.85;
else
color.r = 1.0;
color.g = perc * 2;
end

This for the Hp Bar itself? Because I Found the following:
http://forums.nurfed.com/showthread.php?t=10515&page=6

Scroll bout 1/2 way down, I keep getting an error where the person says to put the code in...

Squid_00
08-11-2006, 08:37 AM
did some other adjustments, enclosing another Layout.Lua

http://i35.photobucket.com/albums/d185/Hideakia/wowpics/nurfframe3.gif

Debuffs:
http://i35.photobucket.com/albums/d185/Hideakia/wowpics/nurffdebuff.gif

With this one I:
• Removed the Hp_Miss "for those who find it unnecessary"
• Moved/Resized the Name & Level of Player
**• Moved/Resized the "100%" of Target
• Resized/Move the Class/Level of Target
• Moved Debuffs to underneath Target (Thanks Tanque & Dunce)
** Shown in OP.

Coloration = my own changes

Removing Hp Missed:
REMOVE
Line 61: Remove following line to remove Hp_Miss:

Line 61:
text2 = {
type = "FontString",
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 11, "OUTLINE" },
JustifyH = "LEFT",
TextColor = { 1, 0.25, 0 },
Anchor = "all",
vars = { format = "$miss" },

Move/Resize Level in Player Window:

level = {
type = "FontString",
size = { 20, 10 },
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 12, "NONE" },
JustifyH = "RIGHT",
Anchor = { "TOP", "$parent", "TOP", 74, -5 },
vars = { format = "$lev" },

Move/Resize Player Name in Player:

name = {
type = "FontString",
size = { 65, 9 },
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 12, "NONE" },
JustifyH = "LEFT",
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 45, -4 },
vars = { format = "$nam" },

Resize/Move Class/Level of Target:

level = {
type = "FontString",
size = { 90, 8 },
layer = "OVERLAY",
Font = { NRF_FONT.."framd.ttf", 10, "NONE" },
JustifyH = "LEFT",
Anchor = { "TOPLEFT", "$parent", "TOPLEFT", 5, -13 },
vars = { format = "$lev $cla" },

Squid_00
08-11-2006, 05:38 PM
Think I got it working... :)

Squid_00
08-12-2006, 01:17 PM
Hp Color and Mana Colors

You can do this yourself, thanks Gigamo for the info.

Red = my Changes

Beginning of your Default or Layout.Lua Add the following
Mana/Rage/Energy a little darker:

-- $key = Key Binding
----------------------------------------------------------------------------------------

-- mana
ManaBarColor[0] = { r = (128/255), g = (128/255), b = (255/255), prefix = TEXT(MANA) };
--rage
ManaBarColor[1] = { r = (172/255), g = (0/255), b = (0/255), prefix = TEXT(MANA) };
--energy
ManaBarColor[3] = { r = (240/255), g = (240/255), b = (120/255), pwwwrefix = TEXT(MANA) };

These Rgb colors you can mess with in Psp9 or whatever art program you have.

The Hp on the other hand are more complicated, well for me at least:
In Nurfed_Utility / Nurfed_Units.Lua Find:

function Nurfed_Units:GetHealth(unit)
local currhp, maxhp = UnitHealth(unit), UnitHealthMax(unit);
if (not UnitIsConnected(unit)) then
currhp = 0;
end
local perc = currhp/maxhp;
local color = {};
if(perc > 0.5) then
color.r = (1.0 - perc) * 2;
color.g = 0.8;
else
color.r = 1.0;
color.g = perc * 2;
end
color.b = 0.0;
perc = format("%.0f", floor(perc * 100));
return currhp, maxhp, perc, color;

Guess you can mess with the decimal number to get what you want..
------------------------------------------
From what I mentioned above Images:
http://i35.photobucket.com/albums/d185/Hideakia/wowpics/nurfhp.gif

a67rhf7823jn8747==