Main menu header etc, kind of fixed creative inventory
This commit is contained in:
parent
7e243db34a
commit
3397f05c05
BIN
menu/background.png
Normal file
BIN
menu/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.1 KiB |
BIN
menu/header.png
Normal file
BIN
menu/header.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@ -72,8 +72,7 @@ creative_inventory.set_creative_formspec = function(player, start_i, pagenum)
|
||||
local pagemax = math.floor((creative_inventory.creative_inventory_size-1) / (6*4) + 1)
|
||||
player:set_inventory_formspec("size[13,7.5]"..
|
||||
"list[current_player;main;5,3.5;8,4;]"..
|
||||
"list[current_player;craft;7,0;3,3;]"..
|
||||
"list[current_player;craftpreview;11,1;1,1;]"..
|
||||
"image[8,0;6,3;rt_logo.png]"..
|
||||
"list[detached:creative;main;0.3,0.5;4,6;"..tostring(start_i).."]"..
|
||||
"label[2.0,6.55;"..tostring(pagenum).."/"..tostring(pagemax).."]"..
|
||||
"button[0.3,6.5;1.6,1;creative_prev;<<]"..
|
||||
@ -88,6 +87,7 @@ minetest.register_on_joinplayer(function(player)
|
||||
end
|
||||
creative_inventory.set_creative_formspec(player, 0, 1)
|
||||
end)
|
||||
|
||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
return
|
||||
|
BIN
mods/core/textures/rt_logo.png
Normal file
BIN
mods/core/textures/rt_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@ -15,16 +15,17 @@
|
||||
-- You should have received a copy of the GNU Lesser General Public
|
||||
-- License along with this program. If not, see
|
||||
-- <http://www.gnu.org/licenses/>
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
player:get_inventory():set_width("craft", 2)
|
||||
player:get_inventory():set_size("craft", 2*2)
|
||||
player:set_inventory_formspec("size[8,7.5]"
|
||||
.."list[current_player;main;0,3.5;8,4;]"
|
||||
.."list[current_player;craft;3,0.5;2,2;]"
|
||||
.."image[5,1;1,1;workbench_craftarrow.png]"
|
||||
.."list[current_player;craftpreview;6,1;1,1;]")
|
||||
end)
|
||||
if not minetest.setting_getbool("creative_mode") then
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
player:get_inventory():set_width("craft", 2)
|
||||
player:get_inventory():set_size("craft", 2*2)
|
||||
player:set_inventory_formspec("size[8,7.5]"
|
||||
.."list[current_player;main;0,3.5;8,4;]"
|
||||
.."list[current_player;craft;3,0.5;2,2;]"
|
||||
.."image[5,1;1,1;workbench_craftarrow.png]"
|
||||
.."list[current_player;craftpreview;6,1;1,1;]")
|
||||
end)
|
||||
end
|
||||
|
||||
--
|
||||
--Helper Functions
|
||||
|
Loading…
x
Reference in New Issue
Block a user