Drachenseelensystem entfernen: DS-Code aus gemeinsam genutzten UI-Dateien
Entfernt alle Drachenseelen-Referenzen aus interfacemodule.py (groesste Baustelle: Import, Instanziierung beider Fenster, alle dedizierten DragonSoul*-Methoden, Show/Hide/Destroy-Verkabelung), game.py (Hotkey O, alle BINARY_DragonSoul*-Handler inkl. BINARY_Highlight_Item, DS-Zweige in den Affect- und Drag&Drop-Pfaden), sowie kleinere DS-Zweige in uiinventory.py (DSSButton, Refine-Fenster-Kopplung), uiaffectshower.py (Buff-Icons), uiexchange.py, uiprivateshopbuilder.py, uishop.py, uitaskbar.py (Taskbar-Button), uitooltip.py (komplette __DragonSoulInfoString-Methode), mousemodule.py und ui.py.
This commit is contained in:
+2
-56
@@ -368,7 +368,6 @@ class GameWindow(ui.ScriptWindow):
|
||||
#onPressKeyDict[app.DIK_B] = lambda state = "EMOTICON": self.interface.ToggleCharacterWindow(state)
|
||||
onPressKeyDict[app.DIK_N] = lambda state = "QUEST": self.interface.ToggleCharacterWindow(state)
|
||||
onPressKeyDict[app.DIK_I] = lambda : self.interface.ToggleInventoryWindow()
|
||||
onPressKeyDict[app.DIK_O] = lambda : self.interface.ToggleDragonSoulWindowWithNoInfo()
|
||||
onPressKeyDict[app.DIK_M] = lambda : self.interface.PressMKey()
|
||||
#onPressKeyDict[app.DIK_H] = lambda : self.interface.OpenHelpWindow()
|
||||
onPressKeyDict[app.DIK_ADD] = lambda : self.interface.MiniMapScaleUp()
|
||||
@@ -751,15 +750,9 @@ class GameWindow(ui.ScriptWindow):
|
||||
# UNKNOWN_UPDATE
|
||||
def BINARY_NEW_AddAffect(self, type, pointIdx, value, duration):
|
||||
self.affectShower.BINARY_NEW_AddAffect(type, pointIdx, value, duration)
|
||||
if chr.NEW_AFFECT_DRAGON_SOUL_DECK1 == type or chr.NEW_AFFECT_DRAGON_SOUL_DECK2 == type:
|
||||
self.interface.DragonSoulActivate(type - chr.NEW_AFFECT_DRAGON_SOUL_DECK1)
|
||||
elif chr.NEW_AFFECT_DRAGON_SOUL_QUALIFIED == type:
|
||||
self.BINARY_DragonSoulGiveQuilification()
|
||||
|
||||
def BINARY_NEW_RemoveAffect(self, type, pointIdx):
|
||||
self.affectShower.BINARY_NEW_RemoveAffect(type, pointIdx)
|
||||
if chr.NEW_AFFECT_DRAGON_SOUL_DECK1 == type or chr.NEW_AFFECT_DRAGON_SOUL_DECK2 == type:
|
||||
self.interface.DragonSoulDeactivate()
|
||||
|
||||
|
||||
|
||||
@@ -1264,10 +1257,6 @@ class GameWindow(ui.ScriptWindow):
|
||||
else:
|
||||
self.__PutItem(attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, self.PickingCharacterIndex)
|
||||
|
||||
## DragonSoul
|
||||
elif player.SLOT_TYPE_DRAGON_SOUL_INVENTORY == attachedType:
|
||||
self.__PutItem(attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, self.PickingCharacterIndex)
|
||||
|
||||
mouseModule.mouseController.DeattachObject()
|
||||
|
||||
else:
|
||||
@@ -1286,10 +1275,10 @@ class GameWindow(ui.ScriptWindow):
|
||||
return True
|
||||
|
||||
def __PutItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, dstChrID):
|
||||
if player.SLOT_TYPE_INVENTORY == attachedType or player.SLOT_TYPE_DRAGON_SOUL_INVENTORY == attachedType:
|
||||
if player.SLOT_TYPE_INVENTORY == attachedType:
|
||||
attachedInvenType = player.SlotTypeToInvenType(attachedType)
|
||||
if True == chr.HasInstance(self.PickingCharacterIndex) and player.GetMainCharacterIndex() != dstChrID:
|
||||
if player.IsEquipmentSlot(attachedItemSlotPos) and player.SLOT_TYPE_DRAGON_SOUL_INVENTORY != attachedType:
|
||||
if player.IsEquipmentSlot(attachedItemSlotPos):
|
||||
self.stream.popupWindow.Close()
|
||||
self.stream.popupWindow.Open(localeInfo.EXCHANGE_FAILURE_EQUIP_ITEM, 0, localeInfo.UI_OK)
|
||||
else:
|
||||
@@ -1362,27 +1351,6 @@ class GameWindow(ui.ScriptWindow):
|
||||
itemDropQuestionDialog.dropCount = attachedItemCount
|
||||
self.itemDropQuestionDialog = itemDropQuestionDialog
|
||||
|
||||
constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(1)
|
||||
elif player.SLOT_TYPE_DRAGON_SOUL_INVENTORY == attachedType:
|
||||
dropItemIndex = player.GetItemIndex(player.DRAGON_SOUL_INVENTORY, attachedItemSlotPos)
|
||||
|
||||
item.SelectItem(dropItemIndex)
|
||||
dropItemName = item.GetItemName()
|
||||
|
||||
## Question Text
|
||||
questionText = localeInfo.HOW_MANY_ITEM_DO_YOU_DROP(dropItemName, attachedItemCount)
|
||||
|
||||
## Dialog
|
||||
itemDropQuestionDialog = uiCommon.QuestionDialog()
|
||||
itemDropQuestionDialog.SetText(questionText)
|
||||
itemDropQuestionDialog.SetAcceptEvent(lambda arg=True: self.RequestDropItem(arg))
|
||||
itemDropQuestionDialog.SetCancelEvent(lambda arg=False: self.RequestDropItem(arg))
|
||||
itemDropQuestionDialog.Open()
|
||||
itemDropQuestionDialog.dropType = attachedType
|
||||
itemDropQuestionDialog.dropNumber = attachedItemSlotPos
|
||||
itemDropQuestionDialog.dropCount = attachedItemCount
|
||||
self.itemDropQuestionDialog = itemDropQuestionDialog
|
||||
|
||||
constInfo.SET_ITEM_QUESTION_DIALOG_STATUS(1)
|
||||
|
||||
def RequestDropItem(self, answer):
|
||||
@@ -1402,10 +1370,6 @@ class GameWindow(ui.ScriptWindow):
|
||||
# PRIVATESHOP_DISABLE_ITEM_DROP
|
||||
self.__SendDropItemPacket(dropNumber, dropCount)
|
||||
# END_OF_PRIVATESHOP_DISABLE_ITEM_DROP
|
||||
elif player.SLOT_TYPE_DRAGON_SOUL_INVENTORY == dropType:
|
||||
# PRIVATESHOP_DISABLE_ITEM_DROP
|
||||
self.__SendDropItemPacket(dropNumber, dropCount, player.DRAGON_SOUL_INVENTORY)
|
||||
# END_OF_PRIVATESHOP_DISABLE_ITEM_DROP
|
||||
|
||||
self.itemDropQuestionDialog.Close()
|
||||
self.itemDropQuestionDialog = None
|
||||
@@ -1742,24 +1706,6 @@ class GameWindow(ui.ScriptWindow):
|
||||
|
||||
# END_OF_CUBE
|
||||
|
||||
# 용혼석
|
||||
def BINARY_Highlight_Item(self, inven_type, inven_pos):
|
||||
self.interface.Highligt_Item(inven_type, inven_pos)
|
||||
|
||||
def BINARY_DragonSoulGiveQuilification(self):
|
||||
self.interface.DragonSoulGiveQuilification()
|
||||
|
||||
def BINARY_DragonSoulRefineWindow_Open(self):
|
||||
self.interface.OpenDragonSoulRefineWindow()
|
||||
|
||||
def BINARY_DragonSoulRefineWindow_RefineFail(self, reason, inven_type, inven_pos):
|
||||
self.interface.FailDragonSoulRefine(reason, inven_type, inven_pos)
|
||||
|
||||
def BINARY_DragonSoulRefineWindow_RefineSucceed(self, inven_type, inven_pos):
|
||||
self.interface.SucceedDragonSoulRefine(inven_type, inven_pos)
|
||||
|
||||
# END of DRAGON SOUL REFINE WINDOW
|
||||
|
||||
def BINARY_SetBigMessage(self, message):
|
||||
self.interface.bigBoard.SetTip(message)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user