From 78a6e235c3b0006bf29868d5f7ad0628d522fa79 Mon Sep 17 00:00:00 2001 From: navewindre Date: Fri, 31 Aug 2018 18:57:02 +0200 Subject: ah yes --- internal_rewrite/ui_text_input.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal_rewrite/ui_text_input.h') 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 -- cgit v1.2.3