My Addon HELP ME!!!!

My Addon HELP ME!!!!

Postby Lovedeath » 26 Jan 2015, 12:37

Currently my code is:


local powerbar = true
if powerbar == true then
if UnitClass("player") == "Priest" then
f = CreateFrame("Frame", "FakePlayerFrame");
f.unit = "player";
PlayerFrame:SetScale(1.2);
TargetFrame:SetScale(1.2);
FocusFrame:SetScale(1.2);
PartyMemberFrame1:SetScale(1.5);
PartyMemberFrame2:SetScale(1.5);
PetFrame:SetScale(0.9)
end
end


Well, In summary, I'm playing with small interface but the I enlarge Frames me to see them better.

1. I like to have the command for MODIFY the location of the Party1 and 2, I tried with SetPoint, but I could not get it.
2. Another problem encountered is in my the principle of code


if UnitClass("player") == "Priest"


Which, I have to modify every time I play with Mage or a different class (I wish it were for ALL classes).

Nothing more, thank you !!!!
User avatar
 
Posts: 2
Joined: 15 Nov 2013, 11:58
 

Re: My Addon HELP ME!!!!

Postby Lawz » 26 Jan 2015, 13:09

If you just want to enlarge/move frames, here is a generic code:

PartyMemberFrame1:ClearAllPoints()
PartyMemberFrame1:SetPoint("BOTTOM", PlayerFrame, -40, -65)
PartyMemberFrame1:SetScale(1.3)
PartyMemberFrame1.SetPoint = function() end
(it's just an example taken from my UI, you can remove 2nd line for example if you only want to resize, and place it another place ofc)

Just do the same for every frames, if you need the name of a frame, type /fstack in the chat.
Nuriloria wrote:DK damage is LOW

skyL wrote:UnhDk are one of most hardest classes.

Audaciter wrote:most dpriests can handle a warrior alone for roughly 2 mins

argorok wrote:theres nothing wrong about warrior dmg

Brainac wrote:we do play at peak times often [...] those remaining good teams are just queue dodging us
User avatar
 
Posts: 1637
Joined: 26 Jun 2012, 22:51
 

Re: My Addon HELP ME!!!!

Postby Lovedeath » 26 Jan 2015, 13:13

Lawz wrote:If you just want to enlarge/move frames, here is a generic code:

PartyMemberFrame1:ClearAllPoints()
PartyMemberFrame1:SetPoint("BOTTOM", PlayerFrame, -40, -65)
PartyMemberFrame1:SetScale(1.3)
PartyMemberFrame1.SetPoint = function() end
(it's just an example taken from my UI, you can remove 2nd line for example if you only want to resize, and place it another place ofc)

Just do the same for every frames, if you need the name of a frame, type /fstack in the chat.




Thanks Lawz, but but how would be the header Addon?
User avatar
 
Posts: 2
Joined: 15 Nov 2013, 11:58
 

Re: My Addon HELP ME!!!!

Postby Lawz » 26 Jan 2015, 13:34

Easy to find on the internet. I'll give it to you later if you don't find.
Nuriloria wrote:DK damage is LOW

skyL wrote:UnhDk are one of most hardest classes.

Audaciter wrote:most dpriests can handle a warrior alone for roughly 2 mins

argorok wrote:theres nothing wrong about warrior dmg

Brainac wrote:we do play at peak times often [...] those remaining good teams are just queue dodging us
User avatar
 
Posts: 1637
Joined: 26 Jun 2012, 22:51
 

Return to Addons

Who is online

Users browsing this forum: No registered users and 15 guests