mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 12:45:10 +00:00
Update book formspec texture and tweak it
This commit is contained in:
parent
a06670b02f
commit
b1fc4ec3db
2 changed files with 10 additions and 10 deletions
|
@ -73,9 +73,9 @@ local write = function(itemstack, user, pointed_thing)
|
||||||
local text = get_text(itemstack)
|
local text = get_text(itemstack)
|
||||||
local formspec = "size[8,9]"..
|
local formspec = "size[8,9]"..
|
||||||
"background[-0.5,-0.5;9,10;mcl_books_book_bg.png]"..
|
"background[-0.5,-0.5;9,10;mcl_books_book_bg.png]"..
|
||||||
"textarea[0.5,0.25;7.5,9.25;text;;"..minetest.formspec_escape(text).."]"..
|
"textarea[0.75,0.1;7.25,9;text;;"..minetest.formspec_escape(text).."]"..
|
||||||
"button[0.5,8.15;3,1;sign;Sign]"..
|
"button[0.75,7.95;3,1;sign;Sign]"..
|
||||||
"button_exit[4,8.15;3,1;ok;Done]"
|
"button_exit[4.25,7.95;3,1;ok;Done]"
|
||||||
minetest.show_formspec(user:get_player_name(), "mcl_books:writable_book", formspec)
|
minetest.show_formspec(user:get_player_name(), "mcl_books:writable_book", formspec)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -93,8 +93,8 @@ local read = function(itemstack, user, pointed_thing)
|
||||||
local text = get_text(itemstack)
|
local text = get_text(itemstack)
|
||||||
local formspec = "size[8,9]"..
|
local formspec = "size[8,9]"..
|
||||||
"background[-0.5,-0.5;9,10;mcl_books_book_bg.png]"..
|
"background[-0.5,-0.5;9,10;mcl_books_book_bg.png]"..
|
||||||
"textarea[0.5,0.25;7.5,9.25;;"..core.colorize("#000000", minetest.formspec_escape(text))..";]"..
|
"textarea[0.75,0.1;7.25,9;;"..core.colorize("#000000", minetest.formspec_escape(text))..";]"..
|
||||||
"button_exit[2.5,8.15;3,1;ok;Done]"
|
"button_exit[2.25,7.95;3,1;ok;Done]"
|
||||||
minetest.show_formspec(user:get_player_name(), "mcl_books:written_book", formspec)
|
minetest.show_formspec(user:get_player_name(), "mcl_books:written_book", formspec)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -125,11 +125,11 @@ minetest.register_on_player_receive_fields(function ( player, formname, fields )
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
local formspec = "size[8,9]"..
|
local formspec = "size[8,9]"..
|
||||||
"background[-0.5,-0.5;9,10;mcl_books_book_bg.png]"..
|
"background[-0.5,-0.5;9,10;mcl_books_book_bg.png]"..
|
||||||
"field[0.5,1;7.5,1;title;"..core.colorize("#000000", "Enter book title:")..";]"..
|
"field[0.75,1;7.25,1;title;"..core.colorize("#000000", "Enter book title:")..";]"..
|
||||||
"label[0.5,1.5;"..core.colorize("#404040", minetest.formspec_escape("by " .. name)).."]"..
|
"label[0.75,1.5;"..core.colorize("#404040", minetest.formspec_escape("by " .. name)).."]"..
|
||||||
"label[0.5,7.15;"..core.colorize("#000000", "Note: The book will no longer") .. "\n" .. core.colorize("#000000", "be editable after signing.").."]"..
|
"label[0.75,6.95;"..core.colorize("#000000", "Note: The book will no longer") .. "\n" .. core.colorize("#000000", "be editable after signing.").."]"..
|
||||||
"button_exit[0.5,8.15;3,1;sign;Sign and Close]"..
|
"button_exit[0.75,7.95;3,1;sign;Sign and Close]"..
|
||||||
"button[4,8.15;3,1;cancel;Cancel]"
|
"button[4.25,7.95;3,1;cancel;Cancel]"
|
||||||
minetest.show_formspec(player:get_player_name(), "mcl_books:signing", formspec)
|
minetest.show_formspec(player:get_player_name(), "mcl_books:signing", formspec)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 867 B |
Loading…
Reference in a new issue