Skip to content

Commit

Permalink
Renamed to "help" to resemble the help inventory tab in CTF v2.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-blob authored Oct 26, 2023
1 parent a0ab547 commit 2adcd8f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mods/other/ctf_help/init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local markdown_guide = [[
# Capture the Flag Guide
local markdown_help = [[
# Capture the Flag Help
### Basics
* Click the opposite team's flag to take it.
Expand Down Expand Up @@ -31,10 +31,10 @@ It's helpful to read the description of the items your class is given.
****
]]

local function ctf_help(name, guide_content)
local formspec_guide = md2f.md2f(0.3, 0, 8, 10, guide_content)
local function ctf_help(name, help_content)
local formspec_help = md2f.md2f(0.3, 0, 8, 10, help_content)
local formspec = "size[8,9.5]" ..
formspec_guide ..
formspec_help ..
"button_exit[3,8.75;2,1;exit;Close]"
minetest.show_formspec(name, "ctf_help", formspec)
return true
Expand Down Expand Up @@ -82,13 +82,13 @@ minetest.register_on_newplayer(function(player)
player:hud_remove(text_hud)
player:hud_remove(background_hud)
end
ctf_help(name, markdown_guide)
ctf_help(name, markdown_help)
end
})
end)

minetest.register_chatcommand("ctf_help", {
func = function(name, param)
ctf_help(name, markdown_guide)
ctf_help(name, markdown_help)
end
})

0 comments on commit 2adcd8f

Please sign in to comment.