ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   About "setOptions" in the following API (https://www.esoui.com/forums/showthread.php?t=7690)

h.metaverse 03/29/18 12:42 AM

About "setOptions" in the following API
 
Would you tell me what to set about "setOptions" in the following API.

SetSetting(number SettingSystemType system, number settingId, string value, number SetOptions setOptions)

Thank you.

Baertram 03/29/18 06:05 AM

Edit:
Sorry, I overread the 3rd parameter "value" which I'm describing here (it's not setoption):
If the option is a checkbox e.g. the value will be "1" for true and "0" for false (be sure to use it as sa string with the "" surrounding it).
Other opions might have other values, you'd need to check fot the option's name and category and scan the source code for it at e.g. https://github.com/esoui/esoui/tree/master/esoui in order to be sure which values need to be used.

ZOS_ChipHilseberg 03/29/18 07:59 AM

SetOptions are SAVE_TO_PERSISTED_DATA and DO_NOT_SAVE_TO_PERSISTED_DATA. The default is SAVE_TO_PERSISTED_DATA. The purpose of DO_NOT_SAVE_TO_PERSISTED_DATA is for when we get the settings from the server so we don't tell the server that they changed when we are initializing them. You can probably ignore that parameter.

sirinsidiator 03/29/18 10:17 AM

Could this be used to do a temporary local change that will be undone right after? e.g. switching off the enemy outlines, changing camera position/fov etc?

ZOS_ChipHilseberg 03/29/18 11:53 AM

Potentially, if that settings system supports it.

h.metaverse 04/01/18 04:15 AM

Thank you very much, everyone!
I was able to solve the problem based on the information I taught!
If there is a question to ask you again, thank you.


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

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