Exemple #1
0
 def sellItem(self, itemId):
     dataCompactId = int(itemId)
     typeID = self._itemsCache.items.getItemByCD(dataCompactId).itemTypeID if dataCompactId else UNDEFINED_ITEM_CD
     if typeID == GUI_ITEM_TYPE.BATTLE_BOOSTER:
         showBattleBoosterSellDialog(dataCompactId)
     else:
         yield DialogsInterface.showDialog(SellModuleMeta(dataCompactId))
Exemple #2
0
 def __sellItem(self, itemTypeCompactDescr):
     isOk, args = yield DialogsInterface.showDialog(
         SellModuleMeta(itemTypeCompactDescr))
     LOG_DEBUG('Sell module confirm dialog results', isOk, args)
 def sell(self):
     yield DialogsInterface.showDialog(SellModuleMeta(self._id))
Exemple #4
0
 def sellItem(self, itemId):
     yield DialogsInterface.showDialog(SellModuleMeta(int(itemId)))
Exemple #5
0
 def sellItem(self):
     yield DialogsInterface.showDialog(SellModuleMeta(int(self._intCD)))