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. |
Quote:
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) |
Quote:
|
Quote:
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. |
Quote:
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. |
Quote:
|
Quote:
But if you want to learn how to get to the thing, you should check "how does ZOs do it". And in general it's ncie to compare addon code to "how does ZOs do it", as ZOs sources could have improved/made it easier than addons that were coded years ago (not talking about your addon here, just in general!). Hint to sinnereso: I don't know if ZGOO provides that too, maybe it does: If you use "merTorchbug updated" you will have the /tbug or /tb command to open the UI, and on the tab "functions" you will find all the global API (and addon, if any other addon is enabled) functions. You can search that for "setting" (top left) and it will filter to only matching function names with setting then. |
Quote:
|
Quote:
|
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) |
Quote:
The event inspector provides more features to include/exclude/filter events than zgoo afaik. And you got preview of textures, strings with colors, and helpers on right click at the UI to copy the raw text/text to the chat, or run some GetItem* functions on inventory item data (having bagid and slotindx) etc. + many other features and slash commands -> See description of the addon It even supports /zgoo and /zgoo mouse, even if you do not have zgoo activated -> Just opens merTorchbug UI then :D Commands similar to zgoo ones: /tb or /tbug <some code here or control to run/inspect> -> Similar to /zgoo <some code here or control to run/inspect> /tbm or /tbug mouse -> Similar to /zgoo mouse |
All times are GMT -6. The time now is 08:35 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI