Skip to content

Commit

Permalink
little ui glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
SkywalkerJi committed Jan 25, 2022
1 parent 3f00c21 commit e77f8fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@

你可以在[Releases](https://github.com/SkywalkerJi/mdt/releases/latest)下载预打包的版本。

如果是windows7用户请使用后缀win7的版本。

## Usage
```

打开游戏后,运行mdt.exe,根据提示使用快捷键。
卡组界面和决斗界面需要 ctrl+s 切换模式。
```

| 快捷键 | 功能 |
| ------ | --------------------- |
| ctrl+s | 切换检测卡组/决斗模式 |
| ctrl+p | 暂停检测 |
| ctrl+q | 退出程序 |

## Contributing

有其他指针可以提交[issue](https://github.com/SkywalkerJi/mdt/issues/new)或PR。
Expand Down
8 changes: 4 additions & 4 deletions mdt.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_cid(type: int):
# print({"deck_cid": deck_cid})
return deck_cid
except:
print({"deck_cid not_found"})
print(f"使用卡组模式检测 deck_cid not_found 可尝试{switch_hotkey}切换模式")
return 0

while type == 2:
Expand All @@ -50,7 +50,7 @@ def get_cid(type: int):
# print({"duel_cid": duel_cid})
return duel_cid
except:
print({"duel_cid not_found"})
print(f"使用决斗模式检测 duel_cid not_found 可尝试{switch_hotkey}切换模式")
return 0


Expand Down Expand Up @@ -120,9 +120,9 @@ def status_change(switch: bool, need_pause: bool, exit: bool):
if switch:
translate_type = int(not bool(translate_type))
if translate_type == 1:
print("翻译卡组卡片")
print("已切换至决斗卡片检测模式")
elif translate_type == 0:
print("翻译决斗卡片")
print("已切换至卡组卡片检测模式")


if __name__ == "__main__":
Expand Down

0 comments on commit e77f8fa

Please sign in to comment.