diff options
author | orwell96 <orwell@bleipb.de> | 2018-12-10 22:41:02 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-12-10 22:54:23 +0100 |
commit | 144e1fc4e01741f8cdd5a579ae84cde85c420d78 (patch) | |
tree | 957d7b9060c6c1cdb3b5187cdba73059fe16af4c /advtrains/api_doc.txt | |
parent | 7a970dd4fab46461ee6dc43064b7972bac6304ea (diff) | |
download | advtrains-144e1fc4e01741f8cdd5a579ae84cde85c420d78.tar.gz advtrains-144e1fc4e01741f8cdd5a579ae84cde85c420d78.tar.bz2 advtrains-144e1fc4e01741f8cdd5a579ae84cde85c420d78.zip |
Change get_inventory_formspec API - add invname parameter
Diffstat (limited to 'advtrains/api_doc.txt')
-rw-r--r-- | advtrains/api_doc.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/api_doc.txt b/advtrains/api_doc.txt index d16a611..4413dce 100644 --- a/advtrains/api_doc.txt +++ b/advtrains/api_doc.txt @@ -98,11 +98,11 @@ advtrains.register_wagon(name, prototype, description, inventory_image) }, ^- List of assignments of type list_name=size. ^- For every entry, an inventory list is created with the specified size. - get_inventory_formspec = function(self, player_name) + get_inventory_formspec = function(self, player_name, inventory_name) return "<a formspec>" end, ^- Function that should return the formspec to be displayed when <player> requests to open the wagon's inventory - ^- Use "list[detached:advtrains_wgn_"..self.id..";<list_name>;<X>,<Y>;<W>,<H>;<Start>]" to display a wagon's inventory list. + ^- Use "list["..inventory_name..";<list_name>;<X>,<Y>;<W>,<H>;<Start>]" to display a wagon's inventory list. custom_on_step = function(self, dtime) end ^- optional: Execute custom code on every step |