forked from mtcontrib/markers
changed buy-references to protect
This commit is contained in:
parent
f9ede8b64d
commit
22b833d93d
8
init.lua
8
init.lua
@ -331,8 +331,8 @@ markers.get_marker_formspec = function(player, pos, error_msg)
|
|||||||
"button_exit[2,6.0;2,0.5;abort;OK]";
|
"button_exit[2,6.0;2,0.5;abort;OK]";
|
||||||
else
|
else
|
||||||
formspec = formspec..
|
formspec = formspec..
|
||||||
'label[0.5,2.0;Buying this area will cost you ]'..
|
-- 'label[0.5,2.0;Buying this area will cost you ]'..
|
||||||
'label[4.7,2.0;'..markers.calculate_area_price_text( coords[1], coords[2], name )..'.]'..
|
-- 'label[4.7,2.0;'..markers.calculate_area_price_text( coords[1], coords[2], name )..'.]'..
|
||||||
|
|
||||||
'label[0.5,3.0;Your area ought to go..]'..
|
'label[0.5,3.0;Your area ought to go..]'..
|
||||||
'label[0.5,3.5;this many blocks up:]'..
|
'label[0.5,3.5;this many blocks up:]'..
|
||||||
@ -348,7 +348,7 @@ markers.get_marker_formspec = function(player, pos, error_msg)
|
|||||||
|
|
||||||
"button_exit[2,6.0;2,0.5;abort;Abort]"..
|
"button_exit[2,6.0;2,0.5;abort;Abort]"..
|
||||||
-- code the position in the "Buy area" field
|
-- code the position in the "Buy area" field
|
||||||
"button_exit[6,6.0;2,0.5;"..minetest.pos_to_string(pos)..";Buy area]";
|
"button_exit[6,6.0;2,0.5;"..minetest.pos_to_string(pos)..";Protect area]";
|
||||||
end
|
end
|
||||||
|
|
||||||
return formspec;
|
return formspec;
|
||||||
@ -469,7 +469,7 @@ markers.form_input_handler = function( player, formname, fields)
|
|||||||
--- decode the position of the marker (which is hidden in the Buy-buttons name
|
--- decode the position of the marker (which is hidden in the Buy-buttons name
|
||||||
local pos = {};
|
local pos = {};
|
||||||
for k, v in pairs( fields ) do
|
for k, v in pairs( fields ) do
|
||||||
if( v == 'Buy area' ) then
|
if( v == 'Protect area' ) then
|
||||||
pos = minetest.string_to_pos( k );
|
pos = minetest.string_to_pos( k );
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user