]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_multiplayer_playersetup_model.c
71c71345444cc63b15d1039c8ff777e2a6463add
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_multiplayer_playersetup_model.c
1 #ifdef INTERFACE
2 CLASS(XonoticModelDialog) EXTENDS(XonoticDialog)
3         METHOD(XonoticModelDialog, toString, string(entity))
4         METHOD(XonoticModelDialog, fill, void(entity))
5         METHOD(XonoticModelDialog, showNotify, void(entity))
6         ATTRIB(XonoticModelDialog, title, string, _("Model settings"))
7         ATTRIB(XonoticModelDialog, color, vector, SKINCOLOR_DIALOG_MODEL)
8         ATTRIB(XonoticModelDialog, intendedWidth, float, 0.5)
9         ATTRIB(XonoticModelDialog, rows, float, 12)
10         ATTRIB(XonoticModelDialog, columns, float, 3)
11 ENDCLASS(XonoticModelDialog)
12 #endif
13
14 #ifdef IMPLEMENTATION
15 void XonoticModelDialog_showNotify(entity me)
16 {
17         loadAllCvars(me);
18 }
19 string XonoticModelDialog_toString(entity me)
20 {
21         return "hi"; // TODO: show csqc model settings like forcemyplayer and deglowing/ghosting bodies with text here
22 }
23 void XonoticModelDialog_fill(entity me)
24 {
25         entity e;
26         
27
28                 
29         me.gotoRC(me, me.rows - 1, 0);
30                 me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0'));
31                         e.onClick = Dialog_Close;
32                         e.onClickEntity = me;
33 }
34 #endif