diff options
| author | navewindre <boneyaard@gmail.com> | 2018-08-31 18:57:02 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-08-31 18:57:02 +0200 |
| commit | 78a6e235c3b0006bf29868d5f7ad0628d522fa79 (patch) | |
| tree | a5bf8ca0005794f717f70c1428a8a1e1d69e9521 /internal_rewrite/ui_text_input.h | |
| parent | 1f3f1ab2a20c6d90189cf1fd03cfbb08077bc02e (diff) | |
ah yes
Diffstat (limited to 'internal_rewrite/ui_text_input.h')
| -rw-r--r-- | internal_rewrite/ui_text_input.h | 5 |
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 |
