Thread Tools Display Modes
02/17/24, 07:25 AM   #1
raspberry
Join Date: Dec 2016
Posts: 2
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.

Last edited by raspberry : 02/17/24 at 10:29 AM.
  Reply With Quote
02/17/24, 11:17 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,956
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

Last edited by Baertram : 02/17/24 at 08:04 PM.
  Reply With Quote
02/17/24, 03:26 PM   #3
raspberry
Join Date: Dec 2016
Posts: 2
Works pretty well.
Now I have the perfect solution.


Danke Dir.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Video Settings

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