Mercurial > parpg-source
comparison systems/container.py @ 18:702ee8e475df
Backed out changeset: bd1e3b743518
author | KarstenBock@gmx.net |
---|---|
date | Wed, 10 Aug 2011 21:07:06 +0200 |
parents | 5c587a0d9ad7 |
children |
comparison
equal
deleted
inserted
replaced
17:7b31de1dc964 | 18:702ee8e475df |
---|---|
46 if new_slot >= 0: | 46 if new_slot >= 0: |
47 new_container.children.insert(new_slot + 1, containable) | 47 new_container.children.insert(new_slot + 1, containable) |
48 containable.current_container = new_container | 48 containable.current_container = new_container |
49 old_containable = new_container.children.pop(new_slot) | 49 old_containable = new_container.children.pop(new_slot) |
50 old_containable.current_container = drag_container | 50 old_containable.current_container = drag_container |
51 drag_container.children.append(old_containable) | 51 drag_container.children = [old_containable] |
52 else: | |
53 new_container.append(containable) | |
54 containable.current_container = new_container | |
55 else: | 52 else: |
56 for listener in self.on_bulk_to_big: | 53 for listener in self.on_bulk_to_big: |
57 listener(bulk, new_container.max_bulk) | 54 listener(bulk, new_container.max_bulk) |
58 | 55 |
59 | 56 |