1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-17 15:45:22 +01:00

update unified_inventory, remove old textures

This commit is contained in:
2015-10-13 02:51:26 +02:00
parent 78c5f0cc09
commit 13974157c2
39 changed files with 509 additions and 297 deletions

View File

@@ -16,6 +16,11 @@ local waypoints_temp = {}
unified_inventory.register_page("waypoints", {
get_formspec = function(player)
local player_name = player:get_player_name()
-- build a "fake" temp entry if the server took too long
-- during sign-on and returned an empty entry
if not waypoints_temp[player_name] then waypoints_temp[player_name] = {hud = 1} end
local waypoints = datastorage.get(player_name, "waypoints")
local formspec = "background[0,4.5;8,4;ui_main_inventory.png]" ..
"image[0,0;1,1;ui_waypoints_icon.png]" ..
@@ -107,6 +112,7 @@ unified_inventory.register_button("waypoints", {
type = "image",
image = "ui_waypoints_icon.png",
tooltip = S("Waypoints"),
hide_lite=true,
show_with = false, --Modif MFF (Crabman 30/06/2015)
})