}
float Button_mouseRelease(entity me, vector pos)
{
- if(cvar("menu_sounds"))
- localsound("sound/misc/menu2.wav");
me.mouseDrag(me, pos); // verify coordinates
if(me.pressed)
{
if not(me.disabled)
+ {
+ if(cvar("menu_sounds"))
+ localsound("sound/misc/menu2.wav");
me.onClick(me, me.onClickEntity);
+ }
me.pressed = 0;
}
return 1;
}
float Slider_mouseRelease(entity me, vector pos)
{
- if(cvar("menu_sounds"))
- localsound("sound/misc/menu2.wav");
me.pressed = 0;
if(me.disabled)
return 0;
+ if(cvar("menu_sounds"))
+ localsound("sound/misc/menu2.wav");
return 1;
}
void Slider_showNotify(entity me)