Thread Tools Display Modes
08/02/15, 03:49 PM   #1
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Bug with Latency settings

i thnk this need to be fixed and added to this addon

http://www.esoui.com/downloads/info9...O-UIFixes.html

how to reproduce:

go to Settings - > Interface and turn latency OFF

relog to other hero where latency ON

relog to first one - latency will be On too

tested many times, without addons too
  Reply With Quote
08/02/15, 08:51 PM   #2
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
I looked for it, but I couldn't find this one. It may be in code we do not have access to or I just overlooked it.

So only thing I can think of would be to save the setting in saved vars whenever it gets changed then reload the setting when needed.
Lua Code:
  1. -- On setting change save the new value in saved vars:
  2. local function OnsettingChanged(eventCode, system, settingId)
  3.     if system ~= SETTING_TYPE_UI then return end
  4.    
  5.     if settingId == UI_SETTING_SHOW_FRAMERATE or setingId == UI_SETTING_SHOW_LATENCY then
  6.         local newVal = GetSetting_Bool(system, settingId)
  7.        
  8.         -- save it in saved vars:
  9.         someSavedVars[settingId] = newVal
  10.     end
  11. end
  12. EVENT_MANAGER:RegisterForEvent(ADDON_NAME, EVENT_INTERFACE_SETTING_CHANGED, OnsettingChanged)
  13.  
  14. -- Reload the saved settings:
  15. local function OnPlayerActivated()
  16.     local frameRateSetting  = someSavedVars[UI_SETTING_SHOW_FRAMERATE]
  17.     local latencySetting    = someSavedVars[UI_SETTING_SHOW_LATENCY]
  18.    
  19.     SetSetting(SETTING_TYPE_UI, UI_SETTING_SHOW_FRAMERATE, tostring(frameRateSetting))
  20.     SetSetting(SETTING_TYPE_UI, UI_SETTING_SHOW_LATENCY, tostring(latencySetting))
  21. end
  22. EVENT_MANAGER:RegisterForEvent(ADDON_NAME, EVENT_PLAYER_ACTIVATED, OnPlayerActivated)
  Reply With Quote
08/03/15, 02:47 AM   #3
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
solution but not a fix - turn OFF iton all heroes
  Reply With Quote
08/03/15, 06:04 AM   #4
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Some settings are bugged since a year ago. For example I have to turn off follower tags every time I do a quest with followers.
  Reply With Quote
08/03/15, 09:03 PM   #5
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
and no way to fix it by addon's way?
  Reply With Quote
08/04/15, 06:00 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,014
You could finally start to learn lua, read the eso source codes like circonian already did and then find the error and fix it.

As workaround you could finally learn addon development and use the workaround that circonian wrote above to build your own "fix my sh**" addon.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Bug with Latency settings


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