mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
Fixing beginners_chest and inproving formspecs
- Fixing an error in beginners_chest - Improving menu's formspecs for irc and rules, copied from news.
This commit is contained in:
parent
c2a3d29e9e
commit
e5e9c74392
@ -47,11 +47,11 @@ Autres regles de bienseances :
|
||||
]]
|
||||
|
||||
local function make_formspec()
|
||||
local size = { "size[10,8]" }
|
||||
table.insert(size, "background[-1.5,-1.5;13,11;background.jpg]")
|
||||
table.insert(size, "textarea[0.5,0.5;9.5,8;TOS;Voici les regles, cliquez sur Accepter si vous etes d'accord avec;"..minetest.formspec_escape(IRC).."]")
|
||||
table.insert(size, "button_exit[6,7.4;1.5,0.5;accept;J'accepte]")
|
||||
table.insert(size, "button[7.5,7.4;1.5,0.5;decline;Je refuse]")
|
||||
local size = { "size[12,10;]" }
|
||||
table.insert(size, "background[-0.22,-0.25;13,11;background.jpg]")
|
||||
table.insert(size, "textarea[.50,1;12,10;TOS;Voici les regles, cliquez sur Accepter si vous etes d'accord avec;"..minetest.formspec_escape(IRC).."]")
|
||||
table.insert(size, "button_exit[6,9.9;1.5,0.5;accept;J'accepte]")
|
||||
table.insert(size, "button[7.5,9.9;1.5,0.5;decline;Je refuse]")
|
||||
return table.concat(size)
|
||||
end
|
||||
|
||||
|
@ -16,11 +16,11 @@ Cliquez sur le bouton "Accepter" pour pouvoir construire et interagir sur le ser
|
||||
]]
|
||||
|
||||
local function make_formspec()
|
||||
local size = { "size[10,8]" }
|
||||
table.insert(size, "background[-1.5,-1.5;13,11;background.jpg]")
|
||||
table.insert(size, "textarea[0.5,0.5;9.5,8;TOS;Voici les regles, cliquez sur Accepter si vous etes d'accord avec;"..RULES.."]")
|
||||
table.insert(size, "button_exit[6,7.4;1.5,0.5;accept;J'accepte]")
|
||||
table.insert(size, "button[7.5,7.4;1.5,0.5;decline;Je refuse]")
|
||||
local size = { "size[12,10;]" }
|
||||
table.insert(size, "background[-0.22,-0.25;13,11;background.jpg]")
|
||||
table.insert(size, "textarea[.50,1;12,10;TOS;Voici les regles, cliquez sur Accepter si vous etes d'accord avec;"..RULES.."]")
|
||||
table.insert(size, "button_exit[6,9.9;1.5,0.5;accept;J'accepte]")
|
||||
table.insert(size, "button[7.5,9.9;1.5,0.5;decline;Je refuse]")
|
||||
return table.concat(size)
|
||||
end
|
||||
|
||||
|
@ -19,7 +19,7 @@ chests = {
|
||||
[3] = "default:sword_stone",
|
||||
[32] = ""
|
||||
}
|
||||
}
|
||||
},
|
||||
[2] = {
|
||||
position = {x = 34, y = 20, z = 101},
|
||||
interval_max = 7200,
|
||||
|
@ -26,7 +26,7 @@ minetest.register_globalstep(function(dtime)
|
||||
local player = minetest.get_player_by_name(playerName)
|
||||
if player ~= nil then
|
||||
--Check if they are moving or not
|
||||
players[playerName]["moving"] = player:get_player_control()["up"]
|
||||
players[playerName]["moving"] = player:get_player_control()["sneak"]
|
||||
-- s'arrete si le joueur fait un clique gauche ou droit
|
||||
if player:get_player_control()["RMB"] or player:get_player_control()["LMB"] and STOP_ON_CLICK == true then
|
||||
players[playerName]["state"] = 0
|
||||
|
Loading…
Reference in New Issue
Block a user