Interface IBookMenuPresenter
- Namespace
- SkyrimForge.Menus
- Assembly
- SkyrimForge.dll
Shows runtime text in the book menu.
public interface IBookMenuPresenter
Remarks
Opened during a conversation, the menu shows above the dialogue menu, and the conversation continues once it closes. Call members on the game's thread.
Methods
ShowAsync(IEnumerable<string>, CancellationToken)
Opens the book menu on htmlPages.
Task ShowAsync(IEnumerable<string> htmlPages, CancellationToken cancellationToken = default)
Parameters
htmlPagesIEnumerable<string>The pages as HTML. Encode text with HtmlEncode(string). BookFonts lists the font faces.
cancellationTokenCancellationTokenStops the wait. No menu is shown when the token is already canceled at the call. Otherwise canceling ends only the wait, and the menu opens or stays open.
Returns
- Task
A task that completes in work queued through ITaskQueue when the menu closes, and does not complete if the game opens no menu.
Exceptions
- ArgumentNullException
htmlPagesisnull.- InvalidOperationException
A book menu is already open. The exception is stored in the returned task.