try to make a notebook

I’m trying to create a notebook. When the player enters their text, the text is transferred to the text block.
The problem is that when I close the menu and I open it again, despite my efforts, the text that had been put disappears. Can you help me?


“New Var 3” is empty, because you are destroying the widget when closing and recreating a completely new one when opening.

Instead you should either hide/show the widget or store the text somewhere else (e.g. game state, gamemode, player character, etc., whatever fits best for you) and repopulate the text after widget creation.

Can you tell me how to just hide and show instead of closing it?