Module:ItemData/nav: Difference between revisionsGive feedback
Jump to navigation
Jump to search
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) |
Update stale LOW_GRAPHICS comment to describe the current cacheable-overlay behavior (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 rendering | -- the cheaper ItemBox rendering via lowGraphics. This swaps the paper texture | ||
-- | -- from the normal-mode multiply (which blends two images and is re-rasterised | ||
-- | -- every scrolled frame) to a transparent-paper overlay that is a single | ||
-- | -- cacheable image, the one change that carried the navbox scroll cost. The wear | ||
-- and icon masks stay at full detail, since a single-image mask caches fine. | |||
-- See [[Template:ItemBox]]. Only the ItemBox branch of write_wrapped_item_list | |||
-- uses this; the ItemIcon lists are unaffected. | |||
local LOW_GRAPHICS = "|lowGraphics=true" | local LOW_GRAPHICS = "|lowGraphics=true" | ||