forked from minetest/minetest_game
Books: Move page buttons at the bottom
This commit is contained in:
parent
c3d2bc383b
commit
a71948c007
|
@ -41,12 +41,12 @@ local function book_on_use(itemstack, user)
|
||||||
"label[0.5,0.5;by " .. owner .. "]" ..
|
"label[0.5,0.5;by " .. owner .. "]" ..
|
||||||
"tablecolumns[color;text]" ..
|
"tablecolumns[color;text]" ..
|
||||||
"tableoptions[background=#00000000;highlight=#00000000;border=false]" ..
|
"tableoptions[background=#00000000;highlight=#00000000;border=false]" ..
|
||||||
"table[0.4,0;4,0.5;title;#FFFF00," .. minetest.formspec_escape(title) .. "]"..
|
"table[0.4,0;7,0.5;title;#FFFF00," .. minetest.formspec_escape(title) .. "]"..
|
||||||
"textarea[0.5,1.5;7.5,7;;".. minetest.formspec_escape(text:sub(
|
"textarea[0.5,1.5;7.5,7;;".. minetest.formspec_escape(text:sub(
|
||||||
(cpp * page) - cpp, cpp * page)) .. ";]" ..
|
(cpp * page) - cpp, cpp * page)) .. ";]" ..
|
||||||
"button[4.6,0.2;0.8,0.8;book_prev;<]" ..
|
"button[2.4,7.6;0.8,0.8;book_prev;<]" ..
|
||||||
"label[5.35,0.3;Page " .. page .. " of " .. page_max .. "]"..
|
"label[3.2,7.7;Page " .. page .. " of " .. page_max .. "]"..
|
||||||
"button[7,0.2;0.8,0.8;book_next;>]"
|
"button[4.9,7.6;0.8,0.8;book_next;>]"
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.show_formspec(player_name, "default:book", formspec)
|
minetest.show_formspec(player_name, "default:book", formspec)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user