Defines the cwViewBook panel, the window that shows a book's HTML text above a Take button.
Opened by the ViewBook Cable handler. It closes itself when the book entity is removed or more than 192 units
away, and Take sends the TakeBook Cable message.
Summary
Methods
Init()client
Sets up the book window with a blurred background and a close button.
PerformLayout()client
Stretches the HTML text to fill the window above the Take button.
Populate(itemTable)client
Shows the book's HTML text and a Take button that picks the book up.
SetEntity(entity)client
Sets the book entity the window shows.
Think()client
Keeps the window centred and closes it when the book is removed or more than 192 units away.
Methods
Sets up the book window with a blurred background and a close button.
Stretches the HTML text to fill the window above the Take button.
Shows the book's HTML text and a Take button that picks the book up.
The button closes the window and sends the TakeBook Cable message.
Parameters
- itemTable Item The book's item, with its
bookInformationHTML
Sets the book entity the window shows.
Parameters
- entity Entity The
cw_bookentity
Keeps the window centred and closes it when the book is removed or more than 192 units away.