In all the dialogs I'v seen, people use the BIS click sounds :
class RscButton
{
type = CT_BUTTON;
idc = -1;
style = ST_CENTER;
colorText[] = {0, 0, 0, 1};
sizeEx = 0.025;
font = FontHTML;
soundPush[] = { , 0.2, 1};
soundClick[] = {"ui\ui_ok", 0.2, 1};
soundEscape[] = {"ui\ui_cc", 0.2, 1};
The ui_ok file is the click sound, but I have made my own clicksound for a numeric keypad in a dialog I'm working on.
It's named button.ogg and it's correctly defined in the description.ext.
But I can't replace it with the UI_ok sound.
I tried :
soundClick[] = {"sound\button.ogg", 0.2, 1};
or
soundClick[] = {"\sound\button.ogg", 0.2, 1};
or
soundClick[] = {"button.ogg", 0.2, 1};
or
soundClick[] = {"\button.ogg", 0.2, 1};
Is it possible to use a custom sounds for a button in a dialog?
Thx in advance.