[Done] Windowing refactoring
#4
(09-10-2012, 06:40 AM)Taugeshtu Wrote: I would also like to have two simple functions in the lua API: "TakeItemsFrom" and "GiveItemsTo"

This doesn't concern the windows at all. The windows are all about UI on the clients, while you're after something modifying the underlying data. The two functions you'd like to have would make more sense to be implemented directly in the cChestEntity class (and possibly, in cInventory).

So, to recap: cChestEntity stores the items, cUIChestArea handles the clicks (manipulates the cChestEntity's storage)
Double chest could be represented either by two singlechest areas, or it could be a single chest area with double the height and two underlying cChestEntity objects. Not sure yet which one would be better.
Reply
Thanks given by:


Messages In This Thread
[Done] Windowing refactoring - by xoft - 09-10-2012, 06:19 AM
RE: Windowing refactoring - by Taugeshtu - 09-10-2012, 06:40 AM
RE: Windowing refactoring - by xoft - 09-10-2012, 06:45 AM
RE: Windowing refactoring - by FakeTruth - 09-10-2012, 06:41 AM
RE: Windowing refactoring - by Taugeshtu - 09-10-2012, 06:57 AM
RE: Windowing refactoring - by xoft - 09-14-2012, 04:14 AM
RE: Windowing refactoring - by NiLSPACE - 09-17-2012, 04:49 AM
RE: Windowing refactoring - by xoft - 09-17-2012, 04:52 AM
RE: Windowing refactoring - by NiLSPACE - 09-17-2012, 05:00 AM
RE: Windowing refactoring - by xoft - 09-17-2012, 05:14 AM
RE: Windowing refactoring - by xoft - 09-20-2012, 10:21 PM
RE: Windowing refactoring - by xoft - 09-21-2012, 06:03 AM
RE: Windowing refactoring - by xoft - 09-22-2012, 06:57 AM
RE: [Done] Windowing refactoring - by NiLSPACE - 09-22-2012, 07:07 AM
RE: [Done] Windowing refactoring - by xoft - 09-22-2012, 07:11 AM
RE: [Done] Windowing refactoring - by NiLSPACE - 09-22-2012, 07:19 AM
RE: [Done] Windowing refactoring - by xoft - 09-22-2012, 07:35 AM



Users browsing this thread: 1 Guest(s)