summaryrefslogtreecommitdiff
path: root/internal_rewrite/ui_text_input.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/ui_text_input.h')
-rw-r--r--internal_rewrite/ui_text_input.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal_rewrite/ui_text_input.h b/internal_rewrite/ui_text_input.h
index b651828..243c40b 100644
--- a/internal_rewrite/ui_text_input.h
+++ b/internal_rewrite/ui_text_input.h
@@ -5,8 +5,8 @@ namespace ui
{
class c_text_input : public base_item {
public:
- c_text_input( int x, int y, int w, const char* name, size_t max_chars, char* str ) :
- base_item( x, y, w, 16, name ), m_text_len( max_chars ), m_text_ptr( str ) {
+ c_text_input( int x, int y, int w, const char* name, size_t max_chars, char* str, bool hidden = false ) :
+ base_item( x, y, w, 16, name ), m_text_len( max_chars ), m_text_ptr( str ), m_hidden( hidden ) {
}
virtual bool is_hovered( ) override {
@@ -33,5 +33,6 @@ namespace ui
bool m_active{ };
float m_last_key_input[ KEYS_LAST ]{ };
uint8_t m_key_states[ 256 ]{ };
+ bool m_hidden{ };
};
} \ No newline at end of file