ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Video Settings (https://www.esoui.com/forums/showthread.php?t=10843)

raspberry 02/17/24 07:25 AM

Video Settings
 
Hello,

currently we have three video modes.
* Fullscreen
* Window Fullscreen
* Window


Depending on my playstile and char I like to switch often between these modes.
So one char is mainly in Window Fullscreen, the others in Fullscreen.

I thaught about a way so make this more comfortable then using the ingame settings.
So I looked into the usersettings.txt after changing the video mode.
SET FULLSCREEN_v5 "0" Window
SET FULLSCREEN_v5 "1" Window (Fullscreen)
SET FULLSCREEN_v5 "2" Fullscreen

Is there any chance to use the API for switching ingame the video mode?
In that case I'd try to write an addon for it.

If not, is there a way to call the eso64.exe with different usersettings.txt -files.
Like a starting parameter?

Thanks for helping in advance.


edit:
Currently I use some batchfiles to replace the usersettings.txt first and run the exe afterwards. However, via API would be the better way.

Baertram 02/17/24 11:17 AM

Moved to lua/XML forum

-eso64.exe params: I do not know any and I do neither know a list of possible params
-ingame API: There exist functions like SetSettings() to change the values of some settings
Check file esoui\pregameandingame\optionspanels\optionspanel_video_shared.lua

e.g.
SetSetting(SETTING_TYPE_GRAPHICS, GRAPHICS_SETTING_FULLSCREEN, FullScreenMode)

-FullScreenMode-
FULLSCREEN_MODE_WINDOWED = 0
FULLSCREEN_MODE_FULLSCREEN_WINDOWED = 1
FULLSCREEN_MODE_FULLSCREEN_EXCLUSIVE = 2

Same with GetSetting
if GetSetting(SETTING_TYPE_GRAPHICS, GRAPHICS_SETTING_FULLSCREEN) == FULLSCREEN_MODE_FULLSCREEN_EXCLUSIVE then
...
end

raspberry 02/17/24 03:26 PM

Works pretty well.
Now I have the perfect solution.


Danke Dir.


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

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