Correctly close the Welcome Popup

master
Solebull 2018-12-16 22:32:25 +01:00
parent badb7d32a4
commit 5887fbccfa
3 changed files with 10 additions and 8 deletions

View File

@ -161,12 +161,13 @@ with exaltion
[mg_villages] ERROR: Did not find a suitable replacement for cottages:hatch_steel (suggested but inexistant: cottages:hatch_steel). Building: chateau_without_garden.
[mg_villages] ERROR: Did not find a suitable replacement for cottages:barrel_lying (suggested but inexistant: cottages:barrel_lying). Building: chateau_without_garden.
[mg_villages] ERROR: Did not find a suitable replacement for cottages:barrel (suggested but inexistant: cottages:barrel). Building: chateau_without_garden.
**** TODO [feature_WelcomePopup] Add a simple welcome message
- [-] Find a way to print a server popup
**** DONE [feature_WelcomePopup] Add a simple welcome message
CLOCK: [2018-12-16 dim. 22:06]--[2018-12-16 dim. 22:31] => 0:25
- [X] Find a way to print a server popup
It seems we have to show a formspec
Started in welcome_popup/
- [X] FIXED, we need a first size[] command
- [ ] Continue with more text and maybe a button
- [X] Continue with more text and maybe a button
**** DONE [NPC_village] Testing a NPC village mod
CLOCK: [2018-12-14 ven. 16:10]--[2018-12-14 ven. 16:27] => 0:17

3
TODO
View File

@ -9,7 +9,8 @@ minetest-solebull - ??? - A PVP/faction game for minetest based on Cobalt.
(8 items by revision)
* v0.0.1-2 (13 Dec. 2018 - ???)
- (6) Add a basic welcome popup
- (7) Correctly close the Welcome Popup
- Add a basic welcome popup
- Add two references on Séréna
- Fix a saving issue with factions mod
- Add the factions mod and its sdependency

View File

@ -2,14 +2,14 @@
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
local welcome_formspec = "size[10,6.2]"..
"label[1.0,1.0;Bienvenue "..name..
local welcome_formspec = "size[8,5.2]"..
"label[1.0,0.3;Bienvenue "..name..
" sur le serveur PVP/Faction de Solebull !\n\n"..
"Ce serveur et cette map ne servent pour le moment qu'a des fins\n"..
"de test et de développement. \n\n"..
"La configuration peut changer a tou moement et la map peut être\n"..
"La configuration peut changer a tout moment et la map peut être\n"..
"réinitialisée au prochain stream. \n\nMerci et bon jeu!]"..
"button[3.0,5.0;4.0,0.2;OK;OK]"
"button_exit[3.0,4.5;2,1;exit;OK]"
minetest.show_formspec(name, "default:welcome_popup", welcome_formspec)
end)