Defines the cwEditNotepad panel of the Notepad plugin, the window in which a player writes or edits a notepad's
text.
The text is capped at 64000 characters and sent to the server with the EditNotepad Cable message when the button is
pressed. The window closes by itself when the notepad is removed or more than 192 units away.
Summary
Methods
Methods
Sets up the notepad editor window and its scrolling list.
Stretches the list to fill the window below the title bar.
Adds the text box and the button that sends the text to the server.
The text box is capped at 64000 characters. Pressing the button closes the window and
sends the text with the EditNotepad Cable message.
Parameters
- notepad String The notepad's current text
Sets the notepad entity the editor writes to.
Parameters
- entity Entity The
cw_notepadentity
Keeps the window centred and closes it when the notepad is removed or more than 192 units away.