Commit Graph

12 Commits (fac684a9738fe006a0ec129795b4e559de4e689c)

Author SHA1 Message Date
Sven Eberhardt 71b96bc5de Fix nil pointer access when recovering from over-full inventory 2016-01-14 22:30:55 -05:00
Sven Eberhardt 7208a3c299 Ignore CarryHeavy for collection limit #1587
It was always ignored when picking up the CarryHeavy, but not when collecting another item. Now CarryHeavy consistently gives an extra item slot.
2016-01-10 21:52:44 -05:00
Sven Eberhardt 05b6ee2407 Remove unused library dummy graphics. 2016-01-10 11:59:55 -05:00
Sven Eberhardt 0f2057032f Retain inventory slot order on respawn #1543 2016-01-10 11:10:45 -05:00
Sven Eberhardt 3dad1c6d81 Turn MaxContentsCount and HandObjects into properties instead of callbacks (Possibly fixes #1553) 2016-01-10 10:41:34 -05:00
David Dormagen b35b1ae022 inventory: allow dropping multiple objects in one frame (f.e. through E->[move all to surrounding]) 2015-09-22 18:28:43 +02:00
David Dormagen e9a69c4252 collect objects solely via CTRL now
The player can also choose which object to collect by holding CTRL and navigating left/right.
2015-08-30 20:39:50 +02:00
David Dormagen 7d1d70f017 removed NoCollectDelay from engine; it's now handled by script
Which allows a lot more fine-grained controls as all the control and UI stuff is now also in script anyway.
2015-03-26 12:23:20 +01:00
David Dormagen 8a3c965e3e default to allow collection of objects into non-hand slots if Collect() is called by a script (#959) 2014-12-25 18:40:10 +01:00
David Dormagen 6d3c42b5b1 added callbacks QueryRejectDeselection and QueryRejectDeparture
removed internal variable Clonk.inventory.forced_ejection (hand never selects next item when throwing now)
2014-02-15 14:32:53 +01:00
David Dormagen 299cc7e478 when not able to execute an Use-command (f.e. shield when not walking), the command is remembered and executed when possible 2012-12-29 18:42:19 +01:00
David Dormagen d7eb93be1b split ClonkControl.ocd into five libraries
Library_Inventory: handles slots and an arbitrary amount of hands, generic and not only Clonk-related
Library_InventoryControl: interactions between the user and the inventory
Library_CarryHeavyControl: interaction with carry-heavy-objects
Library_ClonkGamepadControl: gamepad-related stuff
Library_ClonkControl: general Clonk control library
2012-12-25 12:19:23 +01:00