mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Add new hotbar_slot_selected lua callback
This commit is contained in:
parent
1f9a3b5875
commit
7425126f6b
8 changed files with 169 additions and 2 deletions
|
@ -38,6 +38,14 @@ public:
|
|||
void on_playerReceiveFields(ServerActiveObject *player,
|
||||
const std::string &formname, const StringMap &fields);
|
||||
void on_authplayer(const std::string &name, const std::string &ip, bool is_success);
|
||||
void on_hotbar_slot_selected(
|
||||
ServerActiveObject* player,
|
||||
InventoryLocation& loc,
|
||||
const std::string& list,
|
||||
int hotbar_slot,
|
||||
int prev_hotbar_slot,
|
||||
bool is_from_scroll
|
||||
);
|
||||
|
||||
// Player inventory callbacks
|
||||
// Return number of accepted items to be moved
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue