summaryrefslogtreecommitdiff
path: root/src/content_nodemeta.cpp
diff options
context:
space:
mode:
authordarkrose <lisa@ltmnet.com>2012-07-16 02:19:38 +1000
committerPerttu Ahola <celeron55@gmail.com>2012-07-22 17:40:41 +0300
commit506203345ba2795aa0af68a434f4b77cf50e664a (patch)
tree51e168ed612bb0bcb7f2e0e2e77242e50bd8e855 /src/content_nodemeta.cpp
parentc259f7c8bd67e38c7be19a90c5113dbf8fd13670 (diff)
downloadminetest-506203345ba2795aa0af68a434f4b77cf50e664a.tar.gz
minetest-506203345ba2795aa0af68a434f4b77cf50e664a.tar.bz2
minetest-506203345ba2795aa0af68a434f4b77cf50e664a.zip
Implement formspec
Diffstat (limited to 'src/content_nodemeta.cpp')
-rw-r--r--src/content_nodemeta.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/content_nodemeta.cpp b/src/content_nodemeta.cpp
index 12c8aa426..0e4c3dd75 100644
--- a/src/content_nodemeta.cpp
+++ b/src/content_nodemeta.cpp
@@ -63,7 +63,7 @@ static bool content_nodemeta_deserialize_legacy_body(
//meta->setString("infotext","\"${text}\"");
meta->setString("infotext",
std::string("\"") + meta->getString("text") + "\"");
- meta->setString("formspec","hack:sign_text_input");
+ meta->setString("formspec","field[text;;${text}]");
return false;
}
else if(id == NODEMETA_CHEST) // ChestNodeMetadata
@@ -77,7 +77,7 @@ static bool content_nodemeta_deserialize_legacy_body(
}
assert(inv->getList("main") && !inv->getList("0"));
- meta->setString("formspec","invsize[8,9;]"
+ meta->setString("formspec","size[8,9]"
"list[current_name;main;0,0;8,4;]"
"list[current_player;main;0,5;8,4;]");
return false;
@@ -94,7 +94,7 @@ static bool content_nodemeta_deserialize_legacy_body(
}
assert(inv->getList("main") && !inv->getList("0"));
- meta->setString("formspec","invsize[8,9;]"
+ meta->setString("formspec","size[8,9]"
"list[current_name;main;0,0;8,4;]"
"list[current_player;main;0,5;8,4;]");
return false;
@@ -115,7 +115,7 @@ static bool content_nodemeta_deserialize_legacy_body(
is>>temp;
meta->setString("src_time", ftos((float)temp/10));
- meta->setString("formspec","invsize[8,9;]"
+ meta->setString("formspec","size[8,9]"
"list[current_name;fuel;2,3;1,1;]"
"list[current_name;src;2,1;1,1;]"
"list[current_name;dst;5,1;2,2;]"