System Preferences - Graphics
Hi everyone,
I'd like to make a little addon to switch from full screen to windowed mode. The problem is that the system preferences do it so nicely: While a simple code to switch from a mode to the other like this: Lua Code:
or Lua Code:
freeze for a little bit the game and is not as perfect as the first. So the question. How is, if any, the best way to achieve this ? Thanks so much. |
I just tried to find out what the Blizzard UI does when you click the "Apply" button. This seems to work for me:
Code:
OptionsFrameOkay_OnClick(VideoOptionsFrame, 1); |
OK, it turns out UpdateWindow() is what you are looking for!
Code:
C_CVar.SetCVar("gxMaximize", "0") |
It works like a charm.
Thanks so much. |
All times are GMT -6. The time now is 08:16 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI