diff options
author | SmallJoker <mk939@ymail.com> | 2017-05-13 13:14:41 +0200 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-05-16 21:57:26 +0100 |
commit | 0120fe16a761f9e06c8c2877439db6a46d808143 (patch) | |
tree | 2c00303571b08c2484a637b5b50f2398f22fd347 /builtin/mainmenu | |
parent | fd32005b0f886450ada99f36460c1de58b6a832b (diff) | |
download | minetest-0120fe16a761f9e06c8c2877439db6a46d808143.tar.gz minetest-0120fe16a761f9e06c8c2877439db6a46d808143.tar.bz2 minetest-0120fe16a761f9e06c8c2877439db6a46d808143.zip |
CSM: Document forgotten functions
Diffstat (limited to 'builtin/mainmenu')
-rw-r--r-- | builtin/mainmenu/common.lua | 2 | ||||
-rw-r--r-- | builtin/mainmenu/tab_mods.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mainmenu/common.lua b/builtin/mainmenu/common.lua index 294e1a621..fa7ae583b 100644 --- a/builtin/mainmenu/common.lua +++ b/builtin/mainmenu/common.lua @@ -250,7 +250,7 @@ end -------------------------------------------------------------------------------- function text2textlist(xpos, ypos, width, height, tl_name, textlen, text, transparency) - local textlines = core.splittext(text, textlen) + local textlines = core.wrap_text(text, textlen) local retval = "textlist[" .. xpos .. "," .. ypos .. ";" .. width .. "," .. height .. ";" .. tl_name .. ";" diff --git a/builtin/mainmenu/tab_mods.lua b/builtin/mainmenu/tab_mods.lua index 29afd8a4e..9510a9e18 100644 --- a/builtin/mainmenu/tab_mods.lua +++ b/builtin/mainmenu/tab_mods.lua @@ -75,7 +75,7 @@ local function get_formspec(tabview, name, tabdata) if error == nil then local descriptiontext = descriptionfile:read("*all") - descriptionlines = core.splittext(descriptiontext,42) + descriptionlines = core.wrap_text(descriptiontext, 42) descriptionfile:close() else descriptionlines = {} |