X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fmenu.qh;h=6f36a074e05311361c71b174afa796a03adeb02b;hb=f5517806dce5953f2a2dc2e9312032e99abcf6d0;hp=641ddf7d19df20db49ad73d707a74197cf427ad5;hpb=4524af86ee6190c8d7f7cd7ccc068650809a0ce7;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/menu.qh b/qcsrc/menu/menu.qh index 641ddf7d1..6f36a074e 100644 --- a/qcsrc/menu/menu.qh +++ b/qcsrc/menu/menu.qh @@ -33,10 +33,22 @@ entity keyGrabber; float conwidth, conheight; // "virtual" conwidth/height values for other stuff to assume for scaling -void SUB_Null(); - float preMenuInit(); // you have to define this for pre-menu initialization. Return 0 if initialization needs to be retried a frame later, 1 if it succeeded. void preMenuDraw(); // this is run before the menu is drawn. You may put some stuff there that has to be done every frame. void postMenuDraw(); // this is run just after the menu is drawn (or not). Useful to draw something over everything else. void m_sync(); + +// sounds + +const string MENU_SOUND_CLEAR = "sound/menu/clear.wav"; +const string MENU_SOUND_CLOSE = "sound/menu/close.wav"; +const string MENU_SOUND_EXECUTE = "sound/menu/execute.wav"; +const string MENU_SOUND_FOCUS = "sound/menu/focus.wav"; +const string MENU_SOUND_OPEN = "sound/menu/open.wav"; +const string MENU_SOUND_SELECT = "sound/menu/select.wav"; +const string MENU_SOUND_SLIDE = "sound/menu/slide.wav"; +const string MENU_SOUND_WINNER = "sound/menu/winner.wav"; + +void m_play_focus_sound(); +void m_play_click_sound(string soundfile);