代码拉取完成,页面将自动刷新
//========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef INPUTDIALOG_H
#define INPUTDIALOG_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/Controls.h>
#include <vgui_controls/Frame.h>
namespace vgui2
{
class Label;
class Button;
class TextEntry;
//-----------------------------------------------------------------------------
// Purpose: Utility dialog, used to let user type in some text
//-----------------------------------------------------------------------------
class InputDialog : public Frame
{
DECLARE_CLASS_SIMPLE(InputDialog, Frame);
public:
InputDialog(vgui2::Panel *parent, const char *title, char const *prompt, char const *defaultValue = "");
~InputDialog();
void SetMultiline(bool state);
/* action signals
"InputCompleted"
"text" - the text entered
"InputCanceled"
*/
void DoModal(KeyValues *pContextKeyValues = NULL);
void AllowNumericInputOnly(bool bOnlyNumeric);
protected:
virtual void PerformLayout();
// command buttons
virtual void OnCommand(const char *command);
private:
void CleanUpContextKeyValues();
KeyValues *m_pContextKeyValues;
vgui2::Label *m_pPrompt;
vgui2::TextEntry *m_pInput;
vgui2::Button *m_pCancelButton;
vgui2::Button *m_pOKButton;
};
} // namespace vgui2
#endif // INPUTDIALOG_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。