Correctly place factions_ui 'Create' button

master
Solebull 2020-01-27 13:39:56 +01:00
parent 5fa98b20fe
commit ca770d9607
3 changed files with 5 additions and 4 deletions

View File

@ -289,10 +289,10 @@ It's really fast. May be used on a website, to show the actual map.
...etest/games/minetest-pvp/mods/redtrees/sakuragi/init.lua
- [X] Just add a create button with a name textedit
xpro/sfinv.lua calls a register_page function
- [X] Must correctly place 'Créer' button
- [-] Handle new faction button event
- [X] Must get the faction name from lineedit
- [ ] Finally create the faction
- [ ] Must correctly place 'Créer' button
**** DONE Trying to install mintest on the raspberry
CLOCK: [2019-06-25 mar. 23:07]--[2019-06-25 mar. 23:53] => 0:46
CLOCK: [2019-06-25 mar. 04:10]--[2019-06-25 mar. 06:15] => 2:05

3
TODO
View File

@ -11,7 +11,8 @@ minetest-solebull - LGPL-2.1 - A PVP/faction game for minetest based on Cobalt.
* v0.0.2-7 (10 Aug. 2019 - ???) CLOC ???,???
- (5) Got faction name in button event
- (6) Correctly place factions_ui 'Create' button
- Got faction name in button event
- Add new faction elements to factions_ui
- Should fix the faction players number
- Manually set faction leader name to fix for factions_ui

View File

@ -49,9 +49,9 @@ get_factions_ui = function(faction_id)
label[0,0.5;Puissance :] label[2,0.5;]]..power..[[]
label[0,0.75;Membres :] label[2,0.75;]]..members..[[]
label[0,1;Invite-only :] label[2,1;]]..iotext..[[]
textlist[0,2;7,4;faclist;]]..facnames..[[]
textlist[0,2;7,6;faclist;]]..facnames..[[]
field[5,1;2,1;name;Nouvelle faction :;newFaction]
button[5,3;2,1;create;Créer]
button[5,8;2,1;create;Créer]
]]
return formspec
end