Page 1 of 2

[Mod] Inventory Plus [inventory_plus] additional formspec buttons

Posted: Mon Sep 17, 2012 09:41
by cornernote
Inventory Plus for Minetest

Allows additional formspec buttons to be added to the player inventory.

Documentation | GitHub Project

Image

About

This module is open source, so it's distributed freely. If you find it useful then I ask not for your wealth, but simply to spare your time to consider the world we share by watching Earthlings, a multi-award winning film available to watch online for free. A must-see for anyone who wishes to make the world a better place.

License

BSD-3-Clause, Copyright © 2014 Brett O'Donnell

Posted: Tue Sep 18, 2012 12:12
by creeper96
Hay maybe you could try adding camo to your Armors it would be EPIC you can use dye or make a paint mod to colour it in

Posted: Tue Sep 18, 2012 23:47
by cornernote
from NekoGloop in IRC:
thought of adding a trash can spot to the inventory?
this formspec has a field of slots and a button
when pressed, the button trashes the items

Posted: Wed Sep 19, 2012 00:51
by cornernote
Talking to <T_A_N_K> and <GloopMaster> in IRC.

T_A_N_K suggested a trading API, no need to have a formspec when you click a player.
GloopMaster suggested applying the trading API as an inventory_plus mod

so it would be something like this:

in inventory_plus, a new button "Trading"

Trading Overview

button[Request New Trade]

label[My Trade Requests]
for each outgoing trade request show a button with the other players name, button goes to player trade page

label[Incoming Trade Requests]
for each incoming trade request show a button with the other players name, button goes to player trade page


New Trade - done by trader

inventory[give, 3x3] <-- can drag items to here
inventory[player inventory]
input[player_name]
input[message] <-- message is sent to other player
input[price] <-- for support of a currency type mod
button[request] <-- sends the request to the other player



Trade Request - done by tradee

label[message] <-- message from trader
input[message] <-- message is sent to trader
inventory[get, 3x3] <-- this is locked
inventory[give, 3x3] <-- can drag items to here
inventory[player inventory]
button[request]
button[reject]


Trade Confirm - done by trader

label[message] <-- message from tradee
input[message] <-- message is sent to tradee
inventory[get, 3x3] <-- this is locked
inventory[give, 3x3] <-- can drag items to here, onchange cannot confirm
inventory[player inventory]
button[request] <-- can only do this if player changes "give", if this happens then the tradee will see this screen
button[confirm]
button[reject]

Posted: Wed Sep 19, 2012 02:23
by cornernote
idea spawned from here: http://minetest.net/forum/viewtopic.php ... 463#p43463

add a slot for a craft table, start with a 2x2 (or 1x2 or 1x1) which allows you to craft the next biggest table

Posted: Wed Sep 19, 2012 07:48
by Topywo
cornernote wrote: when you click a player.
Could trade be made possible:
- Over (long) distance (Iike using an 'invisible' cargo transport)?
- On a virtual (or build by using a mod) trademarket?

You and some other modders seem to do miracles with lua the last few months.

Posted: Wed Sep 19, 2012 08:00
by cornernote
i was thinking more of an instant thing... once you accept, goods are transferred.

just had another idea... mailbox to message offline players

Posted: Mon Oct 01, 2012 03:30
by cornernote
now adds support for refill/trash (thanks @PilzAdam for code in your better vanilla game)

Posted: Mon Oct 01, 2012 09:43
by cornernote
UbuntuNerd wrote:You should Make a Node_Ownership GUI mod ;)
good idea

Posted: Tue Oct 02, 2012 11:56
by GJH105775
Great mod.+1

Posted: Tue Oct 02, 2012 12:18
by rubenwardy
craft should be selected by default, or there should be a initial_selected_tab option (in the lua code)

Posted: Tue Oct 02, 2012 13:04
by cornernote
rubenwardy wrote:craft should be selected by default, or there should be a initial_selected_tab option (in the lua code)
done, craft is default, you can change default in minetest.conf with a setting like this:

Code: Select all

inventory_default = main

Posted: Tue Oct 02, 2012 20:07
by Temperest
I don't think the inventory_default setting is documented in the README. Otherwise, looking good. I love the refill and trash fields, especially.

Posted: Fri Oct 05, 2012 09:32
by MirceaKitsune
Looks like a really amazing mod from the screenshots... I should check it out soon. Hope this + the workbench might become part of MineTest, it looks even nicer than MineCraft's inventory system at a first look :)

Posted: Wed Nov 21, 2012 19:24
by lolypop
lol 1+

Posted: Sun Dec 02, 2012 22:10
by davidpace
Could you add a search bar? Maybe I'm just nuts, but it would really help me with my 22 pages of items :)

Posted: Mon Dec 03, 2012 07:53
by kaeza
davidpace wrote:Could you add a search bar? Maybe I'm just nuts, but it would really help me with my 22 pages of items :)
You may want to take a look at this. It's for latest 0.4.4 though, so update your client.

Posted: Mon Dec 24, 2012 00:45
by luk3yx
This is an excellent mod and an excellent idea! I think all mods similar to this should also provide a library for third-party mods.

Posted: Wed Mar 20, 2013 14:28
by Traxie21
I believe 0gb.us is maintaining a more updated version of this

Posted: Thu Mar 28, 2013 16:36
by sfan5-bot
[EE] No Dependencies found


Please fix these Mistakes and report this post, a moderator will delete it
If you believe I have made a Mistake contact sfan5

Posted: Mon Mar 24, 2014 21:58
by CheerfulCherub
Thanks for this lovely mod, it works and I am so happy I can play as a girl now, since I am one lol.

Re: [Mod] Inventory Plus [inventory_plus] additional formspe

Posted: Thu Aug 06, 2015 06:22
by amadin
Do you can add an option to set background and buttons color? When you press i, the inventory that pops up is called a "formspec" in the modding api. But i don't know how to add color option in mod but i find example of this https://github.com/minetest-technic/uni ... ternal.lua

Re: [Mod] Inventory Plus [inventory_plus] additional formspe

Posted: Wed Mar 23, 2016 16:35
by TenPlus1
Update:

- Changes to formspec added, creative screen looks better
- Added trashcan to crafting screen
- Some error checking added

https://github.com/tenplus1/inventory_plus

Re: [Mod] Inventory Plus [inventory_plus] additional formspe

Posted: Thu Mar 24, 2016 01:25
by cornernote
Hey @TenPlus1, any chance you can do a PR with those changes? That would be awesome!

Re: [Mod] Inventory Plus [inventory_plus] additional formspe

Posted: Thu Mar 24, 2016 05:18
by Napiophelios
If you use the workbench mod with this you get 2 different craft buttons;
Is there any way the mod can check if workbench is present and default to its craft grid?