def Close(self): self.OnCloseQuestionDialog() shop.Close() net.SendShopEndPacket() self.CancelShopping() self.tooltipItem.HideToolTip() self.Hide()
def Close(self): if self.itemBuyQuestionDialog: self.itemBuyQuestionDialog.Close() self.itemBuyQuestionDialog = None constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(0) if self.questionDialog: self.OnCloseQuestionDialog() shop.Close() net.SendShopEndPacket() self.CancelShopping() self.tooltipItem.HideToolTip() self.Hide()
def Close(self): if app.ENABLE_OFFLINE_SHOP: if constInfo.SHOP_MOVE_FLAG: return if self.itemBuyQuestionDialog: self.itemBuyQuestionDialog.Close() self.itemBuyQuestionDialog = None constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(0) if self.questionDialog: self.OnCloseQuestionDialog() shop.Close() net.SendShopEndPacket() self.CancelShopping() self.tooltipItem.HideToolTip() self.Hide()
def Close(self, isDestroy=False): self.interface.SetOnTopWindow(player.ON_TOP_WND_NONE) if not isDestroy: self.interface.RefreshMarkInventoryBag() if self.itemBuyQuestionDialog: self.itemBuyQuestionDialog.Close() self.itemBuyQuestionDialog = None constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(0) self.OnCloseQuestionDialog() shop.Close() net.SendShopEndPacket() self.CancelShopping() self.tooltipItem.HideToolTip() self.Hide()