Fix typo in API.md

This commit is contained in:
Wuzzy 2023-04-20 17:06:12 +02:00
parent e6b30c8761
commit 777448dddf

2
API.md
View File

@ -13,7 +13,7 @@ one function: `sfinv_buttons.register_button`.
* `action(player)`: Function is called when button is triggered
* `player`: The `ObjectRef` of the player who triggered the button
* Default behaviour: Nothing happens
* `tooltip: A tooltip for the button (optional, only use it for an additional,
* `tooltip`: A tooltip for the button (optional, only use it for an additional,
non-critical explanation)
* `image`: Texture name for the image to show left of the button (optional)
* `show(player)`: Shall return `true` if the button should be displayed (optional)