X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fscreenshotlist.qc;h=d6fcaf86e3d0d97b0494e823ac311df0fb2183af;hp=3482dcc4728ade920a74961d077dc49c8a18dcc5;hb=e090603a32c8cba598f2c54e355cdb5b32b0d986;hpb=96cf1bcee4b67e9d9b8087ab38ef63f26aeb2437 diff --git a/qcsrc/menu/xonotic/screenshotlist.qc b/qcsrc/menu/xonotic/screenshotlist.qc index 3482dcc472..d6fcaf86e3 100644 --- a/qcsrc/menu/xonotic/screenshotlist.qc +++ b/qcsrc/menu/xonotic/screenshotlist.qc @@ -1,5 +1,7 @@ -#ifdef INTERFACE -CLASS(XonoticScreenshotList) EXTENDS(XonoticListBox) +#ifndef SCREENSHOTLIST_H +#define SCREENSHOTLIST_H +#include "listbox.qc" +CLASS(XonoticScreenshotList, XonoticListBox) METHOD(XonoticScreenshotList, configureXonoticScreenshotList, void(entity)) ATTRIB(XonoticScreenshotList, rowsPerItem, float, 1) METHOD(XonoticScreenshotList, resizeNotify, void(entity, vector, vector, vector, vector)) @@ -49,7 +51,7 @@ void ScreenshotList_Filter_Change(entity box, entity me); entity makeXonoticScreenshotList() { entity me; - me = spawnXonoticScreenshotList(); + me = NEW(XonoticScreenshotList); me.configureXonoticScreenshotList(me); return me; }