Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:TomeSetWarJournalEntryImage

From RoR Wiki

UI Lua API · Tome functions
Version: WAR 1.4.8

Loads the picture of a War Journal entry into the texture war_journal_entry_image.

TomeSetWarJournalEntryImage(entryId)

Arguments

entryId
number – Entry id. The entry must be unlocked.

Returns

Nothing.

Details

  • The texture war_journal_entry_image is updated, so every window that uses it shows the new picture. No window in the stock XML uses this texture, although the stock War Journal page calls this function.
  • If the entry is unknown or locked, an error is logged.

Errors

These are written to the UI log; the call returns normally.

  • Error in function call 'TomeSetWarJournalEntryImage: You have not yet unlocked entry # %d. (the quote after the function name is missing in the client's text)

Example

From ea_tomeofknowledge/source/tomewindow_warjournal.lua:

local entryData  = TomeWindow.WarJournal.CurEntryData

TomeSetWarJournalEntryImage( entryData.id )

-- Set the Title
LabelSetText( "WarJournalEntryTitle", wstring.upper( entryData.title ) )

See also