-#ifdef INTERFACE
-CLASS(XonoticListBox) EXTENDS(ListBox)
- METHOD(XonoticListBox, configureXonoticListBox, void(entity))
+#ifndef LISTBOX_H
+#define LISTBOX_H
+#include "../item/listbox.qc"
+CLASS(XonoticListBox, ListBox)
+ METHOD(XonoticListBox, configureXonoticListBox, void(entity));
ATTRIB(XonoticListBox, fontSize, float, SKINFONTSIZE_NORMAL)
ATTRIB(XonoticListBox, scrollbarWidth, float, SKINWIDTH_SCROLLBAR)
ATTRIB(XonoticListBox, src, string, SKINGFX_SCROLLBAR)
ATTRIB(XonoticListBox, tolerance, vector, SKINTOLERANCE_SLIDER)
ATTRIB(XonoticListBox, rowsPerItem, float, 1)
- METHOD(XonoticListBox, resizeNotify, void(entity, vector, vector, vector, vector))
+ METHOD(XonoticListBox, resizeNotify, void(entity, vector, vector, vector, vector));
ATTRIB(XonoticListBox, color, vector, SKINCOLOR_SCROLLBAR_N)
ATTRIB(XonoticListBox, colorF, vector, SKINCOLOR_SCROLLBAR_F)
ATTRIB(XonoticListBox, color2, vector, SKINCOLOR_SCROLLBAR_S)
entity makeXonoticListBox()
{
entity me;
- me = spawnXonoticListBox();
+ me = NEW(XonoticListBox);
me.configureXonoticListBox(me);
return me;
}