Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-15-13, 08:37 PM   #1
Aanson
A Flamescale Wyrmkin
Join Date: Aug 2009
Posts: 122
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,

Aanson
__________________
__________________

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

Go BackWoWInterface » 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