From: paramat Date: Tue, 8 Mar 2016 02:40:45 +0000 (+0000) Subject: Dye: Add global table of dye names and descriptions X-Git-Tag: 0.4.14~97 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=079b79603179c648e03fb78cf96e05496c5e409f;p=oweals%2Fminetest_game.git Dye: Add global table of dye names and descriptions --- diff --git a/mods/dye/init.lua b/mods/dye/init.lua index 0a951758..d414d77c 100644 --- a/mods/dye/init.lua +++ b/mods/dye/init.lua @@ -2,7 +2,28 @@ dye = {} dye.basecolors = {"white", "grey", "black", "red", "yellow", "green", "cyan", "blue", "magenta"} -dye.excolors = {"white", "lightgrey", "grey", "darkgrey", "black", "red", "orange", "yellow", "lime", "green", "aqua", "cyan", "sky_blue", "blue", "violet", "magenta", "red_violet"} +dye.excolors = {"white", "lightgrey", "grey", "darkgrey", "black", "red", "orange", "yellow", + "lime", "green", "aqua", "cyan", "sky_blue", "blue", "violet", "magenta", "red_violet"} + +-- Make dye names and descriptions available globally + +dye.dyes = { + {"white", "White"}, + {"grey", "Grey"}, + {"dark_grey", "Dark grey"}, + {"black", "Black"}, + {"violet", "Violet"}, + {"blue", "Blue"}, + {"cyan", "Cyan"}, + {"dark_green", "Dark green"}, + {"green", "Green"}, + {"yellow", "Yellow"}, + {"brown", "Brown"}, + {"orange", "Orange"}, + {"red", "Red"}, + {"magenta", "Magenta"}, + {"pink", "Pink"}, +} -- This collection of colors is partly a historic thing, partly something else