Quantcast ESOUI - View Single Post - PTS 1.5.1 API changes (100009 to 100010 diff)
View Single Post
11/08/14, 08:52 PM   #7
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 853
Originally Posted by mctaylor View Post
You mean like this: APIVersion (from the Wiki, feel free to fill in missing information)?

The Wiki works best if people (i.e. everyone and anyone) update it as they discover something missing.

=====

I believe like BankerShutup and Borrower and Lender are affected by some additional changes to the Audio Settings.

In particular, I haven't figure out if:

Lua Code:
  1. OPTIONS_PANEL_AUDIO = 2
replaced(?) with
Lua Code:
  1. SETTING_PANEL_AUDIO = 0

is relevant.

But I suspect that the audio settings might be better controlled by
Lua Code:
  1. Options_Audio_???.data.value;
(e.g.
Lua Code:
  1. Options_Audio_MasterVolume.data.value;
) from the userdata rather than the
Lua Code:
  1. KEYBOARD_OPTIONS.controlTable[SETTING_PANEL_AUDIO][AUDIO_SETTING_AUDIO_VOLUME]
.
Options were completely reworked, so if you have used any non-standard method of getting settings it probably wont work anymore.

Standard way is using functions GetSetting and SetSetting.

* GetSetting(*integer* _system_, *integer* _settingId_)
** _Returns:_ *string* _value_

* SetSetting(*integer* _system_, *integer* _settingId_, *string* _value_, *integer* _setOptions_)

In your case it would be:
Lua Code:
  1. --to get a value:
  2. local volume = tonumber(GetSetting(SETTING_TYPE_AUDIO, AUDIO_SETTING_AUDIO_VOLUME))
  3. --to set a value:
  4. SetSetting(SETTING_TYPE_AUDIO, AUDIO_SETTING_AUDIO_VOLUME, volume)
volume is a number between 0 and 100.
__________________
@Garkin (retired from ESO)
My addons: SkyShards, LoreBooks, Dustman, Map Coordinates, No, thank you!, ... (full list)

Last edited by Garkin : 11/08/14 at 08:56 PM.
  Reply With Quote