diff --git a/guide.lua b/guide.lua index 1215f2c..590cb6f 100644 --- a/guide.lua +++ b/guide.lua @@ -29,6 +29,7 @@ local pages={ ]] }, + { name="electricalNetwork", title=S("Electrical network"), @@ -57,6 +58,7 @@ local pages={ Picture 1. Environment after consumer explosion ]] }, + { name="cableFormer", title=S("Cable Former"), @@ -79,6 +81,7 @@ local pages={ Picture 1. Cable Former running ]] }, + { name="canningMachine", title=S("Canning Machine"), @@ -136,7 +139,7 @@ local function getGuideFormspec(playerName,pageName) for _,page in ipairs(pages) do if page.name==pageName then local content=preprocessHypertext(page.content,{ - IMAGE_WIDTH=700, + IMAGE_WIDTH=550, ITEM_HEIGHT=16 }) table.insert(formspec,string.format("hypertext[4.2,0.4;10.7,10.3;content;%s]",content)) @@ -169,5 +172,7 @@ minetest.register_on_player_receive_fields(handleGuideFields) minetest.register_chatcommand("industrialtest_guide",{ description=S("Shows graphical guide for content and features provided by IndustrialTest"), - func=showGuide + func=function(playerName) + showGuide(playerName) + end }) diff --git a/textures/industrialtest_guide_cable_former.png b/textures/industrialtest_guide_cable_former.png index 18fe159..080adb9 100644 Binary files a/textures/industrialtest_guide_cable_former.png and b/textures/industrialtest_guide_cable_former.png differ diff --git a/textures/industrialtest_guide_canning_machine.png b/textures/industrialtest_guide_canning_machine.png index 2ecc947..94d3b8c 100644 Binary files a/textures/industrialtest_guide_canning_machine.png and b/textures/industrialtest_guide_canning_machine.png differ