From aaf469db06d1b2613c3b9698164db5f53655ca4e Mon Sep 17 00:00:00 2001 From: Samual Date: Sat, 14 Jan 2012 17:55:47 -0500 Subject: [PATCH] Whoops forgot the file itself :P --- .../dialog_multiplayer_playersetup_view.c | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 qcsrc/menu/xonotic/dialog_multiplayer_playersetup_view.c diff --git a/qcsrc/menu/xonotic/dialog_multiplayer_playersetup_view.c b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup_view.c new file mode 100644 index 000000000..95c55523a --- /dev/null +++ b/qcsrc/menu/xonotic/dialog_multiplayer_playersetup_view.c @@ -0,0 +1,46 @@ +#ifdef INTERFACE +CLASS(XonoticViewDialog) EXTENDS(XonoticDialog) + METHOD(XonoticViewDialog, toString, string(entity)) + METHOD(XonoticViewDialog, fill, void(entity)) + METHOD(XonoticViewDialog, showNotify, void(entity)) + ATTRIB(XonoticViewDialog, title, string, _("View settings")) + ATTRIB(XonoticViewDialog, color, vector, SKINCOLOR_DIALOG_WEAPONS) + ATTRIB(XonoticViewDialog, intendedWidth, float, 0.4) + ATTRIB(XonoticViewDialog, rows, float, 18) + ATTRIB(XonoticViewDialog, columns, float, 3) +ENDCLASS(XonoticViewDialog) +#endif + +#ifdef IMPLEMENTATION +void XonoticViewDialog_showNotify(entity me) +{ + loadAllCvars(me); +} +string XonoticViewDialog_toString(entity me) +{ + return "hi"; //me.weaponsList.toString(me.weaponsList); +} +void XonoticViewDialog_fill(entity me) +{ + entity e; + + me.TR(me); + me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_weaponpriority_useforcycling", _("Use priority list for weapon cycling"))); + me.TR(me); + me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_autoswitch", _("Auto switch weapons on pickup"))); + me.TR(me); + me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "r_drawviewmodel", _("Draw 1st person weapon model"))); + me.TR(me); + me.TDempty(me, 0.2); + me.TD(me, 1, 0.9, e = makeXonoticRadioButton(1, "cl_gunalign", "4", _("Left align"))); + setDependent(e, "r_drawviewmodel", 1, 1); + me.TD(me, 1, 0.9, e = makeXonoticRadioButton(1, "cl_gunalign", "1", _("Center"))); + setDependent(e, "r_drawviewmodel", 1, 1); + me.TD(me, 1, 1.0, e = makeXonoticRadioButton(1, "cl_gunalign", "3", _("Right align"))); + setDependent(e, "r_drawviewmodel", 1, 1); + me.TR(me); + me.TD(me, 1, me.columns, e = makeXonoticButton(_("OK"), '0 0 0')); + e.onClick = Dialog_Close; + e.onClickEntity = me; +} +#endif -- 2.39.2