Defines the cwViewNotepad panel of the Notepad plugin, the read-only window that shows a notepad's text.

Also creates the cwNotepadFont font the text is drawn in. The window closes by itself when the notepad is removed or more than 192 units away.

Summary

Methods

Init()client
Sets up the read-only notepad window and its scrolling list.
Paints the window's dark background.
Stretches the list to fill the window below the title bar.
Fills the window with the notepad's text in a read-only text box.
Sets the notepad entity the window shows.
Think()client
Keeps the window centred and closes it when the notepad is removed or more than 192 units away.

Methods

Sets up the read-only notepad window and its scrolling list.

Paints the window's dark background.

Parameters

  • w
  • h

Stretches the list to fill the window below the title bar.

Fills the window with the notepad's text in a read-only text box.

Parameters

  • text String The text to show

Sets the notepad entity the window shows.

Parameters

Keeps the window centred and closes it when the notepad is removed or more than 192 units away.

Defined in