-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4f29e5
commit e346103
Showing
3 changed files
with
96 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# ============================================ | ||
# Mario Party Toolkit | ||
# Author: Nayla Hanegan ([email protected]) | ||
# Date: 5/7/2024 | ||
# License: MIT | ||
# ============================================ | ||
|
||
from codes.marioParty2 import * | ||
from functions import * | ||
|
||
import pyperclip | ||
|
||
def itemReplace_mp2(spaceRep411, spaceRep412, spaces4): | ||
spaceSlot1 = spaceRep411.get() | ||
spaceSlot2 = spaceRep412.get() | ||
|
||
spaceHex = ["FF", "00", "01", "02", "03", "04", "05", "06", "07", "09"] | ||
|
||
spaceSlot1Num = spaces4.index(spaceSlot1) | ||
spaceSlot1Hex = spaceHex[spaceSlot1Num] | ||
|
||
spaceSlot2Num = spaces4.index(spaceSlot2) | ||
spaceSlot2Hex = spaceHex[spaceSlot2Num] | ||
|
||
mpSpace41 = getItemReplaceTwo(spaceSlot1Hex, spaceSlot2Hex, spaceSlot1, spaceSlot2) | ||
|
||
if spaceSlot1Hex == "NONE": | ||
mpSpace41 = "" | ||
if spaceSlot2Hex == "NONE": | ||
mpSpace41 = "" | ||
|
||
generatedCode = mpSpace41 | ||
|
||
generatedCode = generatedCode.strip() | ||
pyperclip.copy(generatedCode) | ||
|
||
print("Generated codes copied to the clipboard.") | ||
createDialog("Operation Sucessful", "success", "Generated codes copied to clipboard!.", None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters