API:GetCurrentEnhancementItemData
From RoR Wiki
UI Lua API · Game functions
Version: WAR 1.4.8
Returns the item that is currently being enhanced (the item in the item enhancement window).
item = GetCurrentEnhancementItemData()
Arguments
None.
Returns
- item
table– An item data table. ItsenhSlotandnumEnhancementSlotsfields describe the enhancement slots.
Details
- If there is no player object, or the Lua state is not available, the function returns nothing.
- The stock UI calls it whenever the item enhancement window opens, closes or updates.
Errors
None.
Example
From ea_itemenhancementwindow/source/itemenhancementwindow.lua:
function ItemEnhancementWindow.UpdateItem ()
ItemEnhancementWindow.enhancedItem = GetCurrentEnhancementItemData()
local enhItem = ItemEnhancementWindow.enhancedItem
UpdateEnhancementDisplay (enhItem)
