From 0bde9d73abfac974ae45144055e3d5f4c9c376aa Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 5 Feb 2017 22:45:25 +0100 Subject: [PATCH] Add slight MCl2 craftguide styling --- mods/craftguide/depends.txt | 1 + mods/craftguide/init.lua | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 mods/craftguide/depends.txt diff --git a/mods/craftguide/depends.txt b/mods/craftguide/depends.txt new file mode 100644 index 000000000..315237e07 --- /dev/null +++ b/mods/craftguide/depends.txt @@ -0,0 +1 @@ +mcl_core diff --git a/mods/craftguide/init.lua b/mods/craftguide/init.lua index 286674e0b..064dad7ab 100644 --- a/mods/craftguide/init.lua +++ b/mods/craftguide/init.lua @@ -156,8 +156,10 @@ function craftguide:get_formspec(player_name, is_fuel) end data.pagemax = max(1, ceil(#data.items / ipp)) - local formspec = "size["..data.iX..","..(iY+3)..".6;]"..[[ - background[1,1;1,1;craftguide_bg.png;true] + local formspec = "size["..data.iX..","..(iY+3)..".6;]".. + mcl_core.gui_slots .. + mcl_core.gui_bg .. + [[background[1,1;1,1;craftguide_bg.png;true] button[2.4,0.21;0.8,0.5;search;?] button[3.05,0.21;0.8,0.5;clear;X] tooltip[search;Search]