Thread Tools Display Modes
03-05-15, 06:04 AM   #1
Djelil
A Murloc Raider
Join Date: Oct 2014
Posts: 5
Script to scale arena frames?

Hello, I am looking for a script to scale arena frames

Like

you have some idea?
Thank you per advance
  Reply With Quote
03-05-15, 06:34 AM   #2
Tonyleila
A Molten Giant
 
Tonyleila's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 758
Just googled this was the first result:
http://www.arenajunkies.com/topic/22...lt-ui-scripts/

Use this: http://addon.bool.no/

4.2. Scaling/moving arenaframes and castbars:

Code:
LoadAddOn("Blizzard_ArenaUI") -- You only need to run this once. You can safely delete any copies of this line.

ArenaEnemyFrame1:ClearAllPoints()
ArenaEnemyFrame2:ClearAllPoints()
ArenaEnemyFrame3:ClearAllPoints()
ArenaEnemyFrame4:ClearAllPoints()
ArenaEnemyFrame5:ClearAllPoints()

ArenaEnemyFrame1:SetPoint("CENTER",UIParent,"CENTER",350,50)
ArenaEnemyFrame2:SetPoint("CENTER",UIParent,"CENTER",350,0)
ArenaEnemyFrame3:SetPoint("CENTER",UIParent,"CENTER",350,-50)
ArenaEnemyFrame4:SetPoint("CENTER",UIParent,"CENTER",350,-100)
ArenaEnemyFrame5:SetPoint("CENTER",UIParent,"CENTER",350,-150)

ArenaEnemyFrame1.SetPoint = function() end
ArenaEnemyFrame2.SetPoint = function() end
ArenaEnemyFrame3.SetPoint = function() end
ArenaEnemyFrame4.SetPoint = function() end
ArenaEnemyFrame5.SetPoint = function() end
Frames have to be moved separately now. ClearAllPoints and blanketing the SetPoint method are both mandatory now for it to work properly. The only way to fit this in a macro is to loop it, I'll add this in later.

ArenaEnemyFrames:SetScale(1.3)

This scales up the whole thing, everything in the frames will be scaled up equally. Make sure this is after LoadAddOn("Blizzard_ArenaUI").

Code:
for i=1, 5 do
        _G["ArenaEnemyFrame"..i]:SetScale(1.3)
        _G["ArenaEnemyFrame"..i.."CastingBar"]:SetScale(1.3)
        -- _G["ArenaEnemyFrame"..i.."CastingBar"]:SetPoint("RIGHT", 95, 0)
end
This lets you scale things up separately if you want to. First line changes the scale of arena frames themselves. Second line changes the scale of the cast bar. Third line moves the cast bar to the right of the frame - its disabled here, just remove the "--" to enable it (just an example of using comments in code).
__________________
Author of: LeilaUI and Aurora: Missing Textures
__________________

Last edited by Tonyleila : 03-05-15 at 06:37 AM.
  Reply With Quote
03-05-15, 06:37 AM   #3
Djelil
A Murloc Raider
Join Date: Oct 2014
Posts: 5
Sadly this post is outdated since 2012, scripts to arena scale dont work to WoD

edit : thank you its work now !

Last edited by Djelil : 03-05-15 at 09:11 AM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Script to scale arena frames?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off