WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   addon to open AH and char info in same time? (https://www.wowinterface.com/forums/showthread.php?t=42221)

xromania™ 12-26-11 08:46 AM

addon to open AH and char info in same time?
 
is one pls? is a verry important thing and no one??

Rilgamon 12-26-11 09:52 AM

the addon is called bigger screen :)

OmegaExtreme 12-26-11 12:52 PM

lower your UI Scale.

Phanx 12-26-11 07:02 PM

WoW automatically decides how many windows can be open at the same time without overlapping each other or other frames (such as your bags, or the minimap) based on the pixel size of your screen (screen resolution) and the size of each UI object (controlled by your UI scale). To fit more windows on the screen, you either need to increase your screen resolution (or use a larger monitor), or decrease your UI scale.

Dridzt 12-26-11 07:29 PM

Code:

local eventframe=CreateFrame("FRAME")
eventframe:SetScript("OnEvent",
function(self,event,...)
        return self[event] and self[event](...)
end)
eventframe:RegisterEvent("AUCTION_HOUSE_SHOW")
function eventframe.AUCTION_HOUSE_SHOW()
        ToggleCharacter("PaperDollFrame")
end

You can use the code at Vladinator's World of Warcraft: Addon Creator to make a simple addon out of it.

Unless I totally misunderstood the request :p

OmegaExtreme 12-26-11 07:38 PM

Quote:

Originally Posted by Phanx (Post 250107)
To fit more windows on the screen, you either need to increase your screen resolution (or use a larger monitor), or decrease your UI scale.

Or both (word limit)

Phanx 12-26-11 09:14 PM

Quote:

Originally Posted by Dridzt (Post 250109)
Unless I totally misunderstood the request :p

The OP's screen resolution and/or UI scale do not permit both windows to be shown at the same time. Your code doesn't bypass Blizzard's UI panel handling, so all that will happen is that the user will open the auction house, then your addon will open the character pane, and WoW will decide that the user's screen is not wide enough to show both windows at their present size and close the auction house to make room for the character panel.

You could probably override the default UI panel handling, but doing so would also probably cause things to break in combat, since some UI panels (like the spellbook) are secure.

Aside from the obvious and extremely simple solutions of increasing the screen resolution or reducing the UI scale, another solution would be to remove one or both of the windows in question from the list of frames to be managed by the Blizzard panel handling system, but then you would also need to write more code to manage their positions yourself (so they didn't overlap each other, for example). Doesn't seem worthwhile.

Dridzt 12-26-11 09:58 PM

Where in OP does it say that his problem is screen resolution or that opening one frame closes the other (which would lead one to assume what you said)

All I see is
Code:

addon to open AH and char info in same time?
I took that to mean "open character pane alongside AH automatically".

I guess until he's back to the thread we won't know :)

SDPhantom 12-27-11 12:45 AM

A bigger monitor won't really do anything since the UI coordinate system is always rendered at a base height of 768 and adjusts the width according to the aspect ratio.



According to the following data, the following formula should give you the needed scale.
Code:

Scale = BaseHeight / AspectRatio / RequiredWidth
BaseHeight is always 768 and RequiredWidth seems to be 1476.



For a 5:4 monitor:
Code:

0.6504 ~= 768 / (5/4) / 1476
For a 4:3 monitor:
Code:

0.6938 ~= 768 / (4/3) / 1476
For a 16:9 monitor:
Code:

0.9250 ~= 768 / (16/9) / 1476

Seerah 12-27-11 01:37 AM

But a widescreen vs. a 4:3 monitor would do the trick. :)

SDPhantom 12-27-11 03:24 AM

Quote:

Originally Posted by Seerah (Post 250116)
But a widescreen vs. a 4:3 monitor would do the trick. :)

Still need to set the UI scale to about 0.925 or lower as per the formula I posted above. Close, but not enough. Note most widescreens are the 16:9 ratio.

Taryble 12-27-11 12:30 PM

Actually, most widescreen monitors are 16:10, not 16:9 - 16:9 is the ratio of "HD" televisions, and some monitors.

The only way to check, of course, is to check the math on your native resolution. :)

Vlad 12-27-11 12:52 PM

16:9 and 16:10 like no difference, not sure why monitors, most at least, got 19:10 it's not real 1080p :P Also the difference is almost non existant, slightly more pixels in the height. :D


All times are GMT -6. The time now is 03:14 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI