diff options
| author | kilbith <kilbith@users.noreply.github.com> | 2017-02-06 09:59:31 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-06 09:59:31 +0000 | 
| commit | 452b05d4503e1fbcc8307793e4454b7f37779139 (patch) | |
| tree | 60b008418fbe9747d3f2e712497430b0790d20af | |
| parent | bb3bab045e59c82cb24c91f02fbf29c2396a966c (diff) | |
| parent | 7a4eeaff13b06c93ef671b7a455c7f9e79800700 (diff) | |
Merge pull request #15 from Wuzzy2/shapeless
Add icon for shapeless recipes
| -rw-r--r-- | init.lua | 10 | ||||
| -rw-r--r-- | textures/craftguide_shapeless.png | bin | 0 -> 227 bytes | 
2 files changed, 8 insertions, 2 deletions
| @@ -92,14 +92,20 @@ function craftguide:get_recipe(iY, xoffset, tooltip, item, recipe_num, recipes)  				recipe_num.." of "..recipes_total.."]"  	end  	local recipe_type = recipes[recipe_num].type +	local items = recipes[recipe_num].items +	local width = recipes[recipe_num].width +  	if recipe_type == "cooking" then  		formspec = formspec..  			"image["..(xoffset-0.8)..","..(iY+1)..  				".5;0.5,0.5;craftguide_furnace.png]" +	-- Shapeless recipe +	elseif recipe_type == "normal" and width == 0 then +		formspec = formspec.. +			"image["..(xoffset-0.8)..","..(iY+1).. +				".5;0.5,0.5;craftguide_shapeless.png]"  	end -	local items = recipes[recipe_num].items -	local width = recipes[recipe_num].width  	if width == 0 then width = min(3, #items) end  	local rows = ceil(maxn(items) / width)  	local btn_size, craftgrid_limit = 1, 5 diff --git a/textures/craftguide_shapeless.png b/textures/craftguide_shapeless.pngBinary files differ new file mode 100644 index 0000000..179d317 --- /dev/null +++ b/textures/craftguide_shapeless.png | 
