Module:ItemData/nav: Difference between revisions

Vergir (talk | contribs)
Render the v2 navbox item cards in low-graphics mode: ramped wear, no icon mask, single paper texture (with help from vergir-bot LLM)
Use the single lowGraphics flag for navbox cards now that ItemBox bundles the cheap layers and the 1x icon request (with help from vergir-bot LLM)
Line 14: Line 14:


-- The card navboxes put every item on a single page, so their cards opt into
-- The card navboxes put every item on a single page, so their cards opt into
-- the cheaper ItemBox layers: a gradient instead of the masked wear tint, no
-- the cheaper ItemBox rendering: a gradient instead of the masked wear tint, no
-- icon mask, and one shared paper instead of one picked per item. Each of those
-- icon mask, one shared paper, and an icon requested at the size it is actually
-- is a render pass or a backdrop read the GPU would otherwise repeat per card.
-- drawn. Each of those is a render pass, a backdrop read or a texture upload the
-- See the parameters on [[Template:ItemBox]]. Only the ItemBox branch of
-- GPU would otherwise repeat for every card on screen. See [[Template:ItemBox]].
-- write_wrapped_item_list uses this; the ItemIcon lists are unaffected.
-- Only the ItemBox branch of write_wrapped_item_list uses this; the ItemIcon
local LOW_GRAPHICS = "|wearMask=ramp|iconMask=no|texture=3"
-- lists are unaffected.
local LOW_GRAPHICS = "|lowGraphics=true"


-- Cached items grouped by slot to prevent redundant full-table evaluations
-- Cached items grouped by slot to prevent redundant full-table evaluations