Module:ItemData/nav: Difference between revisionsGive feedback
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 | -- the cheaper ItemBox rendering: a gradient instead of the masked wear tint, no | ||
-- icon mask, | -- icon mask, one shared paper, and an icon requested at the size it is actually | ||
-- drawn. Each of those is a render pass, a backdrop read or a texture upload the | |||
-- GPU would otherwise repeat for every card on screen. See [[Template:ItemBox]]. | |||
-- Only the ItemBox branch of write_wrapped_item_list uses this; the ItemIcon | |||
local LOW_GRAPHICS = "| | -- 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 | ||