2,875
edits
No edit summary |
No edit summary |
||
Line 237: | Line 237: | ||
--Some overrides only apply for a specific type | --Some overrides only apply for a specific type | ||
local typeExtOverrides = { | local typeExtOverrides = { | ||
-- Example: ["item"] = { ["Chicken"] = "png" } | -- Example: ["item"] = { ["Chicken"] = "png" } | ||
Line 576: | Line 575: | ||
} | } | ||
} | } | ||
function p.typeExtOverrides() return typeExtOverrides end | |||
--When calling for an icon of type Key, instead use type Value | --When calling for an icon of type Key, instead use type Value | ||
local typeOverrides = { | local typeOverrides = { | ||
['combat'] = 'combatArea', | ['combat'] = 'combatArea', | ||
['slayer'] = 'combatArea' | ['slayer'] = 'combatArea' | ||
} | } | ||
function p.typeOverrides() return typeOverrides end | |||
--When calling for an icon for Key, replace with image Value, and optionally override type also | --When calling for an icon for Key, replace with image Value, and optionally override type also | ||
local imgOverrides = { | local imgOverrides = { | ||
['Alt Magic'] = 'Magic', | ['Alt Magic'] = 'Magic', | ||
Line 782: | Line 782: | ||
["Clue Scroll 6"] = "Event Clue 1" | ["Clue Scroll 6"] = "Event Clue 1" | ||
} | } | ||
function p.imgOverrides() return imgOverrides end | |||
--When calling for an icon for Key + Type, replace with image Value, and optionally override type also | --When calling for an icon for Key + Type, replace with image Value, and optionally override type also | ||
local typeImgOverrides = { | local typeImgOverrides = { | ||
['resource'] = { | ['resource'] = { | ||
Line 837: | Line 838: | ||
} | } | ||
} | } | ||
function p.typeImgOverrides() return typeImgOverrides end | |||
--When calling for an icon for Key, the link goes to Value | --When calling for an icon for Key, the link goes to Value | ||
local linkOverrides = { | local linkOverrides = { | ||
['Alt Magic'] = 'Alternative Magic', | ['Alt Magic'] = 'Alternative Magic', | ||
Line 845: | Line 847: | ||
['Earth Golem (AoD)'] = 'Earth Golem (AoD)' | ['Earth Golem (AoD)'] = 'Earth Golem (AoD)' | ||
} | } | ||
function p.linkOverrides() return linkOverrides end | |||
--When calling for an icon for Key + Type, the link goes to Value | --When calling for an icon for Key + Type, the link goes to Value | ||
local typeLinkOverrides = { | local typeLinkOverrides = { | ||
['biome'] = { | ['biome'] = { | ||
Line 912: | Line 915: | ||
} | } | ||
} | } | ||
function p.typeLinkOverrides() return typeLinkOverrides end | |||
-- If no other text override was specified for the given link, use these | -- If no other text override was specified for the given link, use these | ||
local txtOverrides = { | local txtOverrides = { | ||
['Spider2'] = 'Brown Spider', | ['Spider2'] = 'Brown Spider', | ||
['Earth Golem (AoD)'] = 'Earth Golem' | ['Earth Golem (AoD)'] = 'Earth Golem' | ||
} | } | ||
function p.txtOverrides() return txtOverrides end | |||
-- Ambiguous overrides section | -- Ambiguous overrides section | ||
local ambiguousOverrides = { | local ambiguousOverrides = { | ||
['Golbin'] = true, | ['Golbin'] = true, | ||
Line 939: | Line 943: | ||
['Shipwreck Cove'] = true | ['Shipwreck Cove'] = true | ||
} | } | ||
function p.ambiguousOverrides() return ambiguousOverrides end | |||
-- For ambiguous overrides, determines the type text to be used in the page link | -- For ambiguous overrides, determines the type text to be used in the page link | ||
local ambiguousTypeMap = { | local ambiguousTypeMap = { | ||
['mark'] = 'item', | ['mark'] = 'item', | ||
Line 947: | Line 951: | ||
['poi'] = 'Dig Site' | ['poi'] = 'Dig Site' | ||
} | } | ||
function p.ambiguousTypeMap() return ambiguousTypeMap end | |||
-- Defines icon types for which a section or anchor on a static page should be linked to, rather | -- Defines icon types for which a section or anchor on a static page should be linked to, rather | ||
-- than the usual page linking | -- than the usual page linking | ||
local sectionLinks = { | local sectionLinks = { | ||
['agility'] = { | ['agility'] = { | ||
Line 981: | Line 985: | ||
} | } | ||
} | } | ||
function p.sectionLinks() return sectionLinks end | |||
return p | return p |
edits