Thread Tools Display Modes
10/01/23, 10:51 PM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Question looking for a way to detect if ingame setting enabled

hey guys..

im looking for a way to boolean if social setting "PvP Kill Feed" is enabled or disabled, preferably a ZO_something if it exists similar to "ZO_ShouldPreferUserId()" but for the kill feed.

Ive been going through /zgoo but cant find either in there when mousing over the control.
  Reply With Quote
10/02/23, 01:32 AM   #2
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by sinnereso View Post
hey guys..

im looking for a way to boolean if social setting "PvP Kill Feed" is enabled or disabled, preferably a ZO_something if it exists similar to "ZO_ShouldPreferUserId()" but for the kill feed.

Ive been going through /zgoo but cant find either in there when mousing over the control.
Just find the setting with
GetSetting_Bool(*[SettingSystemType|#SettingSystemType]* _system_, *integer* _settingId_)
** _Returns:_ *bool* _value_
?

SETTING_TYPE_UI
UI_SETTING_SHOW_PVP_KILL_FEED_NOTIFICATIONS

local ShowPvpKillFeedEnabled = GetSetting_Bool(SETTING_TYPE_UI, UI_SETTING_SHOW_PVP_KILL_FEED_NOTIFICATIONS)

Last edited by Masteroshi430 : 10/02/23 at 01:36 AM.
  Reply With Quote
10/02/23, 09:13 AM   #3
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Originally Posted by Masteroshi430 View Post
Just find the setting with
GetSetting_Bool(*[SettingSystemType|#SettingSystemType]* _system_, *integer* _settingId_)
** _Returns:_ *bool* _value_
?

SETTING_TYPE_UI
UI_SETTING_SHOW_PVP_KILL_FEED_NOTIFICATIONS

local ShowPvpKillFeedEnabled = GetSetting_Bool(SETTING_TYPE_UI, UI_SETTING_SHOW_PVP_KILL_FEED_NOTIFICATIONS)
Thank you bro thats perfect. I was digging around in zgoo for hours and couldn't find how to find that.
  Reply With Quote
10/02/23, 12:54 PM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,999
Originally Posted by sinnereso View Post
Thank you bro thats perfect. I was digging around in zgoo for hours and couldn't find how to find that.
Check the ESOUI source code for that. How does ZOs do it.
e.g. move mouse above the settings entry and find out what the name of the control is.

Then find that control name, or ends of it, in the esoui sources.
And get to the code and aPi functions uses that way.
  Reply With Quote
10/03/23, 09:45 AM   #5
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Originally Posted by Baertram View Post
Check the ESOUI source code for that. How does ZOs do it.
e.g. move mouse above the settings entry and find out what the name of the control is.

Then find that control name, or ends of it, in the esoui sources.
And get to the code and aPi functions uses that way.
kk ill check it.

Im considering something else maybe as well... Is there is SetSetting to change the ingame setting or just GetSetting? Ill poke around in a bit and see maybe.

Last edited by sinnereso : 10/03/23 at 09:49 AM.
  Reply With Quote
10/03/23, 12:42 PM   #6
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by sinnereso View Post
kk ill check it.

Im considering something else maybe as well... Is there is SetSetting to change the ingame setting or just GetSetting? Ill poke around in a bit and see maybe.
Check in the code of my https://www.esoui.com/downloads/info...30sbranch.html it is indeed faster than looking in the ESOUI source code.
  Reply With Quote
10/03/23, 10:02 PM   #7
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
ok found what I was looking for sorta using masteroshi's addon and a little trial and error...

Code:
SetSetting(SETTING_TYPE_UI, UI_SETTING_SHOW_PVP_KILL_FEED_NOTIFICATIONS, PVP_KILL_FEED_NOTIFICATIONS_OFF)
it does the job if i decide to go with it ty
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » looking for a way to detect if ingame setting enabled


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