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)
Joe Rippa (talk | contribs)
Undo revision 146582 by Joe Rippa (talk) This is unnecessary for the change I wanted to make
Tag: Undo
 
(3 intermediate revisions by 2 users not shown)
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 via lowGraphics. This swaps the paper texture
-- icon mask, and one shared paper instead of one picked per item. Each of those
-- from the normal-mode multiply (which blends two images and is re-rasterised
-- is a render pass or a backdrop read the GPU would otherwise repeat per card.
-- every scrolled frame) to a transparent-paper overlay that is a single
-- See the parameters on [[Template:ItemBox]]. Only the ItemBox branch of
-- cacheable image, the one change that carried the navbox scroll cost. The wear
-- write_wrapped_item_list uses this; the ItemIcon lists are unaffected.
-- and icon masks stay at full detail, since a single-image mask caches fine.
local LOW_GRAPHICS = "|wearMask=ramp|iconMask=no|texture=3"
-- See [[Template:ItemBox]]. Only the ItemBox branch of write_wrapped_item_list
-- uses this; the ItemIcon 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