1 #ifndef DIALOG_CREDITS_H
2 #define DIALOG_CREDITS_H
4 CLASS(XonoticCreditsDialog, XonoticDialog)
5 METHOD(XonoticCreditsDialog, fill, void(entity));
6 METHOD(XonoticCreditsDialog, focusEnter, void(entity));
7 ATTRIB(XonoticCreditsDialog, title, string, _("Credits"))
8 ATTRIB(XonoticCreditsDialog, tooltip, string, _("The Xonotic credits"))
9 ATTRIB(XonoticCreditsDialog, color, vector, SKINCOLOR_DIALOG_CREDITS)
10 ATTRIB(XonoticCreditsDialog, intendedWidth, float, SKINWIDTH_CREDITS)
11 ATTRIB(XonoticCreditsDialog, rows, float, SKINROWS_CREDITS)
12 ATTRIB(XonoticCreditsDialog, columns, float, 2)
13 ATTRIB(XonoticCreditsDialog, creditsList, entity, NULL)
14 ENDCLASS(XonoticCreditsDialog)
18 void XonoticCreditsDialog_fill(entity me)
22 me.TD(me, me.rows - 1, me.columns, me.creditsList = makeXonoticCreditsList());
23 me.gotoRC(me, me.rows - 1, 0);
24 me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));
25 e.onClick = Dialog_Close;
28 void XonoticCreditsDialog_focusEnter(entity me)
30 me.creditsList.scrolling = time + 1;