Beispiel #1
0
    def DeattachObject(self):

        self.ClearCallBack()
        self.LastAttachedSlotNumber = self.AttachedSlotNumber

        if self.AttachedIconHandle != 0:

            if self.AttachedType == player.SLOT_TYPE_INVENTORY or\
             self.AttachedType == player.SLOT_TYPE_PRIVATE_SHOP or\
             self.AttachedType == player.SLOT_TYPE_SHOP or\
             self.AttachedType == player.SLOT_TYPE_SAFEBOX or\
             self.AttachedType == player.SLOT_TYPE_MALL:

                item.DeleteIconInstance(self.AttachedIconHandle)

            elif self.AttachedType == player.SLOT_TYPE_SKILL:
                skill.DeleteIconInstance(self.AttachedIconHandle)

            elif self.AttachedType == player.SLOT_TYPE_EMOTION:
                grpImage.Delete(self.AttachedIconHandle)

        self.AttachedFlag = False
        self.AttachedType = -1
        self.AttachedItemIndex = -1
        self.AttachedSlotNumber = -1
        self.AttachedIconHandle = 0
        wndMgr.SetAttachingFlag(False)

        if self.countNumberLine:
            self.countNumberLine.Hide()
Beispiel #2
0
 def DeleteImage(self):
     if self.handle:
         grpImage.Delete(self.handle)
Beispiel #3
0
 def __del__(self):
     grpImage.Delete(self.handle)