06-01-2013, 01:29 AM
Is the OnSlotChanged callback also able to block the slot change?
LuaWindow class
|
06-01-2013, 01:29 AM
Is the OnSlotChanged callback also able to block the slot change?
06-01-2013, 03:34 AM
it's an "-ed" event, so no. Blocking a change would be quite difficult to implement; it's much easier to do it in the plugin
Thanks given by: NiLSPACE
06-01-2013, 03:58 AM
I can't believe it ;D my pattern password is actualy working
06-01-2013, 06:20 PM
Now that you know how to use them, it would be great if you could document the new classes in the wiki
Note: cLuaWindow actually inherits some of its methods from the generic cWindow class
06-02-2013, 12:28 AM
I've found a bug: If you drop an item from a cLuaWindow, the OnPlayerTossingItem hook doesn't get called.
06-02-2013, 12:43 AM
Does the hook get called if you drop it from a normal window?
06-02-2013, 12:46 AM
hmm no it doesn't. ;O
06-02-2013, 02:31 AM
That hook only gets called for when the client sends the Q keypress packet.
06-02-2013, 02:34 AM
"Drop" key For me dropping stuff is "C" ;D
Is there a way to block a player throwing some stuff out of the inventory?
06-02-2013, 07:13 AM
No, not yet.
I could make an interface so that plugins can monitor window click actions, but their interpretation is really twisted and would be difficult to set callbacks for. |
« Next Oldest | Next Newest »
|