Jump to content

How do i put these /run commands into an addon?

/Run Commands scripts Into Addons

  • Please log in to reply
2 replies to this topic

#1 Clarize

  • Junkies
  • Posts: 46
  • Locationsweden

Posted 16 June 2013 - 12:27 AM

Hello, i've been configuring my UI for a while now using '/run' commands.
I'm abit tierd of wasting macro spaces for these commands and i've seen that u can put them into an addon.
the problem is that i have no clue what so ever how to do that.
If anyone have the time to help me that would be awesome.

Now, how do i put these into an file/addon?

/run PartyMemberFrame1:SetScale(1.5)
/run PartyMemberFrame2:SetScale(1.5)
/run PartyMemberFrame3:SetScale(1.5)
/run PartyMemberFrame4:SetScale(1.5)
/run PlayerFrame:SetScale(1.2)
/run TargetFrame:SetScale(1.2)
/run FocusFrame:SetScale(1.3)

/run BuffFrame:ClearAllPoints();BuffFrame:SetPoint("CENTER", PlayerFrame, "CENTER", 90, -85);BuffFrame.SetPoint = function() end
/run BuffFrame:SetScale(1.05)
/run TempEnchant1:SetScale(1.1)
/run TempEnchant2:SetScale(1.1)

/run DebuffButton1:ClearAllPoints();DebuffButton1:SetPoint("CENTER", PlayerFrame, "CENTER", 95, 75);DebuffButton1.SetPoint = function() end
/run DebuffButton1:SetScale(1.05)
/run MainMenuBarLeftEndCap:Hide();MainMenuBarRightEndCap:Hide(

thanks in advance.

#2 varellz

  • Junkies
  • Posts: 422
  • LocationGermany

Posted 16 June 2013 - 07:25 AM

well actually its descriped in thaya's great default UI scripts thread. But ill go for it:

http://www.mediafire...j/YourAddon.zip   download the template

copy all stuff in the LUA file and remove the /run

#3 Clarize

  • Junkies
  • Posts: 46
  • Locationsweden

Posted 17 June 2013 - 07:01 AM

#2 thanks, worked perfectly :)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users