X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fsoundlist.qc;fp=qcsrc%2Fmenu%2Fxonotic%2Fsoundlist.qc;h=2b98c5fe52296a8f287c4294a3766019487262ea;hp=3e37c34f109258f75a508f453911b59f7c0df4a7;hb=e090603a32c8cba598f2c54e355cdb5b32b0d986;hpb=96cf1bcee4b67e9d9b8087ab38ef63f26aeb2437 diff --git a/qcsrc/menu/xonotic/soundlist.qc b/qcsrc/menu/xonotic/soundlist.qc index 3e37c34f10..2b98c5fe52 100644 --- a/qcsrc/menu/xonotic/soundlist.qc +++ b/qcsrc/menu/xonotic/soundlist.qc @@ -1,5 +1,7 @@ -#ifdef INTERFACE -CLASS(XonoticSoundList) EXTENDS(XonoticListBox) +#ifndef SOUNDLIST_H +#define SOUNDLIST_H +#include "listbox.qc" +CLASS(XonoticSoundList, XonoticListBox) METHOD(XonoticSoundList, configureXonoticSoundList, void(entity)) ATTRIB(XonoticSoundList, rowsPerItem, float, 1) METHOD(XonoticSoundList, resizeNotify, void(entity, vector, vector, vector, vector)) @@ -38,7 +40,7 @@ void SoundList_Menu_Track_Reset(entity box, entity me); entity makeXonoticSoundList() { entity me; - me = spawnXonoticSoundList(); + me = NEW(XonoticSoundList); me.configureXonoticSoundList(me); return me; }