From 5d0e4aef4558362d68fec35ebdace0a1398ce834 Mon Sep 17 00:00:00 2001 From: Paul Ouellette Date: Fri, 21 Aug 2020 19:20:58 -0400 Subject: [PATCH] Add simplified version of 'craftguide' mod, named 'mtg_craftguide' (#2396) --- mods/mtg_craftguide/README.md | 25 + mods/mtg_craftguide/init.lua | 430 ++++++++++++++++++ mods/mtg_craftguide/license.txt | 63 +++ .../locale/mtg_craftguide.fr.tr | 41 ++ mods/mtg_craftguide/locale/template.txt | 57 +++ mods/mtg_craftguide/mod.conf | 3 + .../textures/craftguide_clear_icon.png | Bin 0 -> 545 bytes .../textures/craftguide_furnace.png | Bin 0 -> 715 bytes .../textures/craftguide_next_icon.png | Bin 0 -> 640 bytes .../textures/craftguide_prev_icon.png | Bin 0 -> 640 bytes .../textures/craftguide_search_icon.png | Bin 0 -> 1288 bytes .../textures/craftguide_shapeless.png | Bin 0 -> 170 bytes 12 files changed, 619 insertions(+) create mode 100644 mods/mtg_craftguide/README.md create mode 100644 mods/mtg_craftguide/init.lua create mode 100644 mods/mtg_craftguide/license.txt create mode 100644 mods/mtg_craftguide/locale/mtg_craftguide.fr.tr create mode 100644 mods/mtg_craftguide/locale/template.txt create mode 100644 mods/mtg_craftguide/mod.conf create mode 100644 mods/mtg_craftguide/textures/craftguide_clear_icon.png create mode 100644 mods/mtg_craftguide/textures/craftguide_furnace.png create mode 100644 mods/mtg_craftguide/textures/craftguide_next_icon.png create mode 100644 mods/mtg_craftguide/textures/craftguide_prev_icon.png create mode 100644 mods/mtg_craftguide/textures/craftguide_search_icon.png create mode 100644 mods/mtg_craftguide/textures/craftguide_shapeless.png diff --git a/mods/mtg_craftguide/README.md b/mods/mtg_craftguide/README.md new file mode 100644 index 00000000..9c4ed7a4 --- /dev/null +++ b/mods/mtg_craftguide/README.md @@ -0,0 +1,25 @@ +Minetest Game mod: mtg_craftguide +================================= + +Adds a "Recipes" tab to the inventory. Click an item to see it's recipes. +Click again to show usages. + +Based on [craftguide](https://github.com/minetest-mods/craftguide). + +Authors of media +---------------- + +paramat (CC BY-SA 3.0): + +* craftguide_clear_icon.png +* craftguide_next_icon.png +* craftguide_prev_icon.png +* craftguide_search_icon.png + +Neuromancer (CC BY-SA 3.0): + +* craftguide_furnace.png + +Wuzzy (CC BY-SA 3.0): + +* craftguide_shapeless.png diff --git a/mods/mtg_craftguide/init.lua b/mods/mtg_craftguide/init.lua new file mode 100644 index 00000000..c9a56d59 --- /dev/null +++ b/mods/mtg_craftguide/init.lua @@ -0,0 +1,430 @@ +local S = minetest.get_translator("mtg_craftguide") +local esc = minetest.formspec_escape + +local player_data = {} +local init_items = {} +local recipes_cache = {} +local usages_cache = {} + +local group_stereotypes = { + dye = "dye:white", + wool = "wool:white", + coal = "default:coal_lump", + vessel = "vessels:glass_bottle", + flower = "flowers:dandelion_yellow" +} + +local group_names = { + coal = S("Any coal"), + sand = S("Any sand"), + wool = S("Any wool"), + stick = S("Any stick"), + vessel = S("Any vessel"), + wood = S("Any wood planks"), + stone = S("Any kind of stone block"), + + ["color_red,flower"] = S("Any red flower"), + ["color_blue,flower"] = S("Any blue flower"), + ["color_black,flower"] = S("Any black flower"), + ["color_green,flower"] = S("Any green flower"), + ["color_white,flower"] = S("Any white flower"), + ["color_orange,flower"] = S("Any orange flower"), + ["color_violet,flower"] = S("Any violet flower"), + ["color_yellow,flower"] = S("Any yellow flower"), + + ["color_red,dye"] = S("Any red dye"), + ["color_blue,dye"] = S("Any blue dye"), + ["color_cyan,dye"] = S("Any cyan dye"), + ["color_grey,dye"] = S("Any grey dye"), + ["color_pink,dye"] = S("Any pink dye"), + ["color_black,dye"] = S("Any black dye"), + ["color_brown,dye"] = S("Any brown dye"), + ["color_green,dye"] = S("Any green dye"), + ["color_white,dye"] = S("Any white dye"), + ["color_orange,dye"] = S("Any orange dye"), + ["color_violet,dye"] = S("Any violet dye"), + ["color_yellow,dye"] = S("Any yellow dye"), + ["color_magenta,dye"] = S("Any magenta dye"), + ["color_dark_grey,dye"] = S("Any dark grey dye"), + ["color_dark_green,dye"] = S("Any dark green dye") +} + +local function table_replace(t, val, new) + for k, v in pairs(t) do + if v == val then + t[k] = new + end + end +end + +local function extract_groups(str) + if str:sub(1, 6) == "group:" then + return str:sub(7):split() + end + return nil +end + +local function item_has_groups(item_groups, groups) + for _, group in ipairs(groups) do + if not item_groups[group] then + return false + end + end + return true +end + +local function groups_to_item(groups) + if #groups == 1 then + local group = groups[1] + if group_stereotypes[group] then + return group_stereotypes[group] + elseif minetest.registered_items["default:"..group] then + return "default:"..group + end + end + + for name, def in pairs(minetest.registered_items) do + if item_has_groups(def.groups, groups) then + return name + end + end + + return ":unknown" +end + +local function get_craftable_recipes(output) + local recipes = minetest.get_all_craft_recipes(output) + if not recipes then + return nil + end + + for i = #recipes, 1, -1 do + for _, item in pairs(recipes[i].items) do + local groups = extract_groups(item) + if groups then + item = groups_to_item(groups) + end + if not minetest.registered_items[item] then + table.remove(recipes, i) + break + end + end + end + + return recipes +end + +local function show_item(def) + return def.groups.not_in_craft_guide ~= 1 and def.description ~= "" +end + +local function cache_usages(recipe) + local added = {} + for _, item in pairs(recipe.items) do + if not added[item] then + local groups = extract_groups(item) + if groups then + for name, def in pairs(minetest.registered_items) do + if not added[name] and show_item(def) + and item_has_groups(def.groups, groups) then + local usage = table.copy(recipe) + table_replace(usage.items, item, name) + usages_cache[name] = usages_cache[name] or {} + table.insert(usages_cache[name], usage) + added[name] = true + end + end + elseif show_item(minetest.registered_items[item]) then + usages_cache[item] = usages_cache[item] or {} + table.insert(usages_cache[item], recipe) + end + added[item] = true + end + end +end + +minetest.register_on_mods_loaded(function() + for name, def in pairs(minetest.registered_items) do + if show_item(def) then + local recipes = get_craftable_recipes(name) + if recipes then + recipes_cache[name] = recipes + for _, recipe in ipairs(recipes) do + cache_usages(recipe) + end + end + end + end + for name, def in pairs(minetest.registered_items) do + if recipes_cache[name] or usages_cache[name] then + table.insert(init_items, name) + end + end + table.sort(init_items) +end) + +local function coords(i, cols) + return i % cols, math.floor(i / cols) +end + +local function is_fuel(item) + return minetest.get_craft_result({method="fuel", items={item}}).time > 0 +end + +local function item_button_fs(fs, x, y, item, element_name, groups) + table.insert(fs, ("item_image_button[%s,%s;1.05,1.05;%s;%s;%s]") + :format(x, y, item, element_name, groups and "\n"..esc(S("G")) or "")) + + local tooltip + if groups then + table.sort(groups) + tooltip = group_names[table.concat(groups, ",")] + if not tooltip then + local groupstr = {} + for _, group in ipairs(groups) do + table.insert(groupstr, minetest.colorize("yellow", group)) + end + groupstr = table.concat(groupstr, ", ") + tooltip = S("Any item belonging to the group(s): @1", groupstr) + end + elseif is_fuel(item) then + local itemdef = minetest.registered_items[item:match("%S*")] + local desc = itemdef and itemdef.description or S("Unknown Item") + tooltip = desc.."\n"..minetest.colorize("orange", S("Fuel")) + end + if tooltip then + table.insert(fs, ("tooltip[%s;%s]"):format(element_name, esc(tooltip))) + end +end + +local function recipe_fs(fs, data) + local recipe = data.recipes[data.rnum] + local width = recipe.width + local cooktime, shapeless + + if recipe.method == "cooking" then + cooktime, width = width, 1 + elseif width == 0 then + shapeless = true + if #recipe.items == 1 then + width = 1 + elseif #recipe.items <= 4 then + width = 2 + else + width = 3 + end + end + + table.insert(fs, ("label[5.5,1;%s]"):format(esc(data.show_usages + and S("Usage @1 of @2", data.rnum, #data.recipes) + or S("Recipe @1 of @2", data.rnum, #data.recipes)))) + + if #data.recipes > 1 then + table.insert(fs, + "image_button[5.5,1.6;0.8,0.8;craftguide_prev_icon.png;recipe_prev;]".. + "image_button[6.2,1.6;0.8,0.8;craftguide_next_icon.png;recipe_next;]".. + "tooltip[recipe_prev;"..esc(S("Previous recipe")).."]".. + "tooltip[recipe_next;"..esc(S("Next recipe")).."]") + end + + local rows = math.ceil(table.maxn(recipe.items) / width) + if width > 3 or rows > 3 then + table.insert(fs, ("label[0,1;%s]") + :format(esc(S("Recipe is too big to be displayed.")))) + return + end + + local base_x = 3 - width + local base_y = rows == 1 and 1 or 0 + + for i, item in pairs(recipe.items) do + local x, y = coords(i - 1, width) + + local groups = extract_groups(item) + if groups then + item = groups_to_item(groups) + end + item_button_fs(fs, base_x + x, base_y + y, item, item, groups) + end + + if shapeless or recipe.method == "cooking" then + table.insert(fs, ("image[3.2,0.5;0.5,0.5;craftguide_%s.png]") + :format(shapeless and "shapeless" or "furnace")) + local tooltip = shapeless and S("Shapeless") or + S("Cooking time: @1", minetest.colorize("yellow", cooktime)) + table.insert(fs, "tooltip[3.2,0.5;0.5,0.5;"..esc(tooltip).."]") + end + table.insert(fs, "image[3,1;1,1;sfinv_crafting_arrow.png]") + + item_button_fs(fs, 4, 1, recipe.output, recipe.output:match("%S*")) +end + +local function get_formspec(player) + local name = player:get_player_name() + local data = player_data[name] + data.pagemax = math.max(1, math.ceil(#data.items / 32)) + + local fs = {} + table.insert(fs, + "style_type[item_image_button;padding=2]".. + "field[0.3,4.2;2.8,1.2;filter;;"..esc(data.filter).."]".. + "label[5.8,4.15;"..minetest.colorize("yellow", data.pagenum).." / ".. + data.pagemax.."]".. + "image_button[2.63,4.05;0.8,0.8;craftguide_search_icon.png;search;]".. + "image_button[3.25,4.05;0.8,0.8;craftguide_clear_icon.png;clear;]".. + "image_button[5,4.05;0.8,0.8;craftguide_prev_icon.png;prev;]".. + "image_button[7.25,4.05;0.8,0.8;craftguide_next_icon.png;next;]".. + "tooltip[search;"..esc(S("Search")).."]".. + "tooltip[clear;"..esc(S("Reset")).."]".. + "tooltip[prev;"..esc(S("Previous page")).."]".. + "tooltip[next;"..esc(S("Next page")).."]".. + "field_close_on_enter[filter;false]") + + if #data.items == 0 then + table.insert(fs, "label[3,2;"..esc(S("No items to show.")).."]") + else + local first_item = (data.pagenum - 1) * 32 + for i = first_item, first_item + 31 do + local item = data.items[i + 1] + if not item then + break + end + local x, y = coords(i % 32, 8) + item_button_fs(fs, x, y, item, item) + end + end + + table.insert(fs, "container[0,5.6]") + if data.recipes then + recipe_fs(fs, data) + elseif data.prev_item then + table.insert(fs, ("label[2,1;%s]"):format(esc(data.show_usages + and S("No usages.").."\n"..S("Click again to show recipes.") + or S("No recipes.").."\n"..S("Click again to show usages.")))) + end + table.insert(fs, "container_end[]") + + return table.concat(fs) +end + +local function imatch(str, filter) + return str:lower():find(filter, 1, true) ~= nil +end + +local function execute_search(data) + local filter = data.filter + if filter == "" then + data.items = init_items + return + end + data.items = {} + + for _, item in ipairs(init_items) do + local def = minetest.registered_items[item] + local desc = def and minetest.get_translated_string(data.lang_code, def.description) + + if imatch(item, filter) or desc and imatch(desc, filter) then + table.insert(data.items, item) + end + end +end + +local function on_receive_fields(player, fields) + local name = player:get_player_name() + local data = player_data[name] + + if fields.clear then + data.filter = "" + data.pagenum = 1 + data.prev_item = nil + data.recipes = nil + data.items = init_items + return true + + elseif fields.key_enter_field == "filter" or fields.search then + local new = fields.filter:lower() + if data.filter == new then + return + end + data.filter = new + data.pagenum = 1 + execute_search(data) + return true + + elseif fields.prev or fields.next then + if data.pagemax == 1 then + return + end + data.pagenum = data.pagenum + (fields.next and 1 or -1) + if data.pagenum > data.pagemax then + data.pagenum = 1 + elseif data.pagenum == 0 then + data.pagenum = data.pagemax + end + return true + + elseif fields.recipe_next or fields.recipe_prev then + data.rnum = data.rnum + (fields.recipe_next and 1 or -1) + if data.rnum > #data.recipes then + data.rnum = 1 + elseif data.rnum == 0 then + data.rnum = #data.recipes + end + return true + + else + local item + for field in pairs(fields) do + if field:find(":") then + item = field + break + end + end + if not item then + return + end + + if item == data.prev_item then + data.show_usages = not data.show_usages + else + data.show_usages = nil + end + if data.show_usages then + data.recipes = usages_cache[item] + else + data.recipes = recipes_cache[item] + end + data.prev_item = item + data.rnum = 1 + return true + end +end + +minetest.register_on_joinplayer(function(player) + local name = player:get_player_name() + local info = minetest.get_player_information(name) + + player_data[name] = { + filter = "", + pagenum = 1, + items = init_items, + lang_code = info.lang_code + } +end) + +minetest.register_on_leaveplayer(function(player) + local name = player:get_player_name() + player_data[name] = nil +end) + +sfinv.register_page("mtg_craftguide:craftguide", { + title = esc(S("Recipes")), + get = function(self, player, context) + return sfinv.make_formspec(player, context, get_formspec(player)) + end, + on_player_receive_fields = function(self, player, context, fields) + if on_receive_fields(player, fields) then + sfinv.set_player_inventory_formspec(player) + end + end +}) diff --git a/mods/mtg_craftguide/license.txt b/mods/mtg_craftguide/license.txt new file mode 100644 index 00000000..8d28c5c7 --- /dev/null +++ b/mods/mtg_craftguide/license.txt @@ -0,0 +1,63 @@ +License of source code +---------------------- + +The MIT License (MIT) + +Copyright (C) 2015-2019 Jean-Patrick Guerrero and contributors. +Copyright (C) 2020 pauloue + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +Licenses of media (textures) +---------------------------- + +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) + +Copyright (C) 2018 paramat +Copyright (C) Neuromancer +Copyright (C) 2017 Wuzzy + +You are free to: +Share — copy and redistribute the material in any medium or format. +Adapt — remix, transform, and build upon the material for any purpose, even commercially. +The licensor cannot revoke these freedoms as long as you follow the license terms. + +Under the following terms: + +Attribution — You must give appropriate credit, provide a link to the license, and +indicate if changes were made. You may do so in any reasonable manner, but not in any way +that suggests the licensor endorses you or your use. + +ShareAlike — If you remix, transform, or build upon the material, you must distribute +your contributions under the same license as the original. + +No additional restrictions — You may not apply legal terms or technological measures that +legally restrict others from doing anything the license permits. + +Notices: + +You do not have to comply with the license for elements of the material in the public +domain or where your use is permitted by an applicable exception or limitation. +No warranties are given. The license may not give you all of the permissions necessary +for your intended use. For example, other rights such as publicity, privacy, or moral +rights may limit how you use the material. + +For more details: +http://creativecommons.org/licenses/by-sa/3.0/ diff --git a/mods/mtg_craftguide/locale/mtg_craftguide.fr.tr b/mods/mtg_craftguide/locale/mtg_craftguide.fr.tr new file mode 100644 index 00000000..d43d66c9 --- /dev/null +++ b/mods/mtg_craftguide/locale/mtg_craftguide.fr.tr @@ -0,0 +1,41 @@ +# textdomain: mtg_craftguide + + +### init.lua ### + +Any black dye=Quelconque colorant noir +Any black flower=Quelconque fleur noire +Any blue dye=Quelconque colorant bleu +Any blue flower=Quelconque fleur bleue +Any brown dye=Quelconque colorant marron +Any coal=Quelconque charbon +Any cyan dye=Quelconque colorant bleu ciel +Any dark green dye=Quelconque colorant vert foncé +Any dark grey dye=Quelconque colorant gris foncé +Any green dye=Quelconque colorant vert +Any green flower=Quelconque fleur verte +Any grey dye=Quelconque colorant gris +Any item belonging to the group(s): @1=Tout item appartenant au(x) groupe(s) : @1 +Any kind of stone block=Quelconque roche +Any magenta dye=Quelconque colorant magenta +Any orange dye=Quelconque colorant orange +Any orange flower=Quelconque fleur orange +Any pink dye=Quelconque colorant rose +Any red dye=Quelconque colorant rouge +Any red flower=Quelconque fleur rouge +Any sand=Quelconque sable +Any stick=Quelconque bâton +Any vessel=Quelconque couvert +Any violet dye=Quelconque colorant violet +Any violet flower=Quelconque fleur violette +Any white dye=Quelconque colorant blanc +Any white flower=Quelconque fleur blanche +Any wood planks=Quelconques planches de bois +Any wool=Quelconque laine +Any yellow dye=Quelconque colorant jaune +Any yellow flower=Quelconque fleur jaune +Cooking time: @1=Temps de cuisson : @1 +Recipe @1 of @2=Recette @1 sur @2 +Recipes=Recettes +Shapeless=Sans forme +Usage @1 of @2=Usage @1 sur @2 diff --git a/mods/mtg_craftguide/locale/template.txt b/mods/mtg_craftguide/locale/template.txt new file mode 100644 index 00000000..aec21266 --- /dev/null +++ b/mods/mtg_craftguide/locale/template.txt @@ -0,0 +1,57 @@ +# textdomain: mtg_craftguide + + +### init.lua ### + +Any black dye= +Any black flower= +Any blue dye= +Any blue flower= +Any brown dye= +Any coal= +Any cyan dye= +Any dark green dye= +Any dark grey dye= +Any green dye= +Any green flower= +Any grey dye= +Any item belonging to the group(s): @1= +Any kind of stone block= +Any magenta dye= +Any orange dye= +Any orange flower= +Any pink dye= +Any red dye= +Any red flower= +Any sand= +Any stick= +Any vessel= +Any violet dye= +Any violet flower= +Any white dye= +Any white flower= +Any wood planks= +Any wool= +Any yellow dye= +Any yellow flower= +Click again to show recipes.= +Click again to show usages.= +Cooking time: @1= +Fuel= +# Label for group ingredients +G= +Next page= +Next recipe= +No items to show.= +No recipes.= +No usages.= +Previous page= +Previous recipe= +Recipe @1 of @2= +Recipe is too big to be displayed.= +Recipes= +Reset= +Search= +Shapeless= +Unknown Item= +Usage @1 of @2= diff --git a/mods/mtg_craftguide/mod.conf b/mods/mtg_craftguide/mod.conf new file mode 100644 index 00000000..3b2d975f --- /dev/null +++ b/mods/mtg_craftguide/mod.conf @@ -0,0 +1,3 @@ +name = mtg_craftguide +description = Minetest Game mod: mtg_craftguide +depends = sfinv diff --git a/mods/mtg_craftguide/textures/craftguide_clear_icon.png b/mods/mtg_craftguide/textures/craftguide_clear_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1a0e513f153206cc9477f946429c323434c3a16a GIT binary patch literal 545 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&nFaWSxB}__q=S#i$Nm6y3YG-< z1v4;nnVLJhc!xyCWas2xe)uFWcljg+2F6ZL7srr_TW@bY%xg9fV18f{eQ0Y>bM^n} zvO)h{l1_L`Ep__*efO%lB@CWnE)bCSr0{RD$XCm$+{@BcpX$$!ZalMn>7-A}cM9r` z+-sP;zxeRaDQxfm%#}W+ZX)rCpO^3F9JXSfD$9#W8$u5KxPRxskK>jKPu^Qe{lC#L zK|W9Y@p6+Hk5BME>F4G6xw~#oy;t+`;%@t$vd8PU?3H`!Jo$KM-?9ClSJtdKKC|!h z+Jp&~KdL@3CN;nK^Ko%}L)*I)GPl9|J`p0=^y?h9r$nUj-_@zpX870{%k#B z6C}MwdXLC*9qwyW?=h^gf9ajP~WM*SvU|m~OQBP4$Oo4rSdUkVma&T^IX}3ZV>cVMP8j{T6WN^*;)4*8P!QvK3YA+3 zYd!}5`J4UkXZp`F{kA88UK_t-7o9{EgFO`PyA#@g6aB>!|Dq26)CqD(2wX7;?1lv^ z7XktS0Pog==frT|x?$CzTm0HbdS*QSz%l2!Fi1KinS3K#Js)aU9P6GG%3~Dwyb{oh z5vN-bm~jtbOAr0=hVImU*wB6d_5?CzQ4s%?2(W_P z`v3p{ww# xQC3DF4nY>6EnMOpY+@X0qWnVgTwLO;LI7px7sOcV;C=uA002ovPDHLkV1mBG99aMW literal 0 HcmV?d00001 diff --git a/mods/mtg_craftguide/textures/craftguide_next_icon.png b/mods/mtg_craftguide/textures/craftguide_next_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..266c9ba676c3efcc7a0275b4cf4988f16817cc00 GIT binary patch literal 640 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&%?a=caRt)<2P>GYa3KZgKI4)g zzhDMtHg-;KNohF+MI{wg6H_yDOKV%d(8#FhnAo_aoc!*d-Z@K_u2{Kh?bU0y?%aL& z^vB=z>l^1WFfb-~x;TbZ+eFVfnyI0jE#+*|8KRmxw@b^l=*k>-{a1nHG3Cn zbivTflS@Jz)?L$E?(0yyO)7M<(t_Rl-YgIODEWnN{qMpc->!!5uQ$#Yxvccy@2=cm zQ@3zb*sr&~*Th_5|6UqM{rD{QtvTxw^9LRq2JbHnIv1Hgh=Ex)%=`z8KQMr(^%ogG zWZ&r#lwe?yYtWy>k+0{UO`mrwexLfOx9>N5TZq|gFPA_OS19_@ b`-`{W!?Q;@IkhIhsABMR^>bP0l+XkK%kN)= literal 0 HcmV?d00001 diff --git a/mods/mtg_craftguide/textures/craftguide_prev_icon.png b/mods/mtg_craftguide/textures/craftguide_prev_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..c8072961bf07a6bb399072027a32e35deaebf62f GIT binary patch literal 640 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&%?a=caRt)<2P>GYa3KZgKI4)g zzhDMtHg-;KNohF+MI{wg6H_yDOKV%d(8#FhnAo_aoc!*d-Z@K_u2{Kh?bU0y?%aL& z^vB=z>l^1WFfb-~x;TbZ+$-$7!Un=@#FVD)&uAC88+E7uK3G&;O>5gBmY>5&@*NTm^ScZhSR@?0Ss0=o zW&A(G(7>g=`SE97rY{>C7`M3aEKp5i&=q9P=maV`!Vsmzc0tInVOj@VDv%*efk9QE zL5RbFlVt&mhyxRs0we1L1}2Y!#D5jK2P?MbZ2o`XLbfRLCJo=k2cV%fr+EIl`LRaN V9$j2o=K+i=22WQ%mvv4FO#maRULgPg literal 0 HcmV?d00001 diff --git a/mods/mtg_craftguide/textures/craftguide_search_icon.png b/mods/mtg_craftguide/textures/craftguide_search_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1c374cad16bdc3964e3819618b5cbb72c2701751 GIT binary patch literal 1288 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD~={fl(*GC&U%V-M)SMjT<-qj{-s= zU>NdfHZZ)BOM?7@85kKE**Libgha(8l+@HUwRH83Oss93+}s1gBa%|mvhs>5sv5ic zCrq3&b^6SC3l=X~wqoU~)oa&n*tB`e*6llX?mlqv$k7uQE?>WK^VaP<_a8id^8Cfi zH*ep)|M2ni*Ka?5{`os6$mA{q1G9#wi(^Q|t+z9;PI_&?(>8tPOv?>to_<^6bDHPr zp8v)&T}Dr@Su2N||H@B(`akLPrsVRCbsA#bN0T;2=!kV+wcosJ_1rn}ar5S9>|SmB zcW$YCGG4^S$g{G{V#W%ouxZvZ)uL#7Wr$7^V6jFx_(WJ{CD~J$u&2_ zZa(?BWyzCr+i9olmYxqe@wy}?-g?fxfLEJ8om`w9*R}uo&YVwEP5h=#UAb`Iy?gr> zt`vQG#iMTOe7kBD0iWHc{>|_7PF=VBQ|9?OMKgcs2=BPyp7`U>MV6=U?o==Ss_XXs zPPwJmMD5zzOg?Y zb@l2DVcwa>Yj(}GJ$z&B`CkgG{?#tdRep-RwVOE@UMIdz)pWIS^NcinSjy7ycgNRF z7rH9Wc%A6#e6P$P@%`HAJ;9F*gX6TH-E&~@aLz5~>pae5nfTU2nW4rZv;0fv@h_GM zAAdM7oDg3-J@$Lo@h@@FhDU8|8U6}fP*?nGvP9qI%hDNjhKu6+UYe_Xi8lJ>tNC%; zoCn93e8_J6cKyxot~bv`7;1!jl8nepJwRX2XLCtNI!q%vh(xf6{Sj zg8T#dt4ab2GGX0959F_(R&U_$o`1TzKGpdmJJa+qfAjOMl`Krx%Z^Kn2mN+<@Tka1 zt?|IsTx}-*cD?ng-y0iVaL#a05v~-O(O^7rUIQl|TPJ7PE)V06h1CnX`xyS5xx9rp6#tERZj=|H_ K&t;ucLK6T{^A{-q literal 0 HcmV?d00001 diff --git a/mods/mtg_craftguide/textures/craftguide_shapeless.png b/mods/mtg_craftguide/textures/craftguide_shapeless.png new file mode 100644 index 0000000000000000000000000000000000000000..51d8ce508d37c07719b1ba90e662d20c4e8f5c4d GIT binary patch literal 170 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaP3?%1DUd;wloB=)|u0T2|DXFNa$l>ejJRpa$ zB*-tA!Qt7BG$6;{)5S4_BRV