Page 1 of 1

Can mods define new tabs in inventory?

PostPosted: Sun Feb 28, 2016 08:07
by benrob0329
If mods coukd define new tabs in the inventory, that would basically remove the need to have separate inventory mods for things like armor and bags.

Re: Can mods define new tabs in inventory?

PostPosted: Sun Feb 28, 2016 14:04
by rubenwardy
That's the aim of sfinv
It uses the same formspec of creative

Re: Can mods define new tabs in inventory?

PostPosted: Sun Feb 28, 2016 22:47
by benrob0329
But why force everyone to use another inventory mod, when the default already looks like its just asking for plugins?

Re: Can mods define new tabs in inventory?

PostPosted: Sun Feb 28, 2016 23:19
by rubenwardy
...
I aim to submit it as a PR to minetest_game

It is basically the default one but with an API. I need to add creative support back into it though.

Re: Can mods define new tabs in inventory?

PostPosted: Sun Feb 28, 2016 23:42
by jp
rubenwardy wrote:It uses the same formspec of creative

Nope, there's an ugly border under your tabheader. I addressed you a line-note about that (no reaction yet).

Re: Can mods define new tabs in inventory?

PostPosted: Mon Feb 29, 2016 03:43
by benrob0329
rubenwardy wrote:...
I aim to submit it as a PR to minetest_game

It is basically the default one but with an API. I need to add creative support back into it though.


Ah, ok, cool!

Re: Can mods define new tabs in inventory?

PostPosted: Mon Feb 29, 2016 08:55
by rubenwardy
jp wrote:
rubenwardy wrote:It uses the same formspec of creative

Nope, there's an ugly border under your tabheader. I addressed you a line-note about that (no reaction yet).


Thanks. Haven't got around to it yet

Re: Can mods define new tabs in inventory?

PostPosted: Mon Feb 29, 2016 09:15
by jp
... I merely pointed out a flaw and gave a trick to clean that.