summaryrefslogtreecommitdiff
path: root/tracker/AdminServer/DialogCvarChange.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /tracker/AdminServer/DialogCvarChange.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'tracker/AdminServer/DialogCvarChange.h')
-rw-r--r--tracker/AdminServer/DialogCvarChange.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/tracker/AdminServer/DialogCvarChange.h b/tracker/AdminServer/DialogCvarChange.h
new file mode 100644
index 0000000..0b4ee22
--- /dev/null
+++ b/tracker/AdminServer/DialogCvarChange.h
@@ -0,0 +1,58 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================
+
+#ifndef DIALOGCVARCHANGE_H
+#define DIALOGCVARCHANGE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/Frame.h>
+
+//-----------------------------------------------------------------------------
+// Purpose: Prompt for user to enter a password to be able to connect to the server
+//-----------------------------------------------------------------------------
+class CDialogCvarChange : public vgui::Frame
+{
+public:
+ CDialogCvarChange(vgui::Panel *parent);
+ ~CDialogCvarChange();
+
+ // initializes the dialog and brings it to the foreground
+ void Activate(const char *cvarName, const char *curValue, const char *type, const char *question);
+
+ /* message returned:
+ "CvarChangeValue"
+ "player"
+ "value"
+ "type"
+ */
+
+ // make the input stars, ala a password entry dialog
+ void MakePassword();
+
+ // set the text in a certain label name
+ void SetLabelText(const char *textEntryName, const char *text);
+
+private:
+ virtual void OnCommand(const char *command);
+ virtual void OnClose();
+
+ vgui::Label *m_pInfoLabel;
+ vgui::Label *m_pCvarLabel;
+ vgui::TextEntry *m_pCvarEntry;
+ vgui::Button *m_pOkayButton;
+
+ bool m_bAddCvarText; // if true puts the cvar name into the dialog
+
+ typedef vgui::Frame BaseClass;
+ const char *m_cType;
+
+};
+
+
+#endif // DIALOGCVARCHANGE_H