From: terencehill Date: Thu, 1 Jul 2021 18:50:50 +0000 (+0200) Subject: Reload cvars opening root dialogues, e.g. hud panel dialogues X-Git-Tag: xonotic-v0.8.5~385 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6af37041cb834e2c568bd4f51aa52721df5917d9;p=xonotic%2Fxonotic-data.pk3dir.git Reload cvars opening root dialogues, e.g. hud panel dialogues --- diff --git a/qcsrc/menu/xonotic/rootdialog.qc b/qcsrc/menu/xonotic/rootdialog.qc index 38fbe7fc7..31a96e491 100644 --- a/qcsrc/menu/xonotic/rootdialog.qc +++ b/qcsrc/menu/xonotic/rootdialog.qc @@ -1,5 +1,11 @@ #include "rootdialog.qh" +void XonoticRootDialog_showNotify(entity me) +{ + SUPER(XonoticRootDialog).showNotify(me); + loadAllCvars(me); +} + void XonoticRootDialog_close(entity me) { m_goto(string_null); diff --git a/qcsrc/menu/xonotic/rootdialog.qh b/qcsrc/menu/xonotic/rootdialog.qh index a2efa672e..08603637b 100644 --- a/qcsrc/menu/xonotic/rootdialog.qh +++ b/qcsrc/menu/xonotic/rootdialog.qh @@ -11,5 +11,6 @@ CLASS(XonoticRootDialog, XonoticDialog) ATTRIB(XonoticDialog, rows, float, 3); ATTRIB(XonoticDialog, columns, float, 2); */ + METHOD(XonoticRootDialog, showNotify, void(entity)); METHOD(XonoticRootDialog, close, void(entity)); ENDCLASS(XonoticRootDialog)