Toggle menu
2.5K
1.7K
8
20.9K
Divinity Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 20:30, 30 March 2026 by Alex (talk | contribs) (Created page with "-- This module stores icon data for Module:Icon. -------------------------------------------------------------------------------- -- Icon data -------------------------------------------------------------------------------- local data = { Flanked = { image = "Status DOS2 Flanked Icon.png", tooltip = "Flanked", link = true, }, Sleeping = { aliases = {"sleep"}, image = "Status DOS2 Sleeping Icon.png", tooltip = "Sleeping", link = true }, _DEFAULT =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Status DOS2/data/doc

-- This module stores icon data for [[Module:Icon]].

--------------------------------------------------------------------------------
-- Icon data
--------------------------------------------------------------------------------

local data = {
	Flanked = {
		image = "Status DOS2 Flanked Icon.png",
		tooltip = "Flanked",
		link = true,
	},
	Sleeping = {
		aliases = {"sleep"},
		image = "Status DOS2 Sleeping Icon.png",
		tooltip = "Sleeping",
		link = true
	},
	_DEFAULT = {
		image = "Status DOS2 Source-Muted Icon.png",
		link = true,
	}
}

--------------------------------------------------------------------------------
-- End icon data
--------------------------------------------------------------------------------

-- Make aliases work the same as normal keys, and remove the "aliases" subtables.
local ret= {}
for code, iconData in pairs(data) do
	iconData.canonicalCode = code
	if iconData.aliases then
		for _, alias in ipairs(iconData.aliases) do
			ret[alias] = iconData
		end
		iconData.aliases = nil
	end
	ret[code] = iconData
end

return ret