Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
951 B

#ifndef _INCLUDED_KV_COMBO_LEAF_PANEL_H
#define _INCLUDED_KV_COMBO_LEAF_PANEL_H
#ifdef _WIN32
#pragma once
#endif
#include "kv_editor_base_panel.h"
namespace vgui
{
class TextEntry;
class Label;
class ComboBox;
};
// a vgui panel for showing a generic leaf
class CKV_Combo_Leaf_Panel : public CKV_Editor_Base_Panel
{
DECLARE_CLASS_SIMPLE( CKV_Combo_Leaf_Panel, CKV_Editor_Base_Panel );
public:
CKV_Combo_Leaf_Panel( Panel *parent, const char *name);
virtual void PerformLayout();
virtual void UpdatePanel();
virtual void ApplySchemeSettings(vgui::IScheme *pScheme);
virtual void OnCommand( const char *command );
MESSAGE_FUNC_PTR( OnTextChanged, "TextChanged", panel );
vgui::ComboBox *m_pCombo;
vgui::Label *m_pLabel;
vgui::Button* m_pDeleteButton;
bool m_bIntegerChoice; // if set to true, this combo box represents an enum or some choice of integers, rather than a list of strings
};
#endif // _INCLUDED_KV_COMBO_LEAF_PANEL_H