修改OPERTOR_GIVEUP的元素

This commit is contained in:
Elaina 2024-10-19 23:55:47 +08:00
parent f73c7edb0f
commit 79cff7e1da
4 changed files with 7 additions and 2 deletions

BIN
mower/resources/fight/give_up.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -158,6 +158,8 @@ class Recognizer:
"choose_agent/support_agent" "choose_agent/support_agent"
): ):
self.scene = Scene.OPERATOR_SUPPORT self.scene = Scene.OPERATOR_SUPPORT
elif self.find("fight/give_up"):
self.scene = Scene.OPERATOR_GIVEUP
elif self.find("fight/collection") or self.find("fight/collection_on"): elif self.find("fight/collection") or self.find("fight/collection_on"):
self.scene = Scene.OPERATOR_AGENT_SELECT self.scene = Scene.OPERATOR_AGENT_SELECT
elif self.find("choose_agent/fast_select"): elif self.find("choose_agent/fast_select"):
@ -227,8 +229,6 @@ class Recognizer:
self.scene = Scene.EXIT_GAME self.scene = Scene.EXIT_GAME
elif self.find("double_confirm/friend"): elif self.find("double_confirm/friend"):
self.scene = Scene.BACK_TO_FRIEND_LIST self.scene = Scene.BACK_TO_FRIEND_LIST
elif self.find("double_confirm/give_up"):
self.scene = Scene.OPERATOR_GIVEUP
elif self.find("double_confirm/infrastructure"): elif self.find("double_confirm/infrastructure"):
self.scene = Scene.LEAVE_INFRASTRUCTURE self.scene = Scene.LEAVE_INFRASTRUCTURE
elif self.find("double_confirm/recruit"): elif self.find("double_confirm/recruit"):

View file

@ -32,6 +32,7 @@ color = {
"factory_collect": (1542, 886), "factory_collect": (1542, 886),
"fight/collection": (1088, 25), "fight/collection": (1088, 25),
"fight/collection_on": (1084, 22), "fight/collection_on": (1084, 22),
"fight/give_up": (1352, 838),
"fight/refresh": (1639, 22), "fight/refresh": (1639, 22),
"hypergryph": (0, 961), "hypergryph": (0, 961),
"infra_overview": (54, 135), "infra_overview": (54, 135),

View file

@ -166,6 +166,7 @@ Res = Literal[
"fight/enemy", "fight/enemy",
"fight/failed_text", "fight/failed_text",
"fight/gear", "fight/gear",
"fight/give_up",
"fight/kills_separator", "fight/kills_separator",
"fight/light", "fight/light",
"fight/pause", "fight/pause",