Ignore:
Timestamp:
07/30/10 19:47:08 (9 years ago)
Author:
beliar
Message:

Patch by Domtron_Vox.

  • Items from the inventory can now be switched with items in containers too when dropped on top of them.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/gui/inventorygui.py

    r605 r606  
    184184           @return: None""" 
    185185        drop_widget = self.gui.findChild(name = obj) 
     186        print dir(drop_widget) 
    186187        drop_slot, drop_index = drop_widget.slot, drop_widget.index 
    187188        replace_item = None 
     
    192193                #this will get the replacement item and data for drag_drop if 
    193194                ## there is an item All ready occupying the slot 
     195                print drag_item 
    194196                if not inventory.isSlotEmpty(drop_slot, drop_index): 
    195197                    #get the item and then remove it from the inventory 
     
    197199                                                (drop_slot, drop_index) 
    198200                    self.dragObject(obj) 
    199                      
     201                print drag_item     
    200202                self.inventory_storage.moveItemToSlot(drag_item, 
    201203                                                      drop_slot, 
Note: See TracChangeset for help on using the changeset viewer.