ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Values for PlaySound() (https://www.esoui.com/forums/showthread.php?t=582)

lintydruid 04/05/14 09:34 AM

Values for PlaySound()
 
Any one know what the string values are for playsound()? I assume its a path to a sound file but what are the inbuilt sound? any one know?

Could I use external sound files (similar to how textures work)? If so any one know the format?

Thank You.

Vicster0 04/10/14 07:16 AM

zgoo this and see what you find.. I'm at work or I would test it myself:

Lua Code:
  1. PlaySound(SOUNDS.INVENTORY_ITEM_MOUSEOVER)

This may be old/depreciate because I am referencing files from an old game0000.dat.

Garkin 04/10/14 10:52 AM

Quote:

Originally Posted by Vicster0 (Post 3670)
zgoo this and see what you find.. I'm at work or I would test it myself:

Lua Code:
  1. PlaySound(SOUNDS.INVENTORY_ITEM_MOUSEOVER)

This may be old/depreciate because I am referencing files from an old game0000.dat.

SOUNDS table is defined in EsoUI\Libraries\Globals\SoundIds.lua.

example:
SOUND.GENERAL_ALERT_ERROR = "General_Alert_Error"

GetBackYouPansy 04/10/14 11:46 AM

Little trick, if you want to know what a particular sound is that is played by the UI, you can likely find out with (via /script):

Lua Code:
  1. ZO_PreHook("PlaySound", function(name) d("Play sound: " .. name) end)

Doesn't work for everything, though.

Then there's probably one or more constant in SOUNDS (/Zgoo SOUNDS) which has that string as its value, which you can use in your own code.


All times are GMT -6. The time now is 05:17 AM.

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