Quantcast EffectiveScale vs width and height - WoWInterface
Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-15-13, 09:37 PM   #1
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 124
Question EffectiveScale vs width and height

Hi again.

I've got a sort..of..viewport border around my screen which I've made to change colour depending on whether I'm in combat, resting, away, dead, etc.

Is there a way to make a frame 'immune' to changes in scale?

I've tried using, for example:

Lua Code:
  1. myFrame:SetWidth(GetScreenWidth() * 0.005);

... instead of using a conventional fixed width, but surprisingly, even that doesn't remain the same size when scale is changed.

EDIT: I know there isn't any OnScaleChanged handler that I can use. If I change the scale and re-submit the above code, all seems okay. Is there any way around this necessity?

Is there a magic formula that I'm unaware of?

Thanks in advance as always,


Last edited by Aanson : 01-15-13 at 09:47 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » EffectiveScale vs width and height

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