From 4c277354a280f1621ce74d10eb363508e72676f8 Mon Sep 17 00:00:00 2001 From: Nayla Hanegan Date: Mon, 15 Jul 2024 18:48:07 -0400 Subject: [PATCH] 3.10.0 --- README.md | 46 +- codes/marioParty9.py | 28 +- codes/marioPartyDS.py | 26 +- events/marioParty9_mgreplace.py | 52 +- events/marioPartyDS_mgreplace.py | 52 +- frames/marioParty1_frame.py | 192 ++--- frames/marioParty2_frame.py | 324 ++++---- frames/marioParty3_frame.py | 446 +++++------ frames/marioParty4_frame.py | 704 ++++++++--------- frames/marioParty5_frame.py | 1012 ++++++++++++------------- frames/marioParty6_frame.py | 1190 ++++++++++++++--------------- frames/marioParty7_frame.py | 1216 +++++++++++++++--------------- frames/marioParty8_frame.py | 540 ++++++------- frames/marioParty9_frame.py | 80 +- frames/marioPartyDS_frame.py | 80 +- version.py | 16 +- 16 files changed, 3002 insertions(+), 3002 deletions(-) diff --git a/README.md b/README.md index 8e19819..e23cb2f 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@ -# Mario Party Toolkit -![mptoolkit](https://github.com/EndangeredNayla/Mario-Party-Toolkit/assets/48419040/0dde2000-cfa9-41d6-b996-dbf1d3652bcc) - - -Introducing the Mario Party Toolkit, a versatile piece of software designed to revolutionize your Mario Party gaming experience. Developed by a collaborative effort of various talented code creators, this toolkit grants you unprecedented control over the intricacies of your Mario Party sessions. Released initially on GitHub in late 2022, it has now undergone extensive refinement to ensure stability and usability for all enthusiasts. - -With the Mario Party Toolkit, gone are the days of passive gameplay, as you wield the power to customize key game elements to your liking. Want to tweak the coin gains anmd losses of Blue Spaces or Red Spaces to intensify the competition? Simply adjust the values with ease. Tired of relying on luck for item acquisition? Take charge of the Item RNGs and tailor them to suit your strategic preferences. - -But the customization doesn't stop there. Minigame Wins, Item Prices, and countless other variables are at your command, allowing for endless possibilities to tailor your Mario Party experience to perfection. Whether you seek to level the playing field for all players or create unique challenges for yourself, the Mario Party Toolkit empowers you to do so effortlessly. - -Behind the intuitive graphical user interface (GUI) lies the collaborative efforts of numerous code creators, each contributing their expertise to craft a seamless and comprehensive toolkit. While the codes were meticulously crafted by these talented individuals, the user-friendly interface was brought to life by its creator, ensuring accessibility for all users. - -Unleash your creativity, elevate your gameplay, and redefine the rules of Mario Party with the Mario Party Toolkit. Get ready to embark on an adventure like never before, where every decision is yours to make, and every outcome is within your control. Download now and join the ranks of Mario Party enthusiasts who refuse to settle for anything less than perfection. - -## Downloads - -##### Stable Release - - [Windows](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/download/latest/MarioPartyToolkit-win32.zip) - - [macOS (arm64)](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/download/latest/MarioPartyToolkit-darwin_arm64.zip) - -##### Development Release - - [Windows](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/win32/master/MarioPartyToolkit-win32.zip) - - [macOS (arm64)](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/darwin-arm64/master/MarioPartyToolkit-darwin_arm64.zip) +# Mario Party Toolkit +![mptoolkit](https://github.com/EndangeredNayla/Mario-Party-Toolkit/assets/48419040/0dde2000-cfa9-41d6-b996-dbf1d3652bcc) + + +Introducing the Mario Party Toolkit, a versatile piece of software designed to revolutionize your Mario Party gaming experience. Developed by a collaborative effort of various talented code creators, this toolkit grants you unprecedented control over the intricacies of your Mario Party sessions. Released initially on GitHub in late 2022, it has now undergone extensive refinement to ensure stability and usability for all enthusiasts. + +With the Mario Party Toolkit, gone are the days of passive gameplay, as you wield the power to customize key game elements to your liking. Want to tweak the coin gains anmd losses of Blue Spaces or Red Spaces to intensify the competition? Simply adjust the values with ease. Tired of relying on luck for item acquisition? Take charge of the Item RNGs and tailor them to suit your strategic preferences. + +But the customization doesn't stop there. Minigame Wins, Item Prices, and countless other variables are at your command, allowing for endless possibilities to tailor your Mario Party experience to perfection. Whether you seek to level the playing field for all players or create unique challenges for yourself, the Mario Party Toolkit empowers you to do so effortlessly. + +Behind the intuitive graphical user interface (GUI) lies the collaborative efforts of numerous code creators, each contributing their expertise to craft a seamless and comprehensive toolkit. While the codes were meticulously crafted by these talented individuals, the user-friendly interface was brought to life by its creator, ensuring accessibility for all users. + +Unleash your creativity, elevate your gameplay, and redefine the rules of Mario Party with the Mario Party Toolkit. Get ready to embark on an adventure like never before, where every decision is yours to make, and every outcome is within your control. Download now and join the ranks of Mario Party enthusiasts who refuse to settle for anything less than perfection. + +## Downloads + +##### Stable Release + - [Windows](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/download/latest/MarioPartyToolkit-win32.zip) + - [macOS (arm64)](https://github.com/EndangeredNayla/Mario-Party-Toolkit/releases/download/latest/MarioPartyToolkit-darwin_arm64.zip) + +##### Development Release + - [Windows](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/win32/master/MarioPartyToolkit-win32.zip) + - [macOS (arm64)](https://nightly.link/EndangeredNayla/Mario-Party-Toolkit/workflows/darwin-arm64/master/MarioPartyToolkit-darwin_arm64.zip) diff --git a/codes/marioParty9.py b/codes/marioParty9.py index e915762..fb3ffce 100644 --- a/codes/marioParty9.py +++ b/codes/marioParty9.py @@ -1,15 +1,15 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 7/3/2024 -# License: MIT -# ============================================ - -def getMinigameReplacement9(hexUno, hexDos, gameUno, gameDos): - return f''' -MP9 - Minigame Replacement: {gameUno} -> {gameDos} -42000000 81000000 -20758730 {hexUno}00 -04758730 {hexDos}00 -E0000000 80008000 +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 7/3/2024 +# License: MIT +# ============================================ + +def getMinigameReplacement9(hexUno, hexDos, gameUno, gameDos): + return f''' +MP9 - Minigame Replacement: {gameUno} -> {gameDos} +42000000 81000000 +20758730 {hexUno}00 +04758730 {hexDos}00 +E0000000 80008000 ''' \ No newline at end of file diff --git a/codes/marioPartyDS.py b/codes/marioPartyDS.py index 33c8aec..2095623 100644 --- a/codes/marioPartyDS.py +++ b/codes/marioPartyDS.py @@ -1,14 +1,14 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 7/3/2024 -# License: MIT -# ============================================ - -def getMinigameReplacementDS(hexUno, hexDos, gameUno, gameDos): - return f''' -MPDS - Minigame Replacement: {gameUno} -> {gameDos} -520AAA20 000000{hexUno} -020AAA20 000000{hexDos} -D2000000 00000000 +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 7/3/2024 +# License: MIT +# ============================================ + +def getMinigameReplacementDS(hexUno, hexDos, gameUno, gameDos): + return f''' +MPDS - Minigame Replacement: {gameUno} -> {gameDos} +520AAA20 000000{hexUno} +020AAA20 000000{hexDos} +D2000000 00000000 ''' \ No newline at end of file diff --git a/events/marioParty9_mgreplace.py b/events/marioParty9_mgreplace.py index bc1aace..2477e61 100644 --- a/events/marioParty9_mgreplace.py +++ b/events/marioParty9_mgreplace.py @@ -1,26 +1,26 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 7/3/2024 -# License: MIT -# ============================================ - -from codes.marioParty9 import * -from functions import * - -import pyperclip - - -def mgReplaceEvent_mp9(minigame1Name, minigame2Name, minigames_list): - mingameSlot1 = minigame1Name.get() - mingameSlot2 = minigame2Name.get() - minigameHex = ["313031", "313032", "313033", "313034", "313035", "313036", "313037", "313038", "313039", "313130", "323031", "323032", "323033", "323034", "323035", "323036", "323037", "323038", "323039", "323130", "343031", "343032", "343033", "343034", "343035", "343036", "343037", "343038", "343039", "343130", "343131", "343132", "343133", "343134", "343135", "343136", "343137", "343138", "343139", "343230", "343231", "343232", "343233", "343234", "343235", "343236", "343237", "343238", "343239", "343330", "343331", "343332", "343333", "343334", "343335", "343336", "343337", "343338", "343339", "343430", "343431", "343432", "343433", "343434", "363031", "363032", "363033", "363034", "363035", "363036", "363037", "373031", "373032", "373033", "373034", "373035", "373036", "37303"] - minigameSlot1Num = minigames_list.index(mingameSlot1) - minigameSlot1Hex = minigameHex[minigameSlot1Num] - minigameSlot2Num = minigames_list.index(mingameSlot2) - minigameSlot2Hex = minigameHex[minigameSlot2Num] - code = getMinigameReplacement9(minigameSlot1Hex, minigameSlot2Hex, mingameSlot1, mingameSlot2) - code = code.strip() - pyperclip.copy(code) - print("Generated codes copied to the clipboard.") - createDialog("Operation Sucessful", "success", "Generated codes copied to clipboard!.", None) +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 7/3/2024 +# License: MIT +# ============================================ + +from codes.marioParty9 import * +from functions import * + +import pyperclip + + +def mgReplaceEvent_mp9(minigame1Name, minigame2Name, minigames_list): + mingameSlot1 = minigame1Name.get() + mingameSlot2 = minigame2Name.get() + minigameHex = ["313031", "313032", "313033", "313034", "313035", "313036", "313037", "313038", "313039", "313130", "323031", "323032", "323033", "323034", "323035", "323036", "323037", "323038", "323039", "323130", "343031", "343032", "343033", "343034", "343035", "343036", "343037", "343038", "343039", "343130", "343131", "343132", "343133", "343134", "343135", "343136", "343137", "343138", "343139", "343230", "343231", "343232", "343233", "343234", "343235", "343236", "343237", "343238", "343239", "343330", "343331", "343332", "343333", "343334", "343335", "343336", "343337", "343338", "343339", "343430", "343431", "343432", "343433", "343434", "363031", "363032", "363033", "363034", "363035", "363036", "363037", "373031", "373032", "373033", "373034", "373035", "373036", "37303"] + minigameSlot1Num = minigames_list.index(mingameSlot1) + minigameSlot1Hex = minigameHex[minigameSlot1Num] + minigameSlot2Num = minigames_list.index(mingameSlot2) + minigameSlot2Hex = minigameHex[minigameSlot2Num] + code = getMinigameReplacement9(minigameSlot1Hex, minigameSlot2Hex, mingameSlot1, mingameSlot2) + code = code.strip() + pyperclip.copy(code) + print("Generated codes copied to the clipboard.") + createDialog("Operation Sucessful", "success", "Generated codes copied to clipboard!.", None) diff --git a/events/marioPartyDS_mgreplace.py b/events/marioPartyDS_mgreplace.py index d7bc0cc..3f64607 100644 --- a/events/marioPartyDS_mgreplace.py +++ b/events/marioPartyDS_mgreplace.py @@ -1,26 +1,26 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 7/32024 -# License: MIT -# ============================================ - -from codes.marioPartyDS import * -from functions import * - -import pyperclip - - -def mgReplaceEvent_mpDS(minigame1Name, minigame2Name, minigames_list): - mingameSlot1 = minigame1Name.get() - mingameSlot2 = minigame2Name.get() - minigameHex = ["01", "02", "03", "04", "05", "06", "07", "08", "0A", "0B", "0C", "0D", "0E", "0F", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1A", "1B", "1C", "1D", "1E", "1F", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2A", "2B", "2C", "2D", "2E", "2F", "30", "31", "32", "34", "35", "36", "37", "38", "39", "3A", "3B", "3C", "3D", "3E", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4A", "4B", "4C", "4D"] - minigameSlot1Num = minigames_list.index(mingameSlot1) - minigameSlot1Hex = minigameHex[minigameSlot1Num] - minigameSlot2Num = minigames_list.index(mingameSlot2) - minigameSlot2Hex = minigameHex[minigameSlot2Num] - code = getMinigameReplacementDS(minigameSlot1Hex, minigameSlot2Hex, mingameSlot1, mingameSlot2) - code = code.strip() - pyperclip.copy(code) - print("Generated codes copied to the clipboard.") - createDialog("Operation Sucessful", "success", "Generated codes copied to clipboard!.", None) +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 7/32024 +# License: MIT +# ============================================ + +from codes.marioPartyDS import * +from functions import * + +import pyperclip + + +def mgReplaceEvent_mpDS(minigame1Name, minigame2Name, minigames_list): + mingameSlot1 = minigame1Name.get() + mingameSlot2 = minigame2Name.get() + minigameHex = ["01", "02", "03", "04", "05", "06", "07", "08", "0A", "0B", "0C", "0D", "0E", "0F", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1A", "1B", "1C", "1D", "1E", "1F", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2A", "2B", "2C", "2D", "2E", "2F", "30", "31", "32", "34", "35", "36", "37", "38", "39", "3A", "3B", "3C", "3D", "3E", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4A", "4B", "4C", "4D"] + minigameSlot1Num = minigames_list.index(mingameSlot1) + minigameSlot1Hex = minigameHex[minigameSlot1Num] + minigameSlot2Num = minigames_list.index(mingameSlot2) + minigameSlot2Hex = minigameHex[minigameSlot2Num] + code = getMinigameReplacementDS(minigameSlot1Hex, minigameSlot2Hex, mingameSlot1, mingameSlot2) + code = code.strip() + pyperclip.copy(code) + print("Generated codes copied to the clipboard.") + createDialog("Operation Sucessful", "success", "Generated codes copied to clipboard!.", None) diff --git a/frames/marioParty1_frame.py b/frames/marioParty1_frame.py index d7b391d..e5e1af5 100644 --- a/frames/marioParty1_frame.py +++ b/frames/marioParty1_frame.py @@ -1,97 +1,97 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 5/4/2024 -# License: MIT -# ============================================ - -# Import necessary functions and modules -from functions import * -from events.marioParty1_coins import * -from events.marioParty1_handicap import * -from events.marioParty1_mgreplace import * - -# Import custom tkinter module as ctk -import customtkinter as ctk - -# Function to create the main interface for Mario Party 1 -def create_mario_party_1_interface(frame): - # Create a tabbed interface - tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) - tabview.grid(padx=10, pady=10) - tabview.add("Coins Mods") - tabview.add("Minigame Replacement") - tabview.add("Star Handicaps") - tabview.set("Coins Mods") - - # Function to create an entry field and checkbox - def create_entry_and_checkbox(tab, row, icon_path, label_text, color, checkbox_text, placeholder): - create_image_icon(tab, icon_path, row, 1) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=2, pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placeholder_text=placeholder) - entry.grid(row=row, column=3) - label1 = ctk.CTkLabel(master=tab, text=" Coins on a " + color + " Space. ", font=("Arial", 16)) - label1.grid(row=row, column=4) - checkbox = ctk.CTkCheckBox(master=tab, text=checkbox_text, width=16, checkbox_width=16, checkbox_height=16) - checkbox.grid(row=row, column=5, padx=10, pady=10) - return entry, checkbox - - # Create entry fields and checkboxes for Coins Mods tab - blue_entry, blue_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", "Blue", "Double the coins on Last 5", "3") - red_entry, red_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", "Red", "Double the coins on Last 5", "3") - - # Create button to generate coins modification codes - parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp1(blue_entry, blue_checkbox, red_entry, red_checkbox), text="Generate Codes") - parse_coins_button.place(x=10, y=800) - - # List of minigame names - minigames_list = ["Memory Match", "Slot Machine", "Buried Treasure", "Treasure Divers", "Shell Game", "Slot Car Derby 1", "Hot Bob-omb", "Slot Car Derby 2", "Pipe Maze", "Ghost Guess", "Musical Mushroom", "Pedal Power", "Crazy Cutter", "Face Lift", "Whack-a-Plant", "Bash 'n' Cash", "Bowl Over", "Ground Pound", "Balloon Burst", "Coin Block Blitz", "Coin Block Bash", "Skateboard Scamper", "Box Mountain Mayhem", "Platform Peril", "Teetering Towers", "Mushroom Mix-Up", "Bumper Ball Maze 1", "Grab Bag", "Bobsled Run", "Bumper Balls", "TightRope Treachery", "Knock Block Tower", "Tipsy Tourney", "Bombs Away", "Crane Game", "Bumper Ball Maze 2", "Mario Bandstand", "Desert Dash", "Shy Guy Says", "Limbo Dance", "Bombsketball", "Cast Aways", "Key-pa-Way", "Running of the Bulb", "Hot Rope Jump", "Handcar Havoc", "Deep Sea Divers", "Piranha's Pursuit", "Tug o' War", "Paddle Battle", "Bumper Ball Maze 3", "Coin Shower Flower", "Hammer Drop"] - - # Create labels, comboboxes, and button for Minigame Replacement tab - replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) - replace_label.grid(row=0, column=0) - combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_1.grid(row=0, column=1) - with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) - with_label.grid(row=0, column=2) - combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_2.grid(row=0, column=3) - parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp1(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") - parse_minigame_button.place(x=10, y=800) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 0, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Top Left Starts with ", font=("Arial", 16)) - label.grid(row=0, column=1) - p1Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p1Stars.grid(row=0, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=0, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 1, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Top Right Starts with ", font=("Arial", 16)) - label.grid(row=1, column=1) - p2Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p2Stars.grid(row=1, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=1, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 2, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Bottom Left Starts with ", font=("Arial", 16)) - label.grid(row=2, column=1) - p3Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p3Stars.grid(row=2, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=2, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 3, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Bottom Right Starts with ", font=("Arial", 16)) - label.grid(row=3, column=1) - p4Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p4Stars.grid(row=3, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=3, column=3) - - parse_stars_button = ctk.CTkButton(master=tabview.tab("Star Handicaps"), command=lambda: handicapEvent_mp1(p1Stars, p2Stars, p3Stars, p4Stars), text="Generate Codes") - parse_stars_button.place(x=10, y=800) +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 5/4/2024 +# License: MIT +# ============================================ + +# Import necessary functions and modules +from functions import * +from events.marioParty1_coins import * +from events.marioParty1_handicap import * +from events.marioParty1_mgreplace import * + +# Import custom tkinter module as ctk +import customtkinter as ctk + +# Function to create the main interface for Mario Party 1 +def create_mario_party_1_interface(frame): + # Create a tabbed interface + tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) + tabview.grid(padx=10, pady=10) + tabview.add("Coins Mods") + tabview.add("Minigame Replacement") + tabview.add("Star Handicaps") + tabview.set("Coins Mods") + + # Function to create an entry field and checkbox + def create_entry_and_checkbox(tab, row, icon_path, label_text, color, checkbox_text, placeholder): + create_image_icon(tab, icon_path, row, 1) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=2, pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placeholder_text=placeholder) + entry.grid(row=row, column=3) + label1 = ctk.CTkLabel(master=tab, text=" Coins on a " + color + " Space. ", font=("Arial", 16)) + label1.grid(row=row, column=4) + checkbox = ctk.CTkCheckBox(master=tab, text=checkbox_text, width=16, checkbox_width=16, checkbox_height=16) + checkbox.grid(row=row, column=5, padx=10, pady=10) + return entry, checkbox + + # Create entry fields and checkboxes for Coins Mods tab + blue_entry, blue_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", "Blue", "Double the coins on Last 5", "3") + red_entry, red_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", "Red", "Double the coins on Last 5", "3") + + # Create button to generate coins modification codes + parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp1(blue_entry, blue_checkbox, red_entry, red_checkbox), text="Generate Codes") + parse_coins_button.place(x=10, y=800) + + # List of minigame names + minigames_list = ["Memory Match", "Slot Machine", "Buried Treasure", "Treasure Divers", "Shell Game", "Slot Car Derby 1", "Hot Bob-omb", "Slot Car Derby 2", "Pipe Maze", "Ghost Guess", "Musical Mushroom", "Pedal Power", "Crazy Cutter", "Face Lift", "Whack-a-Plant", "Bash 'n' Cash", "Bowl Over", "Ground Pound", "Balloon Burst", "Coin Block Blitz", "Coin Block Bash", "Skateboard Scamper", "Box Mountain Mayhem", "Platform Peril", "Teetering Towers", "Mushroom Mix-Up", "Bumper Ball Maze 1", "Grab Bag", "Bobsled Run", "Bumper Balls", "TightRope Treachery", "Knock Block Tower", "Tipsy Tourney", "Bombs Away", "Crane Game", "Bumper Ball Maze 2", "Mario Bandstand", "Desert Dash", "Shy Guy Says", "Limbo Dance", "Bombsketball", "Cast Aways", "Key-pa-Way", "Running of the Bulb", "Hot Rope Jump", "Handcar Havoc", "Deep Sea Divers", "Piranha's Pursuit", "Tug o' War", "Paddle Battle", "Bumper Ball Maze 3", "Coin Shower Flower", "Hammer Drop"] + + # Create labels, comboboxes, and button for Minigame Replacement tab + replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) + replace_label.grid(row=0, column=0) + combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_1.grid(row=0, column=1) + with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) + with_label.grid(row=0, column=2) + combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_2.grid(row=0, column=3) + parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp1(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") + parse_minigame_button.place(x=10, y=800) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 0, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Top Left Starts with ", font=("Arial", 16)) + label.grid(row=0, column=1) + p1Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p1Stars.grid(row=0, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=0, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 1, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Top Right Starts with ", font=("Arial", 16)) + label.grid(row=1, column=1) + p2Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p2Stars.grid(row=1, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=1, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 2, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Bottom Left Starts with ", font=("Arial", 16)) + label.grid(row=2, column=1) + p3Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p3Stars.grid(row=2, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=2, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 3, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Bottom Right Starts with ", font=("Arial", 16)) + label.grid(row=3, column=1) + p4Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p4Stars.grid(row=3, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=3, column=3) + + parse_stars_button = ctk.CTkButton(master=tabview.tab("Star Handicaps"), command=lambda: handicapEvent_mp1(p1Stars, p2Stars, p3Stars, p4Stars), text="Generate Codes") + parse_stars_button.place(x=10, y=800) return frame \ No newline at end of file diff --git a/frames/marioParty2_frame.py b/frames/marioParty2_frame.py index 6613a32..a3d2f77 100644 --- a/frames/marioParty2_frame.py +++ b/frames/marioParty2_frame.py @@ -1,163 +1,163 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 5/9/2024 -# License: MIT -# ============================================ - -# Import necessary functions and modules -from functions import * -from events.marioParty2_coins import * -from events.marioParty2_items import * -from events.marioParty2_handicap import * -from events.marioParty2_mgreplace import * - -# Import custom tkinter module as ctk -import customtkinter as ctk - -# Function to create the main interface for Mario Party 1 -def create_mario_party_2_interface(frame): - # Create a tabbed interface - tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) - tabview.grid(padx=10, pady=10) - tabview.add("Coins Mods") - tabview.add("Minigame Replacement") - tabview.add("Item Mods") - tabview.add("Star Handicaps") - tabview.set("Coins Mods") - - # Function to create an entry field and checkbox - def create_entry_and_checkbox(tab, row, icon_path, label_text, color, checkbox_text, placeholder): - create_image_icon(tab, icon_path, row, 1) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=2, pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placeholder_text=placeholder) - entry.grid(row=row, column=3) - label1 = ctk.CTkLabel(master=tab, text=" Coins on a " + color + " Space. ", font=("Arial", 16)) - label1.grid(row=row, column=4) - checkbox = ctk.CTkCheckBox(master=tab, text=checkbox_text, width=16, checkbox_width=16, checkbox_height=16) - checkbox.grid(row=row, column=5, padx=10, pady=10) - return entry, checkbox - - # Function to create an entry field and checkbox - def create_entry(tab, row, icon_path, label_text, color, placeholder): - create_image_icon(tab, icon_path, row, 1) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=2, sticky="w", pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placeholder_text=placeholder) - entry.grid(row=row, column=3) - label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) - label1.grid(row=row, column=4, sticky="w") - return entry - - # Create entry fields and checkboxes for Coins Mods tab - blue_entry, blue_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", "Blue", "Double the coins on Last 5", "3") - red_entry, red_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", "Red", "Double the coins on Last 5", "3") - star_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star.", "20") - koopaBank_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/koopaBank3.png", " Lend ", " Coins to Koopa Bank,", "5") - - # Create button to generate coins modification codes - parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp2(blue_entry, blue_checkbox, red_entry, red_checkbox, star_entry, koopaBank_entry), text="Generate Codes") - parse_coins_button.place(x=10, y=800) - - # List of minigame names - minigames_list = ["BOWSER Slots", "Roll Out the Barrels", "Coffin Congestion", "Hammer Slammer", "Give Me a Brake!", "Mallet-Go Round", "Grab Bag", "Bumper Balloon Cars", "Rakin' 'em In", "Day at the Races", "Face Lift", "Crazy Cutters", "Hot BOB-OMB", "Bowl Over", "Rainbow Run", "Crane Game", "Move to the Music", "BOB-OMB Barrage", "Look Away", "Shock Drop or Roll", "Lights Out", "Filet Relay", "Archer-ival", "TOAD Bandstand", "Bobsled Run", "Handcar Havoc", "Balloon Burst", "Sky Pilots", "Speed Hockey", "Cake Factory", "Dungeon Dash", "Magnet Carta", "Lava Tile Isle", "Hot Rope Jump", "Shell Shocked", "TOAD in the Box", "Mecha-Marathon", "Roll Call", "Abandon Ship", "Platform Peril", "Totem Pole Pound", "Bumper Balls", "Bombs Away", "Tipsy Tourney", "Honeycomb Havoc", "Hexagon Heat", "Skateboard Scamper", "Slot Car Derby", "Shy Guy Says", "Sneak 'n' Snore", "Driver's Ed", "BOWSER's Big Blast", "Looney Lumberjacks", "Torpedo Targets", "Destruction Duet", "Dizzy Dancing", "Tile Driver", "Quicksand Cache", "Deep Sea Salvage"] - - # Create labels, comboboxes, and button for Minigame Replacement tab - replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) - replace_label.grid(row=0, column=0) - combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_1.grid(row=0, column=1) - with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) - with_label.grid(row=0, column=2) - combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_2.grid(row=0, column=3) - parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp2(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") - parse_minigame_button.place(x=10, y=800) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/mushroom.png", 1, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=1, column=2) - mushroom2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") - mushroom2.grid(row=1, column=3) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/skeletonKey.png", 2, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=2) - skeletonKey2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") - skeletonKey2.grid(row=2, column=3) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/plunderChest.png", 3, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=2) - plunderChest2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="15") - plunderChest2.grid(row=3, column=3) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/duelingGlove.png", 4, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=2) - duelingGlove2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="15") - duelingGlove2.grid(row=4, column=3) - - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" ", font=("Arial", 16)) - label.grid(row=4, column=5) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/warpBlock.png", 1, 6) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=1, column=7) - warpBlock2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="15") - warpBlock2.grid(row=1, column=8) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/goldenMushroom.png", 2, 6) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=7) - goldenMushroom2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="20") - goldenMushroom2.grid(row=2, column=8) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/magicLamp.png", 3, 6) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=7) - magicLamp2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="30") - magicLamp2.grid(row=3, column=8) - - parseButtonTwo = ctk.CTkButton(master=tabview.tab("Item Mods"), command=lambda: itemsTwo(mushroom2, skeletonKey2, plunderChest2, duelingGlove2, warpBlock2, goldenMushroom2, magicLamp2), text="Generate Codes") - parseButtonTwo.place(x=10, y=800) - - warningLabel = ctk.CTkLabel(master=tabview.tab("Item Mods"), text="These are not weights! 0 doesnt mean disabled.", font=("Arial", 16, "bold")) - warningLabel.place(x=5, y=210) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 0, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Top Left Starts with ", font=("Arial", 16)) - label.grid(row=0, column=1) - p1Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p1Stars.grid(row=0, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=0, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 1, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Top Right Starts with ", font=("Arial", 16)) - label.grid(row=1, column=1) - p2Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p2Stars.grid(row=1, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=1, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 2, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Bottom Left Starts with ", font=("Arial", 16)) - label.grid(row=2, column=1) - p3Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p3Stars.grid(row=2, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=2, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 3, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Bottom Right Starts with ", font=("Arial", 16)) - label.grid(row=3, column=1) - p4Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p4Stars.grid(row=3, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=3, column=3) - - parse_stars_button = ctk.CTkButton(master=tabview.tab("Star Handicaps"), command=lambda: handicapEvent_mp2(p1Stars, p2Stars, p3Stars, p4Stars), text="Generate Codes") - parse_stars_button.place(x=10, y=800) +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 5/9/2024 +# License: MIT +# ============================================ + +# Import necessary functions and modules +from functions import * +from events.marioParty2_coins import * +from events.marioParty2_items import * +from events.marioParty2_handicap import * +from events.marioParty2_mgreplace import * + +# Import custom tkinter module as ctk +import customtkinter as ctk + +# Function to create the main interface for Mario Party 1 +def create_mario_party_2_interface(frame): + # Create a tabbed interface + tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) + tabview.grid(padx=10, pady=10) + tabview.add("Coins Mods") + tabview.add("Minigame Replacement") + tabview.add("Item Mods") + tabview.add("Star Handicaps") + tabview.set("Coins Mods") + + # Function to create an entry field and checkbox + def create_entry_and_checkbox(tab, row, icon_path, label_text, color, checkbox_text, placeholder): + create_image_icon(tab, icon_path, row, 1) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=2, pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placeholder_text=placeholder) + entry.grid(row=row, column=3) + label1 = ctk.CTkLabel(master=tab, text=" Coins on a " + color + " Space. ", font=("Arial", 16)) + label1.grid(row=row, column=4) + checkbox = ctk.CTkCheckBox(master=tab, text=checkbox_text, width=16, checkbox_width=16, checkbox_height=16) + checkbox.grid(row=row, column=5, padx=10, pady=10) + return entry, checkbox + + # Function to create an entry field and checkbox + def create_entry(tab, row, icon_path, label_text, color, placeholder): + create_image_icon(tab, icon_path, row, 1) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=2, sticky="w", pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placeholder_text=placeholder) + entry.grid(row=row, column=3) + label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) + label1.grid(row=row, column=4, sticky="w") + return entry + + # Create entry fields and checkboxes for Coins Mods tab + blue_entry, blue_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", "Blue", "Double the coins on Last 5", "3") + red_entry, red_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", "Red", "Double the coins on Last 5", "3") + star_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star.", "20") + koopaBank_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/koopaBank3.png", " Lend ", " Coins to Koopa Bank,", "5") + + # Create button to generate coins modification codes + parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp2(blue_entry, blue_checkbox, red_entry, red_checkbox, star_entry, koopaBank_entry), text="Generate Codes") + parse_coins_button.place(x=10, y=800) + + # List of minigame names + minigames_list = ["BOWSER Slots", "Roll Out the Barrels", "Coffin Congestion", "Hammer Slammer", "Give Me a Brake!", "Mallet-Go Round", "Grab Bag", "Bumper Balloon Cars", "Rakin' 'em In", "Day at the Races", "Face Lift", "Crazy Cutters", "Hot BOB-OMB", "Bowl Over", "Rainbow Run", "Crane Game", "Move to the Music", "BOB-OMB Barrage", "Look Away", "Shock Drop or Roll", "Lights Out", "Filet Relay", "Archer-ival", "TOAD Bandstand", "Bobsled Run", "Handcar Havoc", "Balloon Burst", "Sky Pilots", "Speed Hockey", "Cake Factory", "Dungeon Dash", "Magnet Carta", "Lava Tile Isle", "Hot Rope Jump", "Shell Shocked", "TOAD in the Box", "Mecha-Marathon", "Roll Call", "Abandon Ship", "Platform Peril", "Totem Pole Pound", "Bumper Balls", "Bombs Away", "Tipsy Tourney", "Honeycomb Havoc", "Hexagon Heat", "Skateboard Scamper", "Slot Car Derby", "Shy Guy Says", "Sneak 'n' Snore", "Driver's Ed", "BOWSER's Big Blast", "Looney Lumberjacks", "Torpedo Targets", "Destruction Duet", "Dizzy Dancing", "Tile Driver", "Quicksand Cache", "Deep Sea Salvage"] + + # Create labels, comboboxes, and button for Minigame Replacement tab + replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) + replace_label.grid(row=0, column=0) + combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_1.grid(row=0, column=1) + with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) + with_label.grid(row=0, column=2) + combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_2.grid(row=0, column=3) + parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp2(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") + parse_minigame_button.place(x=10, y=800) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/mushroom.png", 1, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=1, column=2) + mushroom2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") + mushroom2.grid(row=1, column=3) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/skeletonKey.png", 2, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=2) + skeletonKey2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") + skeletonKey2.grid(row=2, column=3) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/plunderChest.png", 3, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=2) + plunderChest2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="15") + plunderChest2.grid(row=3, column=3) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/duelingGlove.png", 4, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=2) + duelingGlove2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="15") + duelingGlove2.grid(row=4, column=3) + + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" ", font=("Arial", 16)) + label.grid(row=4, column=5) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/warpBlock.png", 1, 6) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=1, column=7) + warpBlock2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="15") + warpBlock2.grid(row=1, column=8) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/goldenMushroom.png", 2, 6) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=7) + goldenMushroom2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="20") + goldenMushroom2.grid(row=2, column=8) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/magicLamp.png", 3, 6) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=7) + magicLamp2 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="30") + magicLamp2.grid(row=3, column=8) + + parseButtonTwo = ctk.CTkButton(master=tabview.tab("Item Mods"), command=lambda: itemsTwo(mushroom2, skeletonKey2, plunderChest2, duelingGlove2, warpBlock2, goldenMushroom2, magicLamp2), text="Generate Codes") + parseButtonTwo.place(x=10, y=800) + + warningLabel = ctk.CTkLabel(master=tabview.tab("Item Mods"), text="These are not weights! 0 doesnt mean disabled.", font=("Arial", 16, "bold")) + warningLabel.place(x=5, y=210) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 0, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Top Left Starts with ", font=("Arial", 16)) + label.grid(row=0, column=1) + p1Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p1Stars.grid(row=0, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=0, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 1, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Top Right Starts with ", font=("Arial", 16)) + label.grid(row=1, column=1) + p2Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p2Stars.grid(row=1, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=1, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 2, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Bottom Left Starts with ", font=("Arial", 16)) + label.grid(row=2, column=1) + p3Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p3Stars.grid(row=2, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=2, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 3, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Bottom Right Starts with ", font=("Arial", 16)) + label.grid(row=3, column=1) + p4Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p4Stars.grid(row=3, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=3, column=3) + + parse_stars_button = ctk.CTkButton(master=tabview.tab("Star Handicaps"), command=lambda: handicapEvent_mp2(p1Stars, p2Stars, p3Stars, p4Stars), text="Generate Codes") + parse_stars_button.place(x=10, y=800) return frame \ No newline at end of file diff --git a/frames/marioParty3_frame.py b/frames/marioParty3_frame.py index 7f466e5..cc5512e 100644 --- a/frames/marioParty3_frame.py +++ b/frames/marioParty3_frame.py @@ -1,224 +1,224 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 5/4/2024 -# License: MIT -# ============================================ - -# Import necessary functions and modules -from functions import * -from events.marioParty3_coins import * -from events.marioParty3_items import * -from events.marioParty3_handicap import * -from events.marioParty3_mgreplace import * - -# Import custom tkinter module as ctk -import customtkinter as ctk - -# Function to create the main interface for Mario Party 1 -def create_mario_party_3_interface(frame): - # Create a tabbed interface - tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) - tabview.grid(padx=10, pady=10) - tabview.add("Coins Mods") - tabview.add("Minigame Replacement") - tabview.add("Item Mods") - tabview.add("Star Handicaps") - tabview.set("Coins Mods") - - # Function to create an entry field and checkbox - def create_entry_and_checkbox(tab, row, icon_path, label_text, color, checkbox_text, placeholder): - create_image_icon(tab, icon_path, row, 1) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=2, sticky="w", pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placeholder_text=placeholder) - entry.grid(row=row, column=3) - label1 = ctk.CTkLabel(master=tab, text=" Coins on a " + color + " Space. ", font=("Arial", 16)) - label1.grid(row=row, column=4, sticky="w") - checkbox = ctk.CTkCheckBox(master=tab, text=checkbox_text, width=16, checkbox_width=16, checkbox_height=16) - checkbox.grid(row=row, column=5) - return entry, checkbox - - # Function to create an entry field and checkbox - def create_entry(tab, row, icon_path, label_text, color, placeholder): - create_image_icon(tab, icon_path, row, 1) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=2, sticky="w", pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placeholder_text=placeholder) - entry.grid(row=row, column=3) - label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) - label1.grid(row=row, column=4, sticky="w") - return entry - - # Create entry fields and checkboxes for Coins Mods tab - blue_entry, blue_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", "Blue", "Double the coins on Last 5", "3") - red_entry, red_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", "Red", "Double the coins on Last 5", "3") - star_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star.", "20") - koopaBank_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/koopaBank3.png", " Lend ", " Coins to Koopa Bank,", "5") - - # Create button to generate coins modification codes - parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp3(blue_entry, blue_checkbox, red_entry, red_checkbox, star_entry, koopaBank_entry), text="Generate Codes") - parse_coins_button.place(x=10, y=800) - - # List of minigame names - minigames_list = ["Thwomp Pull", "River Raiders", "Tidal Toss", "Eatsa Pizza", "Baby Bowser Broadside", "Pump, Pump and Away", "Hyper Hydrants", "Picking Panic", "Treadmill Grill", "Toadstoll Titan", "Aces High", "Bounce 'n' Trounce", "Ice Rink Risk", "Locked Out", "Chip Shot Challenge", "Parasol Plummet", "Messy Memory", "Picture Imperfect", "Mario's Puzzle Party", "The Beat Goes On", "M. P. I. Q.", "Curtain Call", "Water Whirled", "Frigid Bridges", "Awful Tower", "Cheep Cheep Chase", "Pipe Cleaners", "Snowball Summit", "All Fired Up", "Stacked Deck", "Three Door Monty", "Rockin' Raceway", "Merry-Go-Chomp", "Slap Down", "Storm Chasers", "Eye Sore", "Vine With Me", "Popgun Pick-Off", "End of the Line", "Bowser Toss", "Baby Bowser Bonkers", "Motor Rooter", "Silly Screws", "Crowd Cover", "Tick Tock Hop", "Fowl Play", "Mecha-Marathon", "Hey, Batter, Batter!", "Bobbing Bow-loons", "Dorrie Dip", "Swinging with Sharks", "Swing 'n' Swipe", "Stardust Battle", "Game Guy's Roulette", "Game Guy's Lucky 7", "Game Guy's Magic Boxes", "Game Guy's Sweet Surprise", "Dizzy Dinghies", "Mario's Puzzle Party Pro"] - - # Create labels, comboboxes, and button for Minigame Replacement tab - replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) - replace_label.grid(row=0, column=0) - combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_1.grid(row=0, column=1) - with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) - with_label.grid(row=0, column=2) - combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_2.grid(row=0, column=3) - parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp3(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") - parse_minigame_button.place(x=10, y=800) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/mushroom.png", 1, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") - label.grid(row=1, column=2) - mushroom3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") - mushroom3.grid(row=1, column=3) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/skeletonKey.png", 2, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") - label.grid(row=2, column=2) - skeletonKey3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") - skeletonKey3.grid(row=2, column=3) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/poisonMushroom.png", 3, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") - label.grid(row=3, column=2) - poisonMushroom3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") - poisonMushroom3.grid(row=3, column=3) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/reverseMushroom.png", 4, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") - label.grid(row=4, column=2) - reverseMushroom3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") - reverseMushroom3.grid(row=4, column=3) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/goldenMushroom.png", 5, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=2) - goldenMushroom3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") - goldenMushroom3.grid(row=5, column=3) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/magicLamp.png", 6, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=2) - magicLamp3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="20") - magicLamp3.grid(row=6, column=3) - - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" ", font=("Arial", 16)) - label.grid(row=1, column=4) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/warpBlock.png", 1, 6) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") - label.grid(row=1, column=7) - warpBlock3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") - warpBlock3.grid(row=1, column=8) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/celluarShopper.png", 2, 6) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") - label.grid(row=2, column=7) - celluarShopper3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") - celluarShopper3.grid(row=2, column=8) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/bowserPhone.png", 3, 6) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=7) - bowserPhone3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") - bowserPhone3.grid(row=3, column=8) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/duelingGlove.png", 4, 6) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=7) - duelingGlove3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") - duelingGlove3.grid(row=4, column=8) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/luckyLamp.png", 5, 6) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=7) - luckyLamp3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") - luckyLamp3.grid(row=5, column=8) - - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" ", font=("Arial", 16)) - label.grid(row=1, column=9) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/bowserSuit.png", 1, 10) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=1, column=11) - bowserSuit3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") - bowserSuit3.grid(row=1, column=12) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/plunderChest.png", 2, 10) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=11) - plunderChest3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") - plunderChest3.grid(row=2, column=12) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/booBell.png", 3, 10) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=11) - booBell3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="15") - booBell3.grid(row=3, column=12) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/booRepellent.png", 4, 10) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=11) - booRepellant3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") - booRepellant3.grid(row=4, column=12) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/itemBag3.png", 5, 10) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=11) - itemBag3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="30") - itemBag3.grid(row=5, column=12) - - parseButtonThree = ctk.CTkButton(master=tabview.tab("Item Mods"), command=lambda: itemsEvent_mp3(mushroom3, skeletonKey3, poisonMushroom3, reverseMushroom3, goldenMushroom3, magicLamp3, warpBlock3, celluarShopper3, bowserPhone3, duelingGlove3, luckyLamp3, bowserSuit3, plunderChest3, booBell3, booRepellant3, itemBag3), text="Generate Codes") - parseButtonThree.place(x=10, y=800) - - warningLabel = ctk.CTkLabel(master=tabview.tab("Item Mods"), text="These are not weights! 0 doesnt mean disabled.", font=("Arial", 16, "bold")) - warningLabel.place(x=5, y=310) - - warningLabel = ctk.CTkLabel(master=tabview.tab("Item Mods"), text="Please set the items in RED the LOWEST PRICE and the SAME PRICE.", font=("Arial", 16, "bold")) - warningLabel.place(x=5, y=280) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 0, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P1 Starts with ", font=("Arial", 16)) - label.grid(row=0, column=1) - p1Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p1Stars.grid(row=0, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=0, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 1, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P2 Starts with ", font=("Arial", 16)) - label.grid(row=1, column=1) - p2Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p2Stars.grid(row=1, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=1, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 2, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P3 Starts with ", font=("Arial", 16)) - label.grid(row=2, column=1) - p3Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p3Stars.grid(row=2, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=2, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 3, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P4 Starts with ", font=("Arial", 16)) - label.grid(row=3, column=1) - p4Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p4Stars.grid(row=3, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=3, column=3) - - parse_stars_button = ctk.CTkButton(master=tabview.tab("Star Handicaps"), command=lambda: handicapEvent_mp3(p1Stars, p2Stars, p3Stars, p4Stars), text="Generate Codes") - parse_stars_button.place(x=10, y=800) - +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 5/4/2024 +# License: MIT +# ============================================ + +# Import necessary functions and modules +from functions import * +from events.marioParty3_coins import * +from events.marioParty3_items import * +from events.marioParty3_handicap import * +from events.marioParty3_mgreplace import * + +# Import custom tkinter module as ctk +import customtkinter as ctk + +# Function to create the main interface for Mario Party 1 +def create_mario_party_3_interface(frame): + # Create a tabbed interface + tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) + tabview.grid(padx=10, pady=10) + tabview.add("Coins Mods") + tabview.add("Minigame Replacement") + tabview.add("Item Mods") + tabview.add("Star Handicaps") + tabview.set("Coins Mods") + + # Function to create an entry field and checkbox + def create_entry_and_checkbox(tab, row, icon_path, label_text, color, checkbox_text, placeholder): + create_image_icon(tab, icon_path, row, 1) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=2, sticky="w", pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placeholder_text=placeholder) + entry.grid(row=row, column=3) + label1 = ctk.CTkLabel(master=tab, text=" Coins on a " + color + " Space. ", font=("Arial", 16)) + label1.grid(row=row, column=4, sticky="w") + checkbox = ctk.CTkCheckBox(master=tab, text=checkbox_text, width=16, checkbox_width=16, checkbox_height=16) + checkbox.grid(row=row, column=5) + return entry, checkbox + + # Function to create an entry field and checkbox + def create_entry(tab, row, icon_path, label_text, color, placeholder): + create_image_icon(tab, icon_path, row, 1) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=2, sticky="w", pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placeholder_text=placeholder) + entry.grid(row=row, column=3) + label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) + label1.grid(row=row, column=4, sticky="w") + return entry + + # Create entry fields and checkboxes for Coins Mods tab + blue_entry, blue_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", "Blue", "Double the coins on Last 5", "3") + red_entry, red_checkbox = create_entry_and_checkbox(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", "Red", "Double the coins on Last 5", "3") + star_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star.", "20") + koopaBank_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/koopaBank3.png", " Lend ", " Coins to Koopa Bank,", "5") + + # Create button to generate coins modification codes + parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp3(blue_entry, blue_checkbox, red_entry, red_checkbox, star_entry, koopaBank_entry), text="Generate Codes") + parse_coins_button.place(x=10, y=800) + + # List of minigame names + minigames_list = ["Thwomp Pull", "River Raiders", "Tidal Toss", "Eatsa Pizza", "Baby Bowser Broadside", "Pump, Pump and Away", "Hyper Hydrants", "Picking Panic", "Treadmill Grill", "Toadstoll Titan", "Aces High", "Bounce 'n' Trounce", "Ice Rink Risk", "Locked Out", "Chip Shot Challenge", "Parasol Plummet", "Messy Memory", "Picture Imperfect", "Mario's Puzzle Party", "The Beat Goes On", "M. P. I. Q.", "Curtain Call", "Water Whirled", "Frigid Bridges", "Awful Tower", "Cheep Cheep Chase", "Pipe Cleaners", "Snowball Summit", "All Fired Up", "Stacked Deck", "Three Door Monty", "Rockin' Raceway", "Merry-Go-Chomp", "Slap Down", "Storm Chasers", "Eye Sore", "Vine With Me", "Popgun Pick-Off", "End of the Line", "Bowser Toss", "Baby Bowser Bonkers", "Motor Rooter", "Silly Screws", "Crowd Cover", "Tick Tock Hop", "Fowl Play", "Mecha-Marathon", "Hey, Batter, Batter!", "Bobbing Bow-loons", "Dorrie Dip", "Swinging with Sharks", "Swing 'n' Swipe", "Stardust Battle", "Game Guy's Roulette", "Game Guy's Lucky 7", "Game Guy's Magic Boxes", "Game Guy's Sweet Surprise", "Dizzy Dinghies", "Mario's Puzzle Party Pro"] + + # Create labels, comboboxes, and button for Minigame Replacement tab + replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) + replace_label.grid(row=0, column=0) + combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_1.grid(row=0, column=1) + with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) + with_label.grid(row=0, column=2) + combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_2.grid(row=0, column=3) + parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp3(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") + parse_minigame_button.place(x=10, y=800) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/mushroom.png", 1, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") + label.grid(row=1, column=2) + mushroom3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") + mushroom3.grid(row=1, column=3) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/skeletonKey.png", 2, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") + label.grid(row=2, column=2) + skeletonKey3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") + skeletonKey3.grid(row=2, column=3) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/poisonMushroom.png", 3, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") + label.grid(row=3, column=2) + poisonMushroom3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") + poisonMushroom3.grid(row=3, column=3) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/reverseMushroom.png", 4, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") + label.grid(row=4, column=2) + reverseMushroom3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") + reverseMushroom3.grid(row=4, column=3) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/goldenMushroom.png", 5, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=2) + goldenMushroom3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") + goldenMushroom3.grid(row=5, column=3) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/magicLamp.png", 6, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=2) + magicLamp3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="20") + magicLamp3.grid(row=6, column=3) + + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" ", font=("Arial", 16)) + label.grid(row=1, column=4) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/warpBlock.png", 1, 6) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") + label.grid(row=1, column=7) + warpBlock3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") + warpBlock3.grid(row=1, column=8) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/celluarShopper.png", 2, 6) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16), text_color="red") + label.grid(row=2, column=7) + celluarShopper3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") + celluarShopper3.grid(row=2, column=8) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/bowserPhone.png", 3, 6) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=7) + bowserPhone3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") + bowserPhone3.grid(row=3, column=8) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/duelingGlove.png", 4, 6) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=7) + duelingGlove3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") + duelingGlove3.grid(row=4, column=8) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/luckyLamp.png", 5, 6) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=7) + luckyLamp3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") + luckyLamp3.grid(row=5, column=8) + + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" ", font=("Arial", 16)) + label.grid(row=1, column=9) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/bowserSuit.png", 1, 10) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=1, column=11) + bowserSuit3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="5") + bowserSuit3.grid(row=1, column=12) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/plunderChest.png", 2, 10) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=11) + plunderChest3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") + plunderChest3.grid(row=2, column=12) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/booBell.png", 3, 10) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=11) + booBell3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="15") + booBell3.grid(row=3, column=12) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/booRepellent.png", 4, 10) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=11) + booRepellant3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="10") + booRepellant3.grid(row=4, column=12) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/itemBag3.png", 5, 10) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=11) + itemBag3 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold"), placeholder_text="30") + itemBag3.grid(row=5, column=12) + + parseButtonThree = ctk.CTkButton(master=tabview.tab("Item Mods"), command=lambda: itemsEvent_mp3(mushroom3, skeletonKey3, poisonMushroom3, reverseMushroom3, goldenMushroom3, magicLamp3, warpBlock3, celluarShopper3, bowserPhone3, duelingGlove3, luckyLamp3, bowserSuit3, plunderChest3, booBell3, booRepellant3, itemBag3), text="Generate Codes") + parseButtonThree.place(x=10, y=800) + + warningLabel = ctk.CTkLabel(master=tabview.tab("Item Mods"), text="These are not weights! 0 doesnt mean disabled.", font=("Arial", 16, "bold")) + warningLabel.place(x=5, y=310) + + warningLabel = ctk.CTkLabel(master=tabview.tab("Item Mods"), text="Please set the items in RED the LOWEST PRICE and the SAME PRICE.", font=("Arial", 16, "bold")) + warningLabel.place(x=5, y=280) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 0, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P1 Starts with ", font=("Arial", 16)) + label.grid(row=0, column=1) + p1Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p1Stars.grid(row=0, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=0, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 1, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P2 Starts with ", font=("Arial", 16)) + label.grid(row=1, column=1) + p2Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p2Stars.grid(row=1, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=1, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 2, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P3 Starts with ", font=("Arial", 16)) + label.grid(row=2, column=1) + p3Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p3Stars.grid(row=2, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=2, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 3, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P4 Starts with ", font=("Arial", 16)) + label.grid(row=3, column=1) + p4Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p4Stars.grid(row=3, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=3, column=3) + + parse_stars_button = ctk.CTkButton(master=tabview.tab("Star Handicaps"), command=lambda: handicapEvent_mp3(p1Stars, p2Stars, p3Stars, p4Stars), text="Generate Codes") + parse_stars_button.place(x=10, y=800) + return frame \ No newline at end of file diff --git a/frames/marioParty4_frame.py b/frames/marioParty4_frame.py index 690b159..9b6f435 100644 --- a/frames/marioParty4_frame.py +++ b/frames/marioParty4_frame.py @@ -1,353 +1,353 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 5/12/2024 -# License: MIT -# ============================================ - -# Import necessary functions and modules -from functions import * -from events.marioParty4_coins import * -from events.marioParty4_lotteryPrize import * -from events.marioParty4_mgreplace import * -from events.marioParty4_items import * -from events.marioParty4_initialItems import * -from events.marioParty4_spaceReplace import * - -# Import custom tkinter module as ctk -import customtkinter as ctk - -# Function to create the main interface for Mario Party 1 -def create_mario_party_4_interface(frame): - # Create a tabbed interface - tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) - tabview.grid(padx=10, pady=10) - tabview.add("Coins Mods") - tabview.add("Minigame Replacement") - tabview.add("Item Mods") - tabview.add("Initial Items") - tabview.add("Space Replacement") - tabview.add("Lottery Rewards") - tabview.set("Coins Mods") - - # Function to create an entry field and checkbox - def create_entry(tab, row, icon_path, label_text, color, placerholder): - create_image_icon(tab, icon_path, row, 1) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=2, sticky="w", pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placerholder_text=placerholder) - entry.grid(row=row, column=3) - label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) - label1.grid(row=row, column=4, sticky="w") - return entry - - # Create entry fields and checkboxes for Coins Mods tab - blue_entry = create_entry(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", " Coins on a Blue Space.", "3") - red_entry = create_entry(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", " Coins on a Red Space.", "3") - mgWin_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/miniGame.png", " Gain ", " Coins when winning a Minigame.", "10") - star_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star.", "20") - mega_entry = create_entry(tabview.tab("Coins Mods"), 5, "assets/items/megaMushroom.png", " Gain ", " Coins when squishing a player.", "10") - bowser_entry = create_entry(tabview.tab("Coins Mods"), 6, "assets/items/bowserSuit4.png", " Gain ", " Coins when squishing a player.", "30") - booHouseStar_entry = create_entry(tabview.tab("Coins Mods"), 7, "assets/eventTags/booHouseStars.png", " Costs ", " Coins when stealing a Star.", "50") - booHouseCoins_entry = create_entry(tabview.tab("Coins Mods"), 8, "assets/eventTags/booHouseCoins.png", " Costs ", " Coins when stealing coins.", "5") - booHouseCoinsMin_entry = create_entry(tabview.tab("Coins Mods"), 9, "assets/eventTags/booHouseCoins.png", " Steal ", " Minimum when stealing coins.") - lottery_entry = create_entry(tabview.tab("Coins Mods"), 10, "assets/eventTags/lottery4.png", " Costs ", " Coins to play the Lottery.", "5") - - # Create button to generate coins modification codes - parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp4(blue_entry, red_entry, mgWin_entry, star_entry, mega_entry, booHouseStar_entry, booHouseCoins_entry, lottery_entry, booHouseCoinsMin_entry, bowser_entry), text="Generate Codes") - parse_coins_button.place(x=10, y=800) - - # List of minigame names - minigames_list = ["Manta Rings", "Slime Time", "Booksquirm", "Trace Race", "Mario Medley", "Avalanche!", "Domination", "Paratrooper Plunge", "Toad's Quick Draw", "Three Throw", "Photo Finish", "Mr. Blizzard's Brigade", "Bob-omb Breakers", "Long Claw of the Law", "Stamp Out!", "Candlelight Fright", "Makin' Waves", "Hide and Go BOOM!", "Tree Stomp", "Fish n' Drips", "Hop or Pop", "Money Belts", "GOOOOOOAL!!", "Blame it on the Crane", "The Great Deflate", "Revers-a-Bomb", "Right Oar Left?", "Cliffhangers", "Team Treasure Trek", "Pair-a-sailing", "Order Up", "Dungeon Duos", "Beach Volley Folley", "Cheep Cheep Sweep", "Darts of Doom", "Fruits of Doom", "Balloon of Doom", "Chain Chomp Fever", "Paths of Peril", "Bowser's Bigger Blast", "Butterfly Blitz", "Barrel Baron", "Mario Speedwagons", "Bowser Bop", "Mystic Match 'Em", "Archaeologuess", "Goomba's Chip Flip", "Kareening Koopas", "The Final Battle!", "Rumble Fishing", "Take a Breather", "Bowser Wrestling", "Panels of Doom"] - # Create labels, comboboxes, and button for Minigame Replacement tab - replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) - replace_label.grid(row=0, column=0) - combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_1.grid(row=0, column=1) - with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) - with_label.grid(row=0, column=2) - combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_2.grid(row=0, column=3) - parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp4(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") - parse_minigame_button.place(x=10, y=800) - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/miniMushroom.png", 2, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=2) - miniPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - miniPrice4.grid(row=2, column=3) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=4) - miniWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - miniWeight4.grid(row=2, column=5) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=2, column=6) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/megaMushroom.png", 3, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=2) - megaPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - megaPrice4.grid(row=3, column=3) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=4) - megaWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - megaWeight4.grid(row=3, column=5) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=6) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/superMiniMushroom.png", 4, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=2) - superMiniPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - superMiniPrice4.grid(row=4, column=3) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=4) - superMiniWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - superMiniWeight4.grid(row=4, column=5) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=6) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/superMegaMushroom.png", 5, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=2) - superMegaPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - superMegaPrice4.grid(row=5, column=3) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=4) - superMegaWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - superMegaWeight4.grid(row=5, column=5) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=6) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/miniMegaHammer.png", 6, 1) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=2) - miniMegaHammerPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - miniMegaHammerPrice4.grid(row=6, column=3) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=4) - miniMegaHammerWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - miniMegaHammerWeight4.grid(row=6, column=5) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=6) - - - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text="", font=("Arial", 16)) - label.grid(row=2, column=7) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/sparkySticker.png", 2, 8) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=9) - sparkyStickerPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - sparkyStickerPrice4.grid(row=2, column=10) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=11) - sparkyStickerWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - sparkyStickerWeight4.grid(row=2, column=12) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=2, column=13) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/warpPipe.png", 3, 8) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=9) - warpPipePrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - warpPipePrice4.grid(row=3, column=10) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=11) - warpPipeWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - warpPipeWeight4.grid(row=3, column=12) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=13) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/swapCard.png", 4, 8) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=9) - swapCardPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - swapCardPrice4.grid(row=4, column=10) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=11) - swapCardWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - swapCardWeight4.grid(row=4, column=12) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=13) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/bowserSuit4.png", 5, 8) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=9) - bowserSuitPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - bowserSuitPrice4.grid(row=5, column=10) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=11) - bowserSuitWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - bowserSuitWeight4.grid(row=5, column=12) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=13) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/gaddlight.png", 6, 8) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=9) - gaddlightPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - gaddlightPrice4.grid(row=6, column=10) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=11) - gaddlightWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - gaddlightWeight4.grid(row=6, column=12) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=13) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/magicLamp4.png", 2, 15) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=16) - magicLampPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - magicLampPrice4.grid(row=2, column=17) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=18) - magicLampWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - magicLampWeight4.grid(row=2, column=19) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=2, column=20) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/crystalBall.png", 3, 15) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=16) - crystalBallPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - crystalBallPrice4.grid(row=3, column=17) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=18) - crystalBallWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - crystalBallWeight4.grid(row=3, column=19) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=20) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/chompCall.png", 4, 15) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=16) - chompCallPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - chompCallPrice4.grid(row=4, column=17) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=18) - chompCallWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - chompCallWeight4.grid(row=4, column=19) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=20) - - - icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/itemBag4.png", 5, 15) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=16) - itemBagPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - itemBagPrice4.grid(row=5, column=17) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=18) - itemBagWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) - itemBagWeight4.grid(row=5, column=19) - label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=20) - - parseButtonThree = ctk.CTkButton(master=tabview.tab("Item Mods"), command=lambda: itemsEvent_mp4(miniPrice4, miniWeight4, megaPrice4, megaWeight4, superMiniPrice4, superMiniWeight4, superMegaPrice4, superMegaWeight4, miniMegaHammerPrice4, miniMegaHammerWeight4, sparkyStickerPrice4, sparkyStickerWeight4, warpPipePrice4, warpPipeWeight4, swapCardPrice4, swapCardWeight4, bowserSuitPrice4, bowserSuitWeight4, gaddlightPrice4, gaddlightWeight4, magicLampPrice4, magicLampWeight4, crystalBallPrice4, crystalBallWeight4, chompCallPrice4, chompCallWeight4, itemBagPrice4, itemBagWeight4), text="Generate Codes") - parseButtonThree.place(x=10, y=800) - - parseButtonFour = ctk.CTkButton(master=tabview.tab("Item Mods"), command=lambda: savePresetItems4(miniPrice4, miniWeight4, megaPrice4, megaWeight4, superMiniPrice4, superMiniWeight4, superMegaPrice4, superMegaWeight4, miniMegaHammerPrice4, miniMegaHammerWeight4, sparkyStickerPrice4, sparkyStickerWeight4, warpPipePrice4, warpPipeWeight4, swapCardPrice4, swapCardWeight4, bowserSuitPrice4, bowserSuitWeight4, gaddlightPrice4, gaddlightWeight4, magicLampPrice4, magicLampWeight4, crystalBallPrice4, crystalBallWeight4, chompCallPrice4, chompCallWeight4, itemBagPrice4, itemBagWeight4), text="Save Preset") - parseButtonFour.place(x=160, y=800) - - parseButtonFour = ctk.CTkButton(master=tabview.tab("Item Mods"), command=lambda: loadPresetItems4(miniPrice4, miniWeight4, megaPrice4, megaWeight4, superMiniPrice4, superMiniWeight4, superMegaPrice4, superMegaWeight4, miniMegaHammerPrice4, miniMegaHammerWeight4, sparkyStickerPrice4, sparkyStickerWeight4, warpPipePrice4, warpPipeWeight4, swapCardPrice4, swapCardWeight4, bowserSuitPrice4, bowserSuitWeight4, gaddlightPrice4, gaddlightWeight4, magicLampPrice4, magicLampWeight4, crystalBallPrice4, crystalBallWeight4, chompCallPrice4, chompCallWeight4, itemBagPrice4, itemBagWeight4), text="Load Preset") - parseButtonFour.place(x=310, y=800) - - items4 = ["None", "Mini Mushroom", "Mega Mushroom", "Super Mini Mushroom", "Super Mega Mushroom", "Mini-Mega Hammer", "Warp Pipe", "Swap Card", "Sparky Sticker", "Gaddlight", "Chomp Call", "Bowser Suit", "Boo's Crystal Ball", "Magic Lamp", "Item Bag"] - - label = ctk.CTkLabel(master=tabview.tab("Initial Items"), text=" Item 1: ", font=("Arial", 16)) - label.grid(row=0, column=0) - - initalItem41 = ctk.CTkComboBox(master=tabview.tab("Initial Items"), values=items4) - initalItem41.grid(row=0, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Initial Items"), text=" Item 2: ", font=("Arial", 16)) - label.grid(row=1, column=0) - - initalItem42 = ctk.CTkComboBox(master=tabview.tab("Initial Items"), values=items4) - initalItem42.grid(row=1, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Initial Items"), text=" Item 3: ", font=("Arial", 16)) - label.grid(row=2, column=0) - - initalItem43 = ctk.CTkComboBox(master=tabview.tab("Initial Items"), values=items4) - initalItem43.grid(row=2, column=1) - - parseButton = ctk.CTkButton(master=tabview.tab("Initial Items"), command=lambda: initialItemsEvent_mp4(initalItem41, initalItem42, initalItem43, items4), text="Generate Codes") - parseButton.place(x=10, y=800) - - label = ctk.CTkLabel(master=tabview.tab("Lottery Rewards"), text=" 1st Place Prize (Coins): ", font=("Arial", 16)) - label.grid(row=0, column=0, sticky="w") - - lotteryPrizeA = ctk.CTkEntry(master=tabview.tab("Lottery Rewards"), width=48, font=("Arial", 16, "bold"), placeholder_text="100") - lotteryPrizeA.grid(row=0, column=1, sticky="w") - - label = ctk.CTkLabel(master=tabview.tab("Lottery Rewards"), text=" 2nd Place Prize (Coins): ", font=("Arial", 16)) - label.grid(row=1, column=0, sticky="w") - - lotteryPrizeB = ctk.CTkEntry(master=tabview.tab("Lottery Rewards"), width=48, font=("Arial", 16, "bold"), placeholder_text="30") - lotteryPrizeB.grid(row=1, column=1, sticky="w") - - label = ctk.CTkLabel(master=tabview.tab("Lottery Rewards"), text=" 3rd Place Prize A (Item): ", font=("Arial", 16)) - label.grid(row=2, column=0, sticky="w") - - lotteryPrizeC = ctk.CTkComboBox(master=tabview.tab("Lottery Rewards"), values=items4) - lotteryPrizeC.grid(row=2, column=1, sticky="w") - - label = ctk.CTkLabel(master=tabview.tab("Lottery Rewards"), text=" 3rd Place Prize B (Item): ", font=("Arial", 16)) - label.grid(row=3, column=0, sticky="w") - - lotteryPrizeD = ctk.CTkComboBox(master=tabview.tab("Lottery Rewards"), values=items4) - lotteryPrizeD.grid(row=3, column=1, sticky="w") - - parseButton = ctk.CTkButton(master=tabview.tab("Lottery Rewards"), command=lambda: itemsLotteryEvent_mp4(lotteryPrizeA, lotteryPrizeB, lotteryPrizeC, lotteryPrizeD, items4), text="Generate Codes") - parseButton.place(x=10, y=800) - - spaces4 = ["None", "Invisible Space", "Blue Space", "Red Space", "Bowser Space", "Mushroom Space", "Battle Space", "Happening Space", "Chance Time Space", "Spring Space"] - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) - label.grid(row=0, column=0) - - spaceRep411 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces4) - spaceRep411.grid(row=0, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) - label.grid(row=0, column=2) - - spaceRep421 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces4) - spaceRep421.grid(row=0, column=3) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot A) ", font=("Arial", 16)) - label.grid(row=0, column=4) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) - label.grid(row=1, column=0) - - spaceRep412 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces4) - spaceRep412.grid(row=1, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) - label.grid(row=1, column=2) - - spaceRep422 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces4) - spaceRep422.grid(row=1, column=3) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot B) ", font=("Arial", 16)) - label.grid(row=1, column=4) - - parseButton = ctk.CTkButton(master=tabview.tab("Space Replacement"), command=lambda: spaceReplaceEvent_mp4(spaceRep411, spaceRep421, spaceRep412, spaceRep422, spaces4), text="Generate Codes") - parseButton.place(x=10, y=800) - +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 5/12/2024 +# License: MIT +# ============================================ + +# Import necessary functions and modules +from functions import * +from events.marioParty4_coins import * +from events.marioParty4_lotteryPrize import * +from events.marioParty4_mgreplace import * +from events.marioParty4_items import * +from events.marioParty4_initialItems import * +from events.marioParty4_spaceReplace import * + +# Import custom tkinter module as ctk +import customtkinter as ctk + +# Function to create the main interface for Mario Party 1 +def create_mario_party_4_interface(frame): + # Create a tabbed interface + tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) + tabview.grid(padx=10, pady=10) + tabview.add("Coins Mods") + tabview.add("Minigame Replacement") + tabview.add("Item Mods") + tabview.add("Initial Items") + tabview.add("Space Replacement") + tabview.add("Lottery Rewards") + tabview.set("Coins Mods") + + # Function to create an entry field and checkbox + def create_entry(tab, row, icon_path, label_text, color, placerholder): + create_image_icon(tab, icon_path, row, 1) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=2, sticky="w", pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold"), placerholder_text=placerholder) + entry.grid(row=row, column=3) + label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) + label1.grid(row=row, column=4, sticky="w") + return entry + + # Create entry fields and checkboxes for Coins Mods tab + blue_entry = create_entry(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", " Coins on a Blue Space.", "3") + red_entry = create_entry(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", " Coins on a Red Space.", "3") + mgWin_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/miniGame.png", " Gain ", " Coins when winning a Minigame.", "10") + star_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star.", "20") + mega_entry = create_entry(tabview.tab("Coins Mods"), 5, "assets/items/megaMushroom.png", " Gain ", " Coins when squishing a player.", "10") + bowser_entry = create_entry(tabview.tab("Coins Mods"), 6, "assets/items/bowserSuit4.png", " Gain ", " Coins when squishing a player.", "30") + booHouseStar_entry = create_entry(tabview.tab("Coins Mods"), 7, "assets/eventTags/booHouseStars.png", " Costs ", " Coins when stealing a Star.", "50") + booHouseCoins_entry = create_entry(tabview.tab("Coins Mods"), 8, "assets/eventTags/booHouseCoins.png", " Costs ", " Coins when stealing coins.", "5") + booHouseCoinsMin_entry = create_entry(tabview.tab("Coins Mods"), 9, "assets/eventTags/booHouseCoins.png", " Steal ", " Minimum when stealing coins.") + lottery_entry = create_entry(tabview.tab("Coins Mods"), 10, "assets/eventTags/lottery4.png", " Costs ", " Coins to play the Lottery.", "5") + + # Create button to generate coins modification codes + parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp4(blue_entry, red_entry, mgWin_entry, star_entry, mega_entry, booHouseStar_entry, booHouseCoins_entry, lottery_entry, booHouseCoinsMin_entry, bowser_entry), text="Generate Codes") + parse_coins_button.place(x=10, y=800) + + # List of minigame names + minigames_list = ["Manta Rings", "Slime Time", "Booksquirm", "Trace Race", "Mario Medley", "Avalanche!", "Domination", "Paratrooper Plunge", "Toad's Quick Draw", "Three Throw", "Photo Finish", "Mr. Blizzard's Brigade", "Bob-omb Breakers", "Long Claw of the Law", "Stamp Out!", "Candlelight Fright", "Makin' Waves", "Hide and Go BOOM!", "Tree Stomp", "Fish n' Drips", "Hop or Pop", "Money Belts", "GOOOOOOAL!!", "Blame it on the Crane", "The Great Deflate", "Revers-a-Bomb", "Right Oar Left?", "Cliffhangers", "Team Treasure Trek", "Pair-a-sailing", "Order Up", "Dungeon Duos", "Beach Volley Folley", "Cheep Cheep Sweep", "Darts of Doom", "Fruits of Doom", "Balloon of Doom", "Chain Chomp Fever", "Paths of Peril", "Bowser's Bigger Blast", "Butterfly Blitz", "Barrel Baron", "Mario Speedwagons", "Bowser Bop", "Mystic Match 'Em", "Archaeologuess", "Goomba's Chip Flip", "Kareening Koopas", "The Final Battle!", "Rumble Fishing", "Take a Breather", "Bowser Wrestling", "Panels of Doom"] + # Create labels, comboboxes, and button for Minigame Replacement tab + replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) + replace_label.grid(row=0, column=0) + combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_1.grid(row=0, column=1) + with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) + with_label.grid(row=0, column=2) + combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_2.grid(row=0, column=3) + parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp4(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") + parse_minigame_button.place(x=10, y=800) + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/miniMushroom.png", 2, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=2) + miniPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + miniPrice4.grid(row=2, column=3) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=4) + miniWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + miniWeight4.grid(row=2, column=5) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=2, column=6) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/megaMushroom.png", 3, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=2) + megaPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + megaPrice4.grid(row=3, column=3) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=4) + megaWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + megaWeight4.grid(row=3, column=5) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=6) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/superMiniMushroom.png", 4, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=2) + superMiniPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + superMiniPrice4.grid(row=4, column=3) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=4) + superMiniWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + superMiniWeight4.grid(row=4, column=5) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=6) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/superMegaMushroom.png", 5, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=2) + superMegaPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + superMegaPrice4.grid(row=5, column=3) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=4) + superMegaWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + superMegaWeight4.grid(row=5, column=5) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=6) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/miniMegaHammer.png", 6, 1) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=2) + miniMegaHammerPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + miniMegaHammerPrice4.grid(row=6, column=3) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=4) + miniMegaHammerWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + miniMegaHammerWeight4.grid(row=6, column=5) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=6) + + + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text="", font=("Arial", 16)) + label.grid(row=2, column=7) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/sparkySticker.png", 2, 8) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=9) + sparkyStickerPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + sparkyStickerPrice4.grid(row=2, column=10) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=11) + sparkyStickerWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + sparkyStickerWeight4.grid(row=2, column=12) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=2, column=13) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/warpPipe.png", 3, 8) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=9) + warpPipePrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + warpPipePrice4.grid(row=3, column=10) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=11) + warpPipeWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + warpPipeWeight4.grid(row=3, column=12) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=13) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/swapCard.png", 4, 8) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=9) + swapCardPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + swapCardPrice4.grid(row=4, column=10) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=11) + swapCardWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + swapCardWeight4.grid(row=4, column=12) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=13) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/bowserSuit4.png", 5, 8) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=9) + bowserSuitPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + bowserSuitPrice4.grid(row=5, column=10) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=11) + bowserSuitWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + bowserSuitWeight4.grid(row=5, column=12) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=13) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/gaddlight.png", 6, 8) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=9) + gaddlightPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + gaddlightPrice4.grid(row=6, column=10) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=11) + gaddlightWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + gaddlightWeight4.grid(row=6, column=12) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=13) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/magicLamp4.png", 2, 15) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=16) + magicLampPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + magicLampPrice4.grid(row=2, column=17) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=18) + magicLampWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + magicLampWeight4.grid(row=2, column=19) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=2, column=20) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/crystalBall.png", 3, 15) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=16) + crystalBallPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + crystalBallPrice4.grid(row=3, column=17) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=18) + crystalBallWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + crystalBallWeight4.grid(row=3, column=19) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=20) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/chompCall.png", 4, 15) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=16) + chompCallPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + chompCallPrice4.grid(row=4, column=17) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=18) + chompCallWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + chompCallWeight4.grid(row=4, column=19) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=20) + + + icon = create_image_icon(tabview.tab("Item Mods"), "assets/items/itemBag4.png", 5, 15) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=16) + itemBagPrice4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + itemBagPrice4.grid(row=5, column=17) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=18) + itemBagWeight4 = ctk.CTkEntry(master=tabview.tab("Item Mods"), width=48, font=("Arial", 16, "bold")) + itemBagWeight4.grid(row=5, column=19) + label = ctk.CTkLabel(master=tabview.tab("Item Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=20) + + parseButtonThree = ctk.CTkButton(master=tabview.tab("Item Mods"), command=lambda: itemsEvent_mp4(miniPrice4, miniWeight4, megaPrice4, megaWeight4, superMiniPrice4, superMiniWeight4, superMegaPrice4, superMegaWeight4, miniMegaHammerPrice4, miniMegaHammerWeight4, sparkyStickerPrice4, sparkyStickerWeight4, warpPipePrice4, warpPipeWeight4, swapCardPrice4, swapCardWeight4, bowserSuitPrice4, bowserSuitWeight4, gaddlightPrice4, gaddlightWeight4, magicLampPrice4, magicLampWeight4, crystalBallPrice4, crystalBallWeight4, chompCallPrice4, chompCallWeight4, itemBagPrice4, itemBagWeight4), text="Generate Codes") + parseButtonThree.place(x=10, y=800) + + parseButtonFour = ctk.CTkButton(master=tabview.tab("Item Mods"), command=lambda: savePresetItems4(miniPrice4, miniWeight4, megaPrice4, megaWeight4, superMiniPrice4, superMiniWeight4, superMegaPrice4, superMegaWeight4, miniMegaHammerPrice4, miniMegaHammerWeight4, sparkyStickerPrice4, sparkyStickerWeight4, warpPipePrice4, warpPipeWeight4, swapCardPrice4, swapCardWeight4, bowserSuitPrice4, bowserSuitWeight4, gaddlightPrice4, gaddlightWeight4, magicLampPrice4, magicLampWeight4, crystalBallPrice4, crystalBallWeight4, chompCallPrice4, chompCallWeight4, itemBagPrice4, itemBagWeight4), text="Save Preset") + parseButtonFour.place(x=160, y=800) + + parseButtonFour = ctk.CTkButton(master=tabview.tab("Item Mods"), command=lambda: loadPresetItems4(miniPrice4, miniWeight4, megaPrice4, megaWeight4, superMiniPrice4, superMiniWeight4, superMegaPrice4, superMegaWeight4, miniMegaHammerPrice4, miniMegaHammerWeight4, sparkyStickerPrice4, sparkyStickerWeight4, warpPipePrice4, warpPipeWeight4, swapCardPrice4, swapCardWeight4, bowserSuitPrice4, bowserSuitWeight4, gaddlightPrice4, gaddlightWeight4, magicLampPrice4, magicLampWeight4, crystalBallPrice4, crystalBallWeight4, chompCallPrice4, chompCallWeight4, itemBagPrice4, itemBagWeight4), text="Load Preset") + parseButtonFour.place(x=310, y=800) + + items4 = ["None", "Mini Mushroom", "Mega Mushroom", "Super Mini Mushroom", "Super Mega Mushroom", "Mini-Mega Hammer", "Warp Pipe", "Swap Card", "Sparky Sticker", "Gaddlight", "Chomp Call", "Bowser Suit", "Boo's Crystal Ball", "Magic Lamp", "Item Bag"] + + label = ctk.CTkLabel(master=tabview.tab("Initial Items"), text=" Item 1: ", font=("Arial", 16)) + label.grid(row=0, column=0) + + initalItem41 = ctk.CTkComboBox(master=tabview.tab("Initial Items"), values=items4) + initalItem41.grid(row=0, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Initial Items"), text=" Item 2: ", font=("Arial", 16)) + label.grid(row=1, column=0) + + initalItem42 = ctk.CTkComboBox(master=tabview.tab("Initial Items"), values=items4) + initalItem42.grid(row=1, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Initial Items"), text=" Item 3: ", font=("Arial", 16)) + label.grid(row=2, column=0) + + initalItem43 = ctk.CTkComboBox(master=tabview.tab("Initial Items"), values=items4) + initalItem43.grid(row=2, column=1) + + parseButton = ctk.CTkButton(master=tabview.tab("Initial Items"), command=lambda: initialItemsEvent_mp4(initalItem41, initalItem42, initalItem43, items4), text="Generate Codes") + parseButton.place(x=10, y=800) + + label = ctk.CTkLabel(master=tabview.tab("Lottery Rewards"), text=" 1st Place Prize (Coins): ", font=("Arial", 16)) + label.grid(row=0, column=0, sticky="w") + + lotteryPrizeA = ctk.CTkEntry(master=tabview.tab("Lottery Rewards"), width=48, font=("Arial", 16, "bold"), placeholder_text="100") + lotteryPrizeA.grid(row=0, column=1, sticky="w") + + label = ctk.CTkLabel(master=tabview.tab("Lottery Rewards"), text=" 2nd Place Prize (Coins): ", font=("Arial", 16)) + label.grid(row=1, column=0, sticky="w") + + lotteryPrizeB = ctk.CTkEntry(master=tabview.tab("Lottery Rewards"), width=48, font=("Arial", 16, "bold"), placeholder_text="30") + lotteryPrizeB.grid(row=1, column=1, sticky="w") + + label = ctk.CTkLabel(master=tabview.tab("Lottery Rewards"), text=" 3rd Place Prize A (Item): ", font=("Arial", 16)) + label.grid(row=2, column=0, sticky="w") + + lotteryPrizeC = ctk.CTkComboBox(master=tabview.tab("Lottery Rewards"), values=items4) + lotteryPrizeC.grid(row=2, column=1, sticky="w") + + label = ctk.CTkLabel(master=tabview.tab("Lottery Rewards"), text=" 3rd Place Prize B (Item): ", font=("Arial", 16)) + label.grid(row=3, column=0, sticky="w") + + lotteryPrizeD = ctk.CTkComboBox(master=tabview.tab("Lottery Rewards"), values=items4) + lotteryPrizeD.grid(row=3, column=1, sticky="w") + + parseButton = ctk.CTkButton(master=tabview.tab("Lottery Rewards"), command=lambda: itemsLotteryEvent_mp4(lotteryPrizeA, lotteryPrizeB, lotteryPrizeC, lotteryPrizeD, items4), text="Generate Codes") + parseButton.place(x=10, y=800) + + spaces4 = ["None", "Invisible Space", "Blue Space", "Red Space", "Bowser Space", "Mushroom Space", "Battle Space", "Happening Space", "Chance Time Space", "Spring Space"] + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) + label.grid(row=0, column=0) + + spaceRep411 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces4) + spaceRep411.grid(row=0, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) + label.grid(row=0, column=2) + + spaceRep421 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces4) + spaceRep421.grid(row=0, column=3) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot A) ", font=("Arial", 16)) + label.grid(row=0, column=4) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) + label.grid(row=1, column=0) + + spaceRep412 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces4) + spaceRep412.grid(row=1, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) + label.grid(row=1, column=2) + + spaceRep422 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces4) + spaceRep422.grid(row=1, column=3) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot B) ", font=("Arial", 16)) + label.grid(row=1, column=4) + + parseButton = ctk.CTkButton(master=tabview.tab("Space Replacement"), command=lambda: spaceReplaceEvent_mp4(spaceRep411, spaceRep421, spaceRep412, spaceRep422, spaces4), text="Generate Codes") + parseButton.place(x=10, y=800) + return frame \ No newline at end of file diff --git a/frames/marioParty5_frame.py b/frames/marioParty5_frame.py index 9df74d6..9007d7b 100644 --- a/frames/marioParty5_frame.py +++ b/frames/marioParty5_frame.py @@ -1,507 +1,507 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 7/12/2024 -# License: MIT -# ============================================ - -# Import necessary functions and modules -from functions import * -from events.marioParty5_bonusStarReplace import * -from events.marioParty5_coins import * -from events.marioParty5_mgreplace import * -from events.marioParty5_items import * - -# Import custom tkinter module as ctk -import customtkinter as ctk - -# Function to create the main interface for Mario Party 1 -def create_mario_party_5_interface(frame): - # Create a tabbed interface - tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) - tabview.grid(padx=10, pady=10) - tabview.add("Coins Mods") - tabview.add("Minigame Replacement") - tabview.add("Capsule Mods") - tabview.add("Bonus Star Replacement") - tabview.set("Coins Mods") - - # Function to create an entry field and checkbox - def create_entry(tab, row, icon_path, label_text, color): - create_image_icon(tab, icon_path, row, 1) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=2, sticky="w", pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold")) - entry.grid(row=row, column=3) - label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) - label1.grid(row=row, column=4, sticky="w") - return entry - - # Create entry fields and checkboxes for Coins Mods tab - blue_entry = create_entry(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", " Coins on a Blue Space.") - red_entry = create_entry(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", " Coins on a Red Space.") - mgWin_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/miniGame.png", " Gain ", " Coins when winning a Minigame.") - star_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star at a Star Space.") - koopaBank_entry = create_entry(tabview.tab("Coins Mods"), 5, "assets/items/koopaBankCapsule.png", " Lend ", " Coins to Koopa Bank.") - wiggler_entry = create_entry(tabview.tab("Coins Mods"), 6, "assets/eventTags/wigglerCapsule.png", " Costs ", " Coins to buy a Star with Wiggler.") - chompCost_entry = create_entry(tabview.tab("Coins Mods"), 7, "assets/eventTags/chainChomp.png", " Costs ", " Coins to Steal a Star.") - chompMin_entry = create_entry(tabview.tab("Coins Mods"), 8, "assets/eventTags/chainChomp.png", " Steal ", " Mininum when stealing Coins.") - - # Create button to generate coins modification codes - parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp5(blue_entry, red_entry, mgWin_entry, star_entry, wiggler_entry, chompCost_entry, chompMin_entry, koopaBank_entry), text="Generate Codes") - parse_coins_button.place(x=10, y=800) - - # List of minigame names - minigames_list = ["Coney Island", "Ground Pound Down", "Chimp Chase", "Chomp Romp", "Pushy Penguins", "Leaf Leap", "Night Light Fright", "Pop-Star Piranhas", "Mazed & Confused", "Dinger Derby", "Hydrostars", "Later Skater", "Will Flower", "Triple Jump", "Hotel Goomba", "Coin Cache", "Flatiator", "Squared Away", "Mario Mechs", "Revolving Fire", "Clock Stoppers", "Heat Stroke", "Beam Team", "Vicious Vending", "Big Top Drop", "Defuse or Lose", "ID UFO", "Mario Can-Can", "Handy Hoppers", "Berry Basket", "Bus Buffer", "Rumble Ready", "Submarathon", "Manic Mallets", "Astro-Logical", "Bill Blasters", "Tug-o-Dorrie", "Twist 'n' Out", "Lucky Lineup", "Random Ride", "Shock Absorbers", "Countdown Pound", "Whomp Maze", "Shy Guy Showdown", "Button Mashers", "Get a Rope", "Pump 'n' Jump", "Head Waiter", "Blown Away", "Merry Poppings", "Pound Peril", "Piece Out", "Bound of Music", "Wind Wavers", "Sky Survivor", "Cage-in Cookin'", "Rain of Fire", "Scaldin' Cauldron", "Frightmare", "Flower Shower", "Dodge Bomb", "Fish Upon a Star", "Rumble Fumble", "Quilt for Speed", "Tube It or Lose It", "Mathletes", "Fight Cards", "Banana Punch", "Da Vine Climb", "Mass A-peel", "Panic Pinball", "Banking Coins", "Frozen Frenzy", "Curvy Curbs", "Beach Volleyball", "Fish Sticks", "Ice Hockey"] - # Create labels, comboboxes, and button for Minigame Replacement tab - replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) - replace_label.grid(row=0, column=0) - combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_1.grid(row=0, column=1) - with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) - with_label.grid(row=0, column=2) - combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_2.grid(row=0, column=3) - parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp5(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") - parse_minigame_button.place(x=10, y=800) - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/mushroomCapsule.png", 2, 1) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=2) - mushroomCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - mushroomCapsulePrice5.grid(row=2, column=3) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=4) - mushroomCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - mushroomCapsuleWeight5.grid(row=2, column=5) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=2, column=6) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/goldenMushroomCapsule.png", 3, 1) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=2) - goldenMushroomCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - goldenMushroomCapsulePrice5.grid(row=3, column=3) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=4) - goldenMushroomCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - goldenMushroomCapsuleWeight5.grid(row=3, column=5) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=6) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/cursedMushroomCapsule.png", 4, 1) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=2) - cursedMushroomCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - cursedMushroomCapsulePrice5.grid(row=4, column=3) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=4) - cursedMushroomCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - cursedMushroomCapsuleWeight5.grid(row=4, column=5) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=6) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/warpCapsule.png", 5, 1) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=2) - warpPipeCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - warpPipeCapsulePrice5.grid(row=5, column=3) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=4) - warpPipeCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - warpPipeCapsuleWeight5.grid(row=5, column=5) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=6) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/kleptoCapsule.png", 6, 1) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=2) - kleptoCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - kleptoCapsulePrice5.grid(row=6, column=3) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=4) - kleptoCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - kleptoCapsuleWeight5.grid(row=6, column=5) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=6) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/wigglerCapsule.png", 8, 1) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=8, column=2) - flutterCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - flutterCapsulePrice5.grid(row=8, column=3) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=8, column=4) - flutterCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - flutterCapsuleWeight5.grid(row=8, column=5) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=8, column=6) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/podobooCapsule.png", 9, 1) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=9, column=2) - podobooCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - podobooCapsulePrice5.grid(row=9, column=3) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=9, column=4) - podobooCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - podobooCapsuleWeight5.grid(row=9, column=5) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=9, column=6) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/spinyCapsule.png", 10, 1) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=10, column=2) - spinyCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - spinyCapsulePrice5.grid(row=10, column=3) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=10, column=4) - spinyCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - spinyCapsuleWeight5.grid(row=10, column=5) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=10, column=6) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/coinBlockCapsule.png", 11, 1) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=11, column=2) - coinBlockCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - coinBlockCapsulePrice5.grid(row=11, column=3) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=11, column=4) - coinBlockCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - coinBlockCapsuleWeight5.grid(row=11, column=5) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=11, column=6) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/hammerBroCapsule.png", 12, 1) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=12, column=2) - hammerBroCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - hammerBroCapsulePrice5.grid(row=12, column=3) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=12, column=4) - hammerBroCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - hammerBroCapsuleWeight5.grid(row=12, column=5) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=12, column=6) - - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text="", font=("Arial", 16)) - label.grid(row=2, column=6) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/paraTroopaCapsule.png", 2, 8) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=9) - paraTroopaCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - paraTroopaCapsulePrice5.grid(row=2, column=10) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=11) - paraTroopaCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - paraTroopaCapsuleWeight5.grid(row=2, column=12) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=2, column=13) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/bulletBillCapsule.png", 3, 8) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=9) - bulletBillCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - bulletBillCapsulePrice5.grid(row=3, column=10) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=11) - bulletBillCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - bulletBillCapsuleWeight5.grid(row=3, column=12) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=13) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/blizzardCapsule.png", 4, 8) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=9) - blizzardCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - blizzardCapsulePrice5.grid(row=4, column=10) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=11) - blizzardCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - blizzardCapsuleWeight5.grid(row=4, column=12) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=13) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/kamekCapsule.png", 5, 8) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=9) - kamekCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - kamekCapsulePrice5.grid(row=5, column=10) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=11) - kamekCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - kamekCapsuleWeight5.grid(row=5, column=12) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=13) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/koopaBankCapsule.png", 6, 8) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=9) - koopaBankCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - koopaBankCapsulePrice5.grid(row=6, column=10) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=11) - koopaBankCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - koopaBankCapsuleWeight5.grid(row=6, column=12) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=13) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/goombaCapsule.png", 8, 8) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=8, column=9) - goombaCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - goombaCapsulePrice5.grid(row=8, column=10) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=8, column=11) - goombaCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - goombaCapsuleWeight5.grid(row=8, column=12) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=8, column=13) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/bombCapsule.png", 9, 8) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=9, column=9) - bombCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - bombCapsulePrice5.grid(row=9, column=10) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=9, column=11) - bombCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - bombCapsuleWeight5.grid(row=9, column=12) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=9, column=13) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/tweesterCapsule.png", 10, 8) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=10, column=9) - tweesterCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - tweesterCapsulePrice5.grid(row=10, column=10) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=10, column=11) - tweesterCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - tweesterCapsuleWeight5.grid(row=10, column=12) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=10, column=13) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/lakituCapsule.png", 11, 8) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=11, column=9) - lakituCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - lakituCapsulePrice5.grid(row=11, column=10) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=11, column=11) - lakituCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - lakituCapsuleWeight5.grid(row=11, column=12) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=11, column=13) - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/ukikiCapsule.png", 12, 8) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=12, column=9) - ukikiCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - ukikiCapsulePrice5.grid(row=12, column=10) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=12, column=11) - ukikiCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - ukikiCapsuleWeight5.grid(row=12, column=12) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=12, column=13) - - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text="", font=("Arial", 16)) - label.grid(row=2, column=14) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/miracleCapsule.png", 2, 15) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=16) - miracleCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - miracleCapsulePrice5.grid(row=2, column=17) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=18) - miracleCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - miracleCapsuleWeight5.grid(row=2, column=19) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=2, column=20) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/snackCapsule.png", 3, 15) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=16) - boneCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - boneCapsulePrice5.grid(row=3, column=17) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=18) - boneCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - boneCapsuleWeight5.grid(row=3, column=19) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=20) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/plantCapsule.png", 4, 15) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=16) - plantCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - plantCapsulePrice5.grid(row=4, column=17) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=18) - plantCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - plantCapsuleWeight5.grid(row=4, column=19) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=20) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/chainChompCapsule.png", 5, 15) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=16) - chainChompCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - chainChompCapsulePrice5.grid(row=5, column=17) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=18) - chainChompCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - chainChompCapsuleWeight5.grid(row=5, column=19) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=20) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/chanceCapsule.png", 6, 15) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=16) - chanceCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - chanceCapsulePrice5.grid(row=6, column=17) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=18) - chanceCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - chanceCapsuleWeight5.grid(row=6, column=19) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=20) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/dkCapsule.png", 8, 15) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=8, column=16) - dkCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - dkCapsulePrice5.grid(row=8, column=17) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=8, column=18) - dkCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - dkCapsuleWeight5.grid(row=8, column=19) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=8, column=20) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/bowserCapsule.png", 9, 15) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=9, column=16) - bowserCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - bowserCapsulePrice5.grid(row=9, column=17) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=9, column=18) - bowserCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - bowserCapsuleWeight5.grid(row=9, column=19) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=9, column=20) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/duelCapsule.png", 10, 15) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=10, column=16) - duelCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - duelCapsulePrice5.grid(row=10, column=17) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=10, column=18) - duelCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - duelCapsuleWeight5.grid(row=10, column=19) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=10, column=20) - - - icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/toadyCapsule.png", 11, 15) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=11, column=16) - magiKoopaCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - magiKoopaCapsulePrice5.grid(row=11, column=17) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=11, column=18) - magiKoopaCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) - magiKoopaCapsuleWeight5.grid(row=11, column=19) - label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=11, column=20) - - parseButtonFiveItems = ctk.CTkButton(master=tabview.tab("Capsule Mods"), command=lambda: itemsEvent_mp5(bombCapsulePrice5, bombCapsuleWeight5, koopaBankCapsulePrice5, koopaBankCapsuleWeight5, bulletBillCapsulePrice5, bulletBillCapsuleWeight5, hammerBroCapsulePrice5, hammerBroCapsuleWeight5, coinBlockCapsulePrice5, coinBlockCapsuleWeight5, duelCapsulePrice5, duelCapsuleWeight5, mushroomCapsulePrice5, mushroomCapsuleWeight5, goldenMushroomCapsulePrice5, goldenMushroomCapsuleWeight5, cursedMushroomCapsulePrice5, cursedMushroomCapsuleWeight5, flutterCapsulePrice5, flutterCapsuleWeight5, spinyCapsulePrice5, spinyCapsuleWeight5, goombaCapsuleWeight5, goombaCapsulePrice5, plantCapsulePrice5, plantCapsuleWeight5, kleptoCapsuleWeight5, kleptoCapsulePrice5, kamekCapsuleWeight5, kamekCapsulePrice5, magiKoopaCapsuleWeight5, magiKoopaCapsulePrice5, blizzardCapsuleWeight5, blizzardCapsulePrice5, podobooCapsulePrice5, podobooCapsuleWeight5, paraTroopaCapsuleWeight5, paraTroopaCapsulePrice5, ukikiCapsulePrice5, ukikiCapsuleWeight5, tweesterCapsulePrice5, tweesterCapsuleWeight5, lakituCapsulePrice5, lakituCapsuleWeight5, warpPipeCapsulePrice5, warpPipeCapsuleWeight5, miracleCapsulePrice5, miracleCapsuleWeight5, boneCapsulePrice5, boneCapsuleWeight5, chanceCapsulePrice5, chanceCapsuleWeight5, chainChompCapsulePrice5, chainChompCapsuleWeight5, bowserCapsulePrice5, bowserCapsuleWeight5, dkCapsulePrice5, dkCapsuleWeight5), text="Generate Codes", ) - parseButtonFiveItems.place(x=10, y=800) - - parseButtonFive = ctk.CTkButton(master=tabview.tab("Capsule Mods"), command=lambda: savePresetItems5(bombCapsulePrice5, bombCapsuleWeight5, koopaBankCapsulePrice5, koopaBankCapsuleWeight5, bulletBillCapsulePrice5, bulletBillCapsuleWeight5, hammerBroCapsulePrice5, hammerBroCapsuleWeight5, coinBlockCapsulePrice5, coinBlockCapsuleWeight5, duelCapsulePrice5, duelCapsuleWeight5, mushroomCapsulePrice5, mushroomCapsuleWeight5, goldenMushroomCapsulePrice5, goldenMushroomCapsuleWeight5, cursedMushroomCapsulePrice5, cursedMushroomCapsuleWeight5, flutterCapsulePrice5, flutterCapsuleWeight5, spinyCapsulePrice5, spinyCapsuleWeight5, goombaCapsuleWeight5, goombaCapsulePrice5, plantCapsulePrice5, plantCapsuleWeight5, kleptoCapsuleWeight5, kleptoCapsulePrice5, kamekCapsuleWeight5, kamekCapsulePrice5, magiKoopaCapsuleWeight5, magiKoopaCapsulePrice5, blizzardCapsuleWeight5, blizzardCapsulePrice5, podobooCapsulePrice5, podobooCapsuleWeight5, paraTroopaCapsuleWeight5, paraTroopaCapsulePrice5, ukikiCapsulePrice5, ukikiCapsuleWeight5, tweesterCapsulePrice5, tweesterCapsuleWeight5, lakituCapsulePrice5, lakituCapsuleWeight5, warpPipeCapsulePrice5, warpPipeCapsuleWeight5, miracleCapsulePrice5, miracleCapsuleWeight5, boneCapsulePrice5, boneCapsuleWeight5, chanceCapsulePrice5, chanceCapsuleWeight5, chainChompCapsulePrice5, chainChompCapsuleWeight5, bowserCapsulePrice5, bowserCapsuleWeight5, dkCapsulePrice5, dkCapsuleWeight5), text="Save Preset", ) - parseButtonFive.place(x=160, y=800) - - parseButtonFive = ctk.CTkButton(master=tabview.tab("Capsule Mods"), command=lambda: loadPresetItems5(bombCapsulePrice5, bombCapsuleWeight5, koopaBankCapsulePrice5, koopaBankCapsuleWeight5, bulletBillCapsulePrice5, bulletBillCapsuleWeight5, hammerBroCapsulePrice5, hammerBroCapsuleWeight5, coinBlockCapsulePrice5, coinBlockCapsuleWeight5, duelCapsulePrice5, duelCapsuleWeight5, mushroomCapsulePrice5, mushroomCapsuleWeight5, goldenMushroomCapsulePrice5, goldenMushroomCapsuleWeight5, cursedMushroomCapsulePrice5, cursedMushroomCapsuleWeight5, flutterCapsulePrice5, flutterCapsuleWeight5, spinyCapsulePrice5, spinyCapsuleWeight5, goombaCapsuleWeight5, goombaCapsulePrice5, plantCapsulePrice5, plantCapsuleWeight5, kleptoCapsuleWeight5, kleptoCapsulePrice5, kamekCapsuleWeight5, kamekCapsulePrice5, magiKoopaCapsuleWeight5, magiKoopaCapsulePrice5, blizzardCapsuleWeight5, blizzardCapsulePrice5, podobooCapsulePrice5, podobooCapsuleWeight5, paraTroopaCapsuleWeight5, paraTroopaCapsulePrice5, ukikiCapsulePrice5, ukikiCapsuleWeight5, tweesterCapsulePrice5, tweesterCapsuleWeight5, lakituCapsulePrice5, lakituCapsuleWeight5, warpPipeCapsulePrice5, warpPipeCapsuleWeight5, miracleCapsulePrice5, miracleCapsuleWeight5, boneCapsulePrice5, boneCapsuleWeight5, chanceCapsulePrice5, chanceCapsuleWeight5, chainChompCapsulePrice5, chainChompCapsuleWeight5, bowserCapsulePrice5, bowserCapsuleWeight5, dkCapsulePrice5, dkCapsuleWeight5), text="Load Preset", ) - parseButtonFive.place(x=310, y=800) - - parseButtonFiveFillViaCode = ctk.CTkButton(master=tabview.tab("Capsule Mods"), command=lambda: fillViaCode5Actions(), text="Fill Via Code") - parseButtonFiveFillViaCode.place(x=460, y=800) - - def fillViaCode5Actions(): - top = ctk.CTkToplevel(height=500, width=500) - top.attributes('-topmost', True) - top.title("Enter Code") - - enterCodeLabel = ctk.CTkLabel(master=top, text="Enter Code") - enterCodeLabel.place(x=10, y=10) - - codeText = ctk.CTkTextbox(master=top, width=200, height=400) - codeText.place(x=10, y=65) - - submitButton = ctk.CTkButton(master=top, command=lambda: fillViaCode5(top, codeText, bombCapsulePrice5, bombCapsuleWeight5, koopaBankCapsulePrice5, koopaBankCapsuleWeight5, bulletBillCapsulePrice5, bulletBillCapsuleWeight5, hammerBroCapsulePrice5, hammerBroCapsuleWeight5, coinBlockCapsulePrice5, coinBlockCapsuleWeight5, duelCapsulePrice5, duelCapsuleWeight5, mushroomCapsulePrice5, mushroomCapsuleWeight5, goldenMushroomCapsulePrice5, goldenMushroomCapsuleWeight5, cursedMushroomCapsulePrice5, cursedMushroomCapsuleWeight5, flutterCapsulePrice5, flutterCapsuleWeight5, spinyCapsulePrice5, spinyCapsuleWeight5, goombaCapsuleWeight5, goombaCapsulePrice5, plantCapsulePrice5, plantCapsuleWeight5, kleptoCapsuleWeight5, kleptoCapsulePrice5, kamekCapsuleWeight5, kamekCapsulePrice5, magiKoopaCapsuleWeight5, magiKoopaCapsulePrice5, blizzardCapsuleWeight5, blizzardCapsulePrice5, podobooCapsulePrice5, podobooCapsuleWeight5, paraTroopaCapsuleWeight5, paraTroopaCapsulePrice5, ukikiCapsulePrice5, ukikiCapsuleWeight5, tweesterCapsulePrice5, tweesterCapsuleWeight5, lakituCapsulePrice5, lakituCapsuleWeight5, warpPipeCapsulePrice5, warpPipeCapsuleWeight5, miracleCapsulePrice5, miracleCapsuleWeight5, boneCapsulePrice5, boneCapsuleWeight5, chanceCapsulePrice5, chanceCapsuleWeight5, chainChompCapsulePrice5, chainChompCapsuleWeight5, bowserCapsulePrice5, bowserCapsuleWeight5, dkCapsulePrice5, dkCapsuleWeight5), text="Submit") - submitButton.place(x=250, y=425) - - stars6 = ["None", "Blue Star", "Red Star", "Capsule Space Star", "Happening Star", "Bowser Star", "Donkey Kong Star", "Current Coins Star", "Minigame Star", "Coin Star", "Star Star"] - - label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Minigame Star with: ", font=("Arial", 16)) - label.grid(row=0, column=0, sticky="w") - - star1 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) - star1.grid(row=0, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Coin Star with: ", font=("Arial", 16)) - label.grid(row=1, column=0, sticky="w") - - star2 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) - star2.grid(row=1, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Happening Star with: ", font=("Arial", 16)) - label.grid(row=2, column=0, sticky="w") - - star3 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) - star3.grid(row=2, column=1) - - #checkbox1 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) - #checkbox1.grid(row=0, column=2, padx=10, pady=10) - - #checkbox2 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) - #checkbox2.grid(row=1, column=2, padx=10, pady=10) - - #checkbox3 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) - #checkbox3.grid(row=2, column=2, padx=10, pady=10) - - parseButton = ctk.CTkButton(master=tabview.tab("Bonus Star Replacement"), command=lambda: customBonusStarEvent_mp5(star1, star2, star3, stars6), text="Generate Codes") - parseButton.place(x=10, y=800) - +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 7/12/2024 +# License: MIT +# ============================================ + +# Import necessary functions and modules +from functions import * +from events.marioParty5_bonusStarReplace import * +from events.marioParty5_coins import * +from events.marioParty5_mgreplace import * +from events.marioParty5_items import * + +# Import custom tkinter module as ctk +import customtkinter as ctk + +# Function to create the main interface for Mario Party 1 +def create_mario_party_5_interface(frame): + # Create a tabbed interface + tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) + tabview.grid(padx=10, pady=10) + tabview.add("Coins Mods") + tabview.add("Minigame Replacement") + tabview.add("Capsule Mods") + tabview.add("Bonus Star Replacement") + tabview.set("Coins Mods") + + # Function to create an entry field and checkbox + def create_entry(tab, row, icon_path, label_text, color): + create_image_icon(tab, icon_path, row, 1) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=2, sticky="w", pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold")) + entry.grid(row=row, column=3) + label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) + label1.grid(row=row, column=4, sticky="w") + return entry + + # Create entry fields and checkboxes for Coins Mods tab + blue_entry = create_entry(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", " Coins on a Blue Space.") + red_entry = create_entry(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", " Coins on a Red Space.") + mgWin_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/miniGame.png", " Gain ", " Coins when winning a Minigame.") + star_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star at a Star Space.") + koopaBank_entry = create_entry(tabview.tab("Coins Mods"), 5, "assets/items/koopaBankCapsule.png", " Lend ", " Coins to Koopa Bank.") + wiggler_entry = create_entry(tabview.tab("Coins Mods"), 6, "assets/eventTags/wigglerCapsule.png", " Costs ", " Coins to buy a Star with Wiggler.") + chompCost_entry = create_entry(tabview.tab("Coins Mods"), 7, "assets/eventTags/chainChomp.png", " Costs ", " Coins to Steal a Star.") + chompMin_entry = create_entry(tabview.tab("Coins Mods"), 8, "assets/eventTags/chainChomp.png", " Steal ", " Mininum when stealing Coins.") + + # Create button to generate coins modification codes + parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp5(blue_entry, red_entry, mgWin_entry, star_entry, wiggler_entry, chompCost_entry, chompMin_entry, koopaBank_entry), text="Generate Codes") + parse_coins_button.place(x=10, y=800) + + # List of minigame names + minigames_list = ["Coney Island", "Ground Pound Down", "Chimp Chase", "Chomp Romp", "Pushy Penguins", "Leaf Leap", "Night Light Fright", "Pop-Star Piranhas", "Mazed & Confused", "Dinger Derby", "Hydrostars", "Later Skater", "Will Flower", "Triple Jump", "Hotel Goomba", "Coin Cache", "Flatiator", "Squared Away", "Mario Mechs", "Revolving Fire", "Clock Stoppers", "Heat Stroke", "Beam Team", "Vicious Vending", "Big Top Drop", "Defuse or Lose", "ID UFO", "Mario Can-Can", "Handy Hoppers", "Berry Basket", "Bus Buffer", "Rumble Ready", "Submarathon", "Manic Mallets", "Astro-Logical", "Bill Blasters", "Tug-o-Dorrie", "Twist 'n' Out", "Lucky Lineup", "Random Ride", "Shock Absorbers", "Countdown Pound", "Whomp Maze", "Shy Guy Showdown", "Button Mashers", "Get a Rope", "Pump 'n' Jump", "Head Waiter", "Blown Away", "Merry Poppings", "Pound Peril", "Piece Out", "Bound of Music", "Wind Wavers", "Sky Survivor", "Cage-in Cookin'", "Rain of Fire", "Scaldin' Cauldron", "Frightmare", "Flower Shower", "Dodge Bomb", "Fish Upon a Star", "Rumble Fumble", "Quilt for Speed", "Tube It or Lose It", "Mathletes", "Fight Cards", "Banana Punch", "Da Vine Climb", "Mass A-peel", "Panic Pinball", "Banking Coins", "Frozen Frenzy", "Curvy Curbs", "Beach Volleyball", "Fish Sticks", "Ice Hockey"] + # Create labels, comboboxes, and button for Minigame Replacement tab + replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) + replace_label.grid(row=0, column=0) + combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_1.grid(row=0, column=1) + with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) + with_label.grid(row=0, column=2) + combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_2.grid(row=0, column=3) + parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp5(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") + parse_minigame_button.place(x=10, y=800) + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/mushroomCapsule.png", 2, 1) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=2) + mushroomCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + mushroomCapsulePrice5.grid(row=2, column=3) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=4) + mushroomCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + mushroomCapsuleWeight5.grid(row=2, column=5) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=2, column=6) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/goldenMushroomCapsule.png", 3, 1) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=2) + goldenMushroomCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + goldenMushroomCapsulePrice5.grid(row=3, column=3) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=4) + goldenMushroomCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + goldenMushroomCapsuleWeight5.grid(row=3, column=5) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=6) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/cursedMushroomCapsule.png", 4, 1) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=2) + cursedMushroomCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + cursedMushroomCapsulePrice5.grid(row=4, column=3) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=4) + cursedMushroomCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + cursedMushroomCapsuleWeight5.grid(row=4, column=5) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=6) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/warpCapsule.png", 5, 1) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=2) + warpPipeCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + warpPipeCapsulePrice5.grid(row=5, column=3) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=4) + warpPipeCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + warpPipeCapsuleWeight5.grid(row=5, column=5) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=6) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/kleptoCapsule.png", 6, 1) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=2) + kleptoCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + kleptoCapsulePrice5.grid(row=6, column=3) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=4) + kleptoCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + kleptoCapsuleWeight5.grid(row=6, column=5) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=6) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/wigglerCapsule.png", 8, 1) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=8, column=2) + flutterCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + flutterCapsulePrice5.grid(row=8, column=3) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=8, column=4) + flutterCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + flutterCapsuleWeight5.grid(row=8, column=5) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=8, column=6) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/podobooCapsule.png", 9, 1) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=9, column=2) + podobooCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + podobooCapsulePrice5.grid(row=9, column=3) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=9, column=4) + podobooCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + podobooCapsuleWeight5.grid(row=9, column=5) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=9, column=6) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/spinyCapsule.png", 10, 1) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=10, column=2) + spinyCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + spinyCapsulePrice5.grid(row=10, column=3) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=10, column=4) + spinyCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + spinyCapsuleWeight5.grid(row=10, column=5) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=10, column=6) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/coinBlockCapsule.png", 11, 1) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=11, column=2) + coinBlockCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + coinBlockCapsulePrice5.grid(row=11, column=3) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=11, column=4) + coinBlockCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + coinBlockCapsuleWeight5.grid(row=11, column=5) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=11, column=6) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/hammerBroCapsule.png", 12, 1) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=12, column=2) + hammerBroCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + hammerBroCapsulePrice5.grid(row=12, column=3) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=12, column=4) + hammerBroCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + hammerBroCapsuleWeight5.grid(row=12, column=5) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=12, column=6) + + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text="", font=("Arial", 16)) + label.grid(row=2, column=6) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/paraTroopaCapsule.png", 2, 8) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=9) + paraTroopaCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + paraTroopaCapsulePrice5.grid(row=2, column=10) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=11) + paraTroopaCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + paraTroopaCapsuleWeight5.grid(row=2, column=12) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=2, column=13) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/bulletBillCapsule.png", 3, 8) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=9) + bulletBillCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + bulletBillCapsulePrice5.grid(row=3, column=10) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=11) + bulletBillCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + bulletBillCapsuleWeight5.grid(row=3, column=12) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=13) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/blizzardCapsule.png", 4, 8) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=9) + blizzardCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + blizzardCapsulePrice5.grid(row=4, column=10) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=11) + blizzardCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + blizzardCapsuleWeight5.grid(row=4, column=12) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=13) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/kamekCapsule.png", 5, 8) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=9) + kamekCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + kamekCapsulePrice5.grid(row=5, column=10) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=11) + kamekCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + kamekCapsuleWeight5.grid(row=5, column=12) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=13) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/koopaBankCapsule.png", 6, 8) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=9) + koopaBankCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + koopaBankCapsulePrice5.grid(row=6, column=10) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=11) + koopaBankCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + koopaBankCapsuleWeight5.grid(row=6, column=12) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=13) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/goombaCapsule.png", 8, 8) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=8, column=9) + goombaCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + goombaCapsulePrice5.grid(row=8, column=10) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=8, column=11) + goombaCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + goombaCapsuleWeight5.grid(row=8, column=12) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=8, column=13) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/bombCapsule.png", 9, 8) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=9, column=9) + bombCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + bombCapsulePrice5.grid(row=9, column=10) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=9, column=11) + bombCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + bombCapsuleWeight5.grid(row=9, column=12) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=9, column=13) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/tweesterCapsule.png", 10, 8) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=10, column=9) + tweesterCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + tweesterCapsulePrice5.grid(row=10, column=10) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=10, column=11) + tweesterCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + tweesterCapsuleWeight5.grid(row=10, column=12) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=10, column=13) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/lakituCapsule.png", 11, 8) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=11, column=9) + lakituCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + lakituCapsulePrice5.grid(row=11, column=10) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=11, column=11) + lakituCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + lakituCapsuleWeight5.grid(row=11, column=12) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=11, column=13) + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/ukikiCapsule.png", 12, 8) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=12, column=9) + ukikiCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + ukikiCapsulePrice5.grid(row=12, column=10) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=12, column=11) + ukikiCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + ukikiCapsuleWeight5.grid(row=12, column=12) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=12, column=13) + + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text="", font=("Arial", 16)) + label.grid(row=2, column=14) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/miracleCapsule.png", 2, 15) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=16) + miracleCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + miracleCapsulePrice5.grid(row=2, column=17) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=18) + miracleCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + miracleCapsuleWeight5.grid(row=2, column=19) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=2, column=20) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/snackCapsule.png", 3, 15) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=16) + boneCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + boneCapsulePrice5.grid(row=3, column=17) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=18) + boneCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + boneCapsuleWeight5.grid(row=3, column=19) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=20) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/plantCapsule.png", 4, 15) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=16) + plantCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + plantCapsulePrice5.grid(row=4, column=17) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=18) + plantCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + plantCapsuleWeight5.grid(row=4, column=19) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=20) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/chainChompCapsule.png", 5, 15) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=16) + chainChompCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + chainChompCapsulePrice5.grid(row=5, column=17) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=18) + chainChompCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + chainChompCapsuleWeight5.grid(row=5, column=19) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=20) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/chanceCapsule.png", 6, 15) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=16) + chanceCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + chanceCapsulePrice5.grid(row=6, column=17) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=18) + chanceCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + chanceCapsuleWeight5.grid(row=6, column=19) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=20) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/dkCapsule.png", 8, 15) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=8, column=16) + dkCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + dkCapsulePrice5.grid(row=8, column=17) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=8, column=18) + dkCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + dkCapsuleWeight5.grid(row=8, column=19) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=8, column=20) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/bowserCapsule.png", 9, 15) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=9, column=16) + bowserCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + bowserCapsulePrice5.grid(row=9, column=17) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=9, column=18) + bowserCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + bowserCapsuleWeight5.grid(row=9, column=19) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=9, column=20) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/duelCapsule.png", 10, 15) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=10, column=16) + duelCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + duelCapsulePrice5.grid(row=10, column=17) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=10, column=18) + duelCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + duelCapsuleWeight5.grid(row=10, column=19) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=10, column=20) + + + icon = create_image_icon(tabview.tab("Capsule Mods"), "assets/items/toadyCapsule.png", 11, 15) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=11, column=16) + magiKoopaCapsulePrice5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + magiKoopaCapsulePrice5.grid(row=11, column=17) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=11, column=18) + magiKoopaCapsuleWeight5 = ctk.CTkEntry(master=tabview.tab("Capsule Mods"), width=48, font=("Arial", 16, "bold")) + magiKoopaCapsuleWeight5.grid(row=11, column=19) + label = ctk.CTkLabel(master=tabview.tab("Capsule Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=11, column=20) + + parseButtonFiveItems = ctk.CTkButton(master=tabview.tab("Capsule Mods"), command=lambda: itemsEvent_mp5(bombCapsulePrice5, bombCapsuleWeight5, koopaBankCapsulePrice5, koopaBankCapsuleWeight5, bulletBillCapsulePrice5, bulletBillCapsuleWeight5, hammerBroCapsulePrice5, hammerBroCapsuleWeight5, coinBlockCapsulePrice5, coinBlockCapsuleWeight5, duelCapsulePrice5, duelCapsuleWeight5, mushroomCapsulePrice5, mushroomCapsuleWeight5, goldenMushroomCapsulePrice5, goldenMushroomCapsuleWeight5, cursedMushroomCapsulePrice5, cursedMushroomCapsuleWeight5, flutterCapsulePrice5, flutterCapsuleWeight5, spinyCapsulePrice5, spinyCapsuleWeight5, goombaCapsuleWeight5, goombaCapsulePrice5, plantCapsulePrice5, plantCapsuleWeight5, kleptoCapsuleWeight5, kleptoCapsulePrice5, kamekCapsuleWeight5, kamekCapsulePrice5, magiKoopaCapsuleWeight5, magiKoopaCapsulePrice5, blizzardCapsuleWeight5, blizzardCapsulePrice5, podobooCapsulePrice5, podobooCapsuleWeight5, paraTroopaCapsuleWeight5, paraTroopaCapsulePrice5, ukikiCapsulePrice5, ukikiCapsuleWeight5, tweesterCapsulePrice5, tweesterCapsuleWeight5, lakituCapsulePrice5, lakituCapsuleWeight5, warpPipeCapsulePrice5, warpPipeCapsuleWeight5, miracleCapsulePrice5, miracleCapsuleWeight5, boneCapsulePrice5, boneCapsuleWeight5, chanceCapsulePrice5, chanceCapsuleWeight5, chainChompCapsulePrice5, chainChompCapsuleWeight5, bowserCapsulePrice5, bowserCapsuleWeight5, dkCapsulePrice5, dkCapsuleWeight5), text="Generate Codes", ) + parseButtonFiveItems.place(x=10, y=800) + + parseButtonFive = ctk.CTkButton(master=tabview.tab("Capsule Mods"), command=lambda: savePresetItems5(bombCapsulePrice5, bombCapsuleWeight5, koopaBankCapsulePrice5, koopaBankCapsuleWeight5, bulletBillCapsulePrice5, bulletBillCapsuleWeight5, hammerBroCapsulePrice5, hammerBroCapsuleWeight5, coinBlockCapsulePrice5, coinBlockCapsuleWeight5, duelCapsulePrice5, duelCapsuleWeight5, mushroomCapsulePrice5, mushroomCapsuleWeight5, goldenMushroomCapsulePrice5, goldenMushroomCapsuleWeight5, cursedMushroomCapsulePrice5, cursedMushroomCapsuleWeight5, flutterCapsulePrice5, flutterCapsuleWeight5, spinyCapsulePrice5, spinyCapsuleWeight5, goombaCapsuleWeight5, goombaCapsulePrice5, plantCapsulePrice5, plantCapsuleWeight5, kleptoCapsuleWeight5, kleptoCapsulePrice5, kamekCapsuleWeight5, kamekCapsulePrice5, magiKoopaCapsuleWeight5, magiKoopaCapsulePrice5, blizzardCapsuleWeight5, blizzardCapsulePrice5, podobooCapsulePrice5, podobooCapsuleWeight5, paraTroopaCapsuleWeight5, paraTroopaCapsulePrice5, ukikiCapsulePrice5, ukikiCapsuleWeight5, tweesterCapsulePrice5, tweesterCapsuleWeight5, lakituCapsulePrice5, lakituCapsuleWeight5, warpPipeCapsulePrice5, warpPipeCapsuleWeight5, miracleCapsulePrice5, miracleCapsuleWeight5, boneCapsulePrice5, boneCapsuleWeight5, chanceCapsulePrice5, chanceCapsuleWeight5, chainChompCapsulePrice5, chainChompCapsuleWeight5, bowserCapsulePrice5, bowserCapsuleWeight5, dkCapsulePrice5, dkCapsuleWeight5), text="Save Preset", ) + parseButtonFive.place(x=160, y=800) + + parseButtonFive = ctk.CTkButton(master=tabview.tab("Capsule Mods"), command=lambda: loadPresetItems5(bombCapsulePrice5, bombCapsuleWeight5, koopaBankCapsulePrice5, koopaBankCapsuleWeight5, bulletBillCapsulePrice5, bulletBillCapsuleWeight5, hammerBroCapsulePrice5, hammerBroCapsuleWeight5, coinBlockCapsulePrice5, coinBlockCapsuleWeight5, duelCapsulePrice5, duelCapsuleWeight5, mushroomCapsulePrice5, mushroomCapsuleWeight5, goldenMushroomCapsulePrice5, goldenMushroomCapsuleWeight5, cursedMushroomCapsulePrice5, cursedMushroomCapsuleWeight5, flutterCapsulePrice5, flutterCapsuleWeight5, spinyCapsulePrice5, spinyCapsuleWeight5, goombaCapsuleWeight5, goombaCapsulePrice5, plantCapsulePrice5, plantCapsuleWeight5, kleptoCapsuleWeight5, kleptoCapsulePrice5, kamekCapsuleWeight5, kamekCapsulePrice5, magiKoopaCapsuleWeight5, magiKoopaCapsulePrice5, blizzardCapsuleWeight5, blizzardCapsulePrice5, podobooCapsulePrice5, podobooCapsuleWeight5, paraTroopaCapsuleWeight5, paraTroopaCapsulePrice5, ukikiCapsulePrice5, ukikiCapsuleWeight5, tweesterCapsulePrice5, tweesterCapsuleWeight5, lakituCapsulePrice5, lakituCapsuleWeight5, warpPipeCapsulePrice5, warpPipeCapsuleWeight5, miracleCapsulePrice5, miracleCapsuleWeight5, boneCapsulePrice5, boneCapsuleWeight5, chanceCapsulePrice5, chanceCapsuleWeight5, chainChompCapsulePrice5, chainChompCapsuleWeight5, bowserCapsulePrice5, bowserCapsuleWeight5, dkCapsulePrice5, dkCapsuleWeight5), text="Load Preset", ) + parseButtonFive.place(x=310, y=800) + + parseButtonFiveFillViaCode = ctk.CTkButton(master=tabview.tab("Capsule Mods"), command=lambda: fillViaCode5Actions(), text="Fill Via Code") + parseButtonFiveFillViaCode.place(x=460, y=800) + + def fillViaCode5Actions(): + top = ctk.CTkToplevel(height=500, width=500) + top.attributes('-topmost', True) + top.title("Enter Code") + + enterCodeLabel = ctk.CTkLabel(master=top, text="Enter Code") + enterCodeLabel.place(x=10, y=10) + + codeText = ctk.CTkTextbox(master=top, width=200, height=400) + codeText.place(x=10, y=65) + + submitButton = ctk.CTkButton(master=top, command=lambda: fillViaCode5(top, codeText, bombCapsulePrice5, bombCapsuleWeight5, koopaBankCapsulePrice5, koopaBankCapsuleWeight5, bulletBillCapsulePrice5, bulletBillCapsuleWeight5, hammerBroCapsulePrice5, hammerBroCapsuleWeight5, coinBlockCapsulePrice5, coinBlockCapsuleWeight5, duelCapsulePrice5, duelCapsuleWeight5, mushroomCapsulePrice5, mushroomCapsuleWeight5, goldenMushroomCapsulePrice5, goldenMushroomCapsuleWeight5, cursedMushroomCapsulePrice5, cursedMushroomCapsuleWeight5, flutterCapsulePrice5, flutterCapsuleWeight5, spinyCapsulePrice5, spinyCapsuleWeight5, goombaCapsuleWeight5, goombaCapsulePrice5, plantCapsulePrice5, plantCapsuleWeight5, kleptoCapsuleWeight5, kleptoCapsulePrice5, kamekCapsuleWeight5, kamekCapsulePrice5, magiKoopaCapsuleWeight5, magiKoopaCapsulePrice5, blizzardCapsuleWeight5, blizzardCapsulePrice5, podobooCapsulePrice5, podobooCapsuleWeight5, paraTroopaCapsuleWeight5, paraTroopaCapsulePrice5, ukikiCapsulePrice5, ukikiCapsuleWeight5, tweesterCapsulePrice5, tweesterCapsuleWeight5, lakituCapsulePrice5, lakituCapsuleWeight5, warpPipeCapsulePrice5, warpPipeCapsuleWeight5, miracleCapsulePrice5, miracleCapsuleWeight5, boneCapsulePrice5, boneCapsuleWeight5, chanceCapsulePrice5, chanceCapsuleWeight5, chainChompCapsulePrice5, chainChompCapsuleWeight5, bowserCapsulePrice5, bowserCapsuleWeight5, dkCapsulePrice5, dkCapsuleWeight5), text="Submit") + submitButton.place(x=250, y=425) + + stars6 = ["None", "Blue Star", "Red Star", "Capsule Space Star", "Happening Star", "Bowser Star", "Donkey Kong Star", "Current Coins Star", "Minigame Star", "Coin Star", "Star Star"] + + label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Minigame Star with: ", font=("Arial", 16)) + label.grid(row=0, column=0, sticky="w") + + star1 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) + star1.grid(row=0, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Coin Star with: ", font=("Arial", 16)) + label.grid(row=1, column=0, sticky="w") + + star2 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) + star2.grid(row=1, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Happening Star with: ", font=("Arial", 16)) + label.grid(row=2, column=0, sticky="w") + + star3 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) + star3.grid(row=2, column=1) + + #checkbox1 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) + #checkbox1.grid(row=0, column=2, padx=10, pady=10) + + #checkbox2 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) + #checkbox2.grid(row=1, column=2, padx=10, pady=10) + + #checkbox3 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) + #checkbox3.grid(row=2, column=2, padx=10, pady=10) + + parseButton = ctk.CTkButton(master=tabview.tab("Bonus Star Replacement"), command=lambda: customBonusStarEvent_mp5(star1, star2, star3, stars6), text="Generate Codes") + parseButton.place(x=10, y=800) + return frame \ No newline at end of file diff --git a/frames/marioParty6_frame.py b/frames/marioParty6_frame.py index 0ecbac8..bd44f49 100644 --- a/frames/marioParty6_frame.py +++ b/frames/marioParty6_frame.py @@ -1,596 +1,596 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 5/12/2024 -# License: MIT -# ============================================ - -# Import necessary functions and modules -from functions import * -from events.marioParty6_bonusStarReplace import * -from events.marioParty6_coins import * -from events.marioParty6_initialItems import * -from events.marioParty6_mgreplace import * -from events.marioParty6_items import * -from events.marioParty6_handicap import * -from events.marioParty6_spaceReplace import * - -# Import custom tkinter module as ctk -import customtkinter as ctk -from CTkToolTip import * - -# Function to create the main interface for Mario Party 1 -def create_mario_party_6_interface(frame): - # Create a tabbed interface - tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) - tabview.grid(padx=10, pady=10) - tabview.add("Coins Mods") - tabview.add("Minigame Replacement") - tabview.add("Orb Mods") - tabview.add("Space Replacement") - tabview.add("Initial Orbs") - tabview.add("Star Handicaps") - tabview.add("Bonus Star Replacement") - tabview.set("Coins Mods") - - # Function to create an entry field and checkbox - def create_entry(tab, row, icon_path, label_text, color): - create_image_icon(tab, icon_path, row, 1) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=2, sticky="w", pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold")) - entry.grid(row=row, column=3) - label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) - label1.grid(row=row, column=4, sticky="w") - return entry - - # Create entry fields and checkboxes for Coins Mods tab - blue_entry = create_entry(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", " Coins on a Blue Space.") - red_entry = create_entry(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", " Coins on a Red Space.") - character_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/characterSpace.png", " Gain ", " Coins on your own Character Space.") - mgWin_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/miniGame.png", " Gain ", " Coins when winning a Minigame.") - - star_entry = create_entry(tabview.tab("Coins Mods"), 5, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star at a Star Space and when using Flutter.") - star_entryTooltip = CTkToolTip(star_entry, message="Works on Treetop, Garage, Castaway, and Clockwork.") - - pinkBooCoins_entry = create_entry(tabview.tab("Coins Mods"), 6, "assets/eventTags/pinkBooCoins.png", " Costs ", " Coins to steal Coins.") - pinkBooMin_entry = create_entry(tabview.tab("Coins Mods"), 7, "assets/eventTags/pinkBooCoins.png", " Steal ", " Mininum when stealing Coins.") - pinkBooStar_entry = create_entry(tabview.tab("Coins Mods"), 8, "assets/eventTags/pinkBooStars.png", " Costs ", " Coins to steal a Star.") - - # Create button to generate coins modification codes - parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp6(blue_entry, red_entry, character_entry, mgWin_entry, star_entry, pinkBooCoins_entry, pinkBooMin_entry, pinkBooStar_entry), text="Generate Codes") - parse_coins_button.place(x=10, y=800) - - # List of minigame names - minigames_list = ["Smashdance", "Odd Card Out", "Freeze Frame", "What Goes Up...", "Granite Getaway", "Circuit Maximus", "Catch You Letter", "Snow Whirled", "Daft Rafts", "Tricky Tires", "Treasure Trawlers", "Memory Lane", "Mowtown", "Cannonball Fun", "Note to Self", "Same is Lame", "Light Up My Night", "Lift Leapers", "Blooper Scooper", "Trap Ease Artist", "Pokey Punch-out", "Money Belt", "Cash Flow", "Cog Jog", "Sink or Swim", "Snow Brawl", "Ball Dozers", "Surge and Destroy", "Pop Star", "Stage Fright", "Conveyor Bolt", "Crate and Peril", "Ray of Fright", "Dust 'til Dawn", "Garden Grab", "Pixel Perfect", "Slot Trot", "Gondola Glide", "Light Breeze", "Body Builder", "Mole-it!", "Cashapult", "Jump the Gun", "Rocky Road", "Clean Team", "Hyper Sniper", "Insectiride", "Sunday Drivers", "Stamp By Me", "Throw Me a Bone", "Black Hole Boogie", "Full Tilt", "Sumo of Doom-o", "O-Zone", "Pitifall", "Mass Meteor", "Lunar-tics", "T Minus Five", "Asteroad Rage", "Boo'd Off the Stage", "Boonanza!", "Trick or Tree", "Something's Amist", "Wrasslin' Rapids", "Verbal Assault", "Shoot Yer Mouth Off", "Talkie Walkie", "Burnstile", "Word Herd", "Fruit Talktail", "Pit Boss", "Dizzy Rotisserie", "Dark 'n Crispy", "Tally Me Banana", "Banana Shake", "Pier Factor", "Seer Terror", "Block Star", "Lab Brats", "Strawberry Shortfuse", "Control Shtick", "Dunk Bros."] - # Create labels, comboboxes, and button for Minigame Replacement tab - replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) - replace_label.grid(row=0, column=0) - combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_1.grid(row=0, column=1) - with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) - with_label.grid(row=0, column=2) - combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_2.grid(row=0, column=3) - parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp6(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") - parse_minigame_button.place(x=10, y=800) - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/mushroomCapsule.png", 2, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=2) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" 5 ", font=("Arial", 24, "bold")) - label.grid(row=2, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=4) - mushroomCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - mushroomCapsuleWeight6.grid(row=2, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=2, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/goldenMushroomCapsule.png", 3, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=2) - goldenMushroomCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - goldenMushroomCapsulePrice6.grid(row=3, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=4) - goldenMushroomCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - goldenMushroomCapsuleWeight6.grid(row=3, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/slowMushroomCapsule.png", 4, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=2) - slowMushroomCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - slowMushroomCapsulePrice6.grid(row=4, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=4) - slowMushroomCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - slowMushroomCapsuleWeight6.grid(row=4, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/metalMushroomCapsule.png", 5, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=2) - metalMushroomCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - metalMushroomCapsulePrice6.grid(row=5, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=4) - metalMushroomCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - metalMushroomCapsuleWeight6.grid(row=5, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/warpCapsule.png", 6, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=2) - warpPipeCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - warpPipeCapsulePrice6.grid(row=6, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=4) - warpPipeCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - warpPipeCapsuleWeight6.grid(row=6, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/wigglerCapsule.png", 8, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=8, column=2) - flutterCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - flutterCapsulePrice6.grid(row=8, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=8, column=4) - flutterCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - flutterCapsuleWeight6.grid(row=8, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=8, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/cursedMushroomCapsule.png", 9, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=9, column=2) - cursedMushroomCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - cursedMushroomCapsulePrice6.grid(row=9, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=9, column=4) - cursedMushroomCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - cursedMushroomCapsuleWeight6.grid(row=9, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=9, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/spinyCapsule.png", 10, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=10, column=2) - spinyCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - spinyCapsulePrice6.grid(row=10, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=10, column=4) - spinyCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - spinyCapsuleWeight6.grid(row=10, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=10, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/goombaCapsule.png", 11, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=11, column=2) - goombaCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - goombaCapsulePrice6.grid(row=11, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=11, column=4) - goombaCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - goombaCapsuleWeight6.grid(row=11, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=11, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/plantCapsule.png", 12, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=12, column=2) - plantCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - plantCapsulePrice6.grid(row=12, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=12, column=4) - plantCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - plantCapsuleWeight6.grid(row=12, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=12, column=6) - - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text="", font=("Arial", 16)) - label.grid(row=2, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/kamekCapsule.png", 2, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=9) - kamekCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - kamekCapsulePrice6.grid(row=2, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=11) - kamekCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - kamekCapsuleWeight6.grid(row=2, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=2, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/toadyCapsule.png", 3, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=9) - toadyCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - toadyCapsulePrice6.grid(row=3, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=11) - toadyCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - toadyCapsuleWeight6.grid(row=3, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/blizzardCapsule.png", 4, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=9) - blizzardCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - blizzardCapsulePrice6.grid(row=4, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=11) - blizzardCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - blizzardCapsuleWeight6.grid(row=4, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/kleptoCapsule.png", 5, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=9) - kleptoCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - kleptoCapsulePrice6.grid(row=5, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=11) - kleptoCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - kleptoCapsuleWeight6.grid(row=5, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/pinkBooCapsule.png", 6, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=9) - pinkBooCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - pinkBooCapsulePrice6.grid(row=6, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=11) - pinkBooCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - pinkBooCapsuleWeight6.grid(row=6, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/podobooCapsule.png", 6, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=9) - podobooCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - podobooCapsulePrice6.grid(row=6, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=11) - podobooCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - podobooCapsuleWeight6.grid(row=6, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/zapCapsule.png", 8, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=8, column=9) - zapCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - zapCapsulePrice6.grid(row=8, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=8, column=11) - zapCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - zapCapsuleWeight6.grid(row=8, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=8, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/tweesterCapsule.png", 9, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=9, column=9) - tweesterCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - tweesterCapsulePrice6.grid(row=9, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=9, column=11) - tweesterCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - tweesterCapsuleWeight6.grid(row=9, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=9, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/thwompCapsule.png", 10, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=10, column=9) - thwompCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - thwompCapsulePrice6.grid(row=10, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=10, column=11) - thwompCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - thwompCapsuleWeight6.grid(row=10, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=10, column=13) - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/bulletBillCapsule.png", 11, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=11, column=9) - bulletBillCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - bulletBillCapsulePrice6.grid(row=11, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=11, column=11) - bulletBillCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - bulletBillCapsuleWeight6.grid(row=11, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=11, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/bombCapsule.png", 12, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=12, column=9) - bombCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - bombCapsulePrice6.grid(row=12, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=12, column=11) - bombCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - bombCapsuleWeight6.grid(row=12, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=12, column=13) - - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text="", font=("Arial", 16)) - label.grid(row=2, column=14) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/paraTroopaCapsule.png", 2, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=16) - paraTroopaCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - paraTroopaCapsulePrice6.grid(row=2, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=18) - paraTroopaCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - paraTroopaCapsuleWeight6.grid(row=2, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=2, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/snackCapsule.png", 3, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=16) - snackCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - snackCapsulePrice6.grid(row=3, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=18) - snackCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - snackCapsuleWeight6.grid(row=3, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/gaddlightCapsule.png", 4, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=16) - gaddLightCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - gaddLightCapsulePrice6.grid(row=4, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=18) - gaddLightCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - gaddLightCapsuleWeight6.grid(row=4, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/pinkBooCapsule.png", 5, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=16) - pinkBooCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - pinkBooCapsulePrice6.grid(row=5, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=18) - pinkBooCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - pinkBooCapsuleWeight6.grid(row=5, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/chanceCapsule.png", 6, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=16) - chanceTimeCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - chanceTimeCapsulePrice6.grid(row=6, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=18) - chanceTimeCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - chanceTimeCapsuleWeight6.grid(row=6, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/dkCapsule.png", 8, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=8, column=16) - dkCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - dkCapsulePrice6.grid(row=8, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=8, column=18) - dkCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - dkCapsuleWeight6.grid(row=8, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=8, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/bowserCapsule.png", 9, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=9, column=16) - bowserCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - bowserCapsulePrice6.grid(row=9, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=9, column=18) - bowserCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - bowserCapsuleWeight6.grid(row=9, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=9, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/duelCapsule.png", 10, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=10, column=16) - duelCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - duelCapsulePrice6.grid(row=10, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=10, column=18) - duelCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - duelCapsuleWeight6.grid(row=10, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=10, column=20) - - - parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: itemsEvent_mp6(warpPipeCapsuleWeight6, warpPipeCapsulePrice6, mushroomCapsuleWeight6, goldenMushroomCapsulePrice6, goldenMushroomCapsuleWeight6, slowMushroomCapsulePrice6, slowMushroomCapsuleWeight6, metalMushroomCapsulePrice6, metalMushroomCapsuleWeight6, bulletBillCapsulePrice6, bulletBillCapsuleWeight6, flutterCapsulePrice6, flutterCapsuleWeight6, cursedMushroomCapsulePrice6, cursedMushroomCapsuleWeight6, spinyCapsulePrice6, spinyCapsuleWeight6, goombaCapsulePrice6, goombaCapsuleWeight6, plantCapsulePrice6, plantCapsuleWeight6, kleptoCapsulePrice6, kleptoCapsuleWeight6, toadyCapsulePrice6, toadyCapsuleWeight6, kamekCapsulePrice6, kamekCapsuleWeight6, blizzardCapsulePrice6, blizzardCapsuleWeight6, podobooCapsulePrice6, podobooCapsuleWeight6, zapCapsulePrice6, zapCapsuleWeight6, tweesterCapsulePrice6, tweesterCapsuleWeight6, thwompCapsulePrice6, thwompCapsuleWeight6, bombCapsulePrice6, bombCapsuleWeight6, paraTroopaCapsulePrice6, paraTroopaCapsuleWeight6, snackCapsulePrice6, snackCapsuleWeight6, gaddLightCapsulePrice6, gaddLightCapsuleWeight6, pinkBooCapsulePrice6, pinkBooCapsuleWeight6, chanceTimeCapsulePrice6, chanceTimeCapsuleWeight6, bowserCapsulePrice6, bowserCapsuleWeight6, dkCapsulePrice6, dkCapsuleWeight6, duelCapsulePrice6, duelCapsuleWeight6), text="Generate Codes") - parseButton.place(x=10, y=800) - - parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: savePresetItems6(warpPipeCapsuleWeight6, warpPipeCapsulePrice6, mushroomCapsuleWeight6, goldenMushroomCapsulePrice6, goldenMushroomCapsuleWeight6, slowMushroomCapsulePrice6, slowMushroomCapsuleWeight6, metalMushroomCapsulePrice6, metalMushroomCapsuleWeight6, bulletBillCapsulePrice6, bulletBillCapsuleWeight6, flutterCapsulePrice6, flutterCapsuleWeight6, cursedMushroomCapsulePrice6, cursedMushroomCapsuleWeight6, spinyCapsulePrice6, spinyCapsuleWeight6, goombaCapsulePrice6, goombaCapsuleWeight6, plantCapsulePrice6, plantCapsuleWeight6, kleptoCapsulePrice6, kleptoCapsuleWeight6, toadyCapsulePrice6, toadyCapsuleWeight6, kamekCapsulePrice6, kamekCapsuleWeight6, blizzardCapsulePrice6, blizzardCapsuleWeight6, podobooCapsulePrice6, podobooCapsuleWeight6, zapCapsulePrice6, zapCapsuleWeight6, tweesterCapsulePrice6, tweesterCapsuleWeight6, thwompCapsulePrice6, thwompCapsuleWeight6, bombCapsulePrice6, bombCapsuleWeight6, paraTroopaCapsulePrice6, paraTroopaCapsuleWeight6, snackCapsulePrice6, snackCapsuleWeight6, gaddLightCapsulePrice6, gaddLightCapsuleWeight6, pinkBooCapsulePrice6, pinkBooCapsuleWeight6, chanceTimeCapsulePrice6, chanceTimeCapsuleWeight6, bowserCapsulePrice6, bowserCapsuleWeight6, dkCapsulePrice6, dkCapsuleWeight6, duelCapsulePrice6, duelCapsuleWeight6), text="Save Preset") - parseButton.place(x=160, y=800) - - parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: loadPresetItems6(warpPipeCapsuleWeight6, warpPipeCapsulePrice6, mushroomCapsuleWeight6, goldenMushroomCapsulePrice6, goldenMushroomCapsuleWeight6, slowMushroomCapsulePrice6, slowMushroomCapsuleWeight6, metalMushroomCapsulePrice6, metalMushroomCapsuleWeight6, bulletBillCapsulePrice6, bulletBillCapsuleWeight6, flutterCapsulePrice6, flutterCapsuleWeight6, cursedMushroomCapsulePrice6, cursedMushroomCapsuleWeight6, spinyCapsulePrice6, spinyCapsuleWeight6, goombaCapsulePrice6, goombaCapsuleWeight6, plantCapsulePrice6, plantCapsuleWeight6, kleptoCapsulePrice6, kleptoCapsuleWeight6, toadyCapsulePrice6, toadyCapsuleWeight6, kamekCapsulePrice6, kamekCapsuleWeight6, blizzardCapsulePrice6, blizzardCapsuleWeight6, podobooCapsulePrice6, podobooCapsuleWeight6, zapCapsulePrice6, zapCapsuleWeight6, tweesterCapsulePrice6, tweesterCapsuleWeight6, thwompCapsulePrice6, thwompCapsuleWeight6, bombCapsulePrice6, bombCapsuleWeight6, paraTroopaCapsulePrice6, paraTroopaCapsuleWeight6, snackCapsulePrice6, snackCapsuleWeight6, gaddLightCapsulePrice6, gaddLightCapsuleWeight6, pinkBooCapsulePrice6, pinkBooCapsuleWeight6, chanceTimeCapsulePrice6, chanceTimeCapsuleWeight6, bowserCapsulePrice6, bowserCapsuleWeight6, dkCapsulePrice6, dkCapsuleWeight6, duelCapsulePrice6, duelCapsuleWeight6), text="Load Preset") - parseButton.place(x=310, y=800) - - spaces6 = ["None", "Invisible Space", "Blue Space", "Red Space", "Happening Space", "Chance Time Space", "Duel Space", "Bowser/DK Space", "Orb Space"] - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) - label.grid(row=0, column=0) - - spaceRep411 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces6) - spaceRep411.grid(row=0, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) - label.grid(row=0, column=2) - - spaceRep421 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces6) - spaceRep421.grid(row=0, column=3) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot A) ", font=("Arial", 16)) - label.grid(row=0, column=4) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) - label.grid(row=1, column=0) - - spaceRep412 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces6) - spaceRep412.grid(row=1, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) - label.grid(row=1, column=2) - - spaceRep422 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces6) - spaceRep422.grid(row=1, column=3) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot B) ", font=("Arial", 16)) - label.grid(row=1, column=4) - - parseButton = ctk.CTkButton(master=tabview.tab("Space Replacement"), command=lambda: spaceReplaceEvent_mp6(spaceRep411, spaceRep421, spaceRep412, spaceRep422, spaces6), text="Generate Codes") - parseButton.place(x=10, y=800) - - items6 = ["None", "Mushroom", "Golden Mushroom", "Sluggish 'Shroom", "Metal Mushroom", "Bullet Bill", "Warp Pipe", "Flutter", "Cursed Mushroom", "Spiny", "Goomba", "Piranha Plant", "Klepto", "Toady", "Kamek", "Mr. Blizzard", "Podoboo", "Zap", "Tweester", "Thwomp", "Bob-omb", "Paratroopa", "Snack", "Boo-away", "Duel", "Miracle", "Bowser", "Donkey Kong", "Pink Boo"] - - label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 1: ", font=("Arial", 16)) - label.grid(row=0, column=0) - - initalItem41 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items6) - initalItem41.grid(row=0, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 2: ", font=("Arial", 16)) - label.grid(row=1, column=0) - - initalItem42 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items6) - initalItem42.grid(row=1, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 3: ", font=("Arial", 16)) - label.grid(row=2, column=0) - - initalItem43 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items6) - initalItem43.grid(row=2, column=1) - - parseButton = ctk.CTkButton(master=tabview.tab("Initial Orbs"), command=lambda: initialItemsEvent_mp6(initalItem41, initalItem42, initalItem43, items6), text="Generate Codes") - parseButton.place(x=10, y=800) - - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 0, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P1 Starts with ", font=("Arial", 16)) - label.grid(row=0, column=1) - p1Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p1Stars.grid(row=0, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=0, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 1, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P2 Starts with ", font=("Arial", 16)) - label.grid(row=1, column=1) - p2Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p2Stars.grid(row=1, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=1, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 2, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P3 Starts with ", font=("Arial", 16)) - label.grid(row=2, column=1) - p3Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p3Stars.grid(row=2, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=2, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 3, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P4 Starts with ", font=("Arial", 16)) - label.grid(row=3, column=1) - p4Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p4Stars.grid(row=3, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=3, column=3) - - parse_stars_button = ctk.CTkButton(master=tabview.tab("Star Handicaps"), command=lambda: handicapEvent_mp6(p1Stars, p2Stars, p3Stars, p4Stars), text="Generate Codes") - parse_stars_button.place(x=10, y=800) - - stars6 = ["None", "Blue Star", "Red Star", "Character Space Star", "Happening Star", "Duel Star", "Chance Time Star", "Bowser Star", "DK Star", "Minigame Star", "Current Coins Star", "Coin Star", "Star Star", "Orb Star"] - - label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Minigame Star with: ", font=("Arial", 16)) - label.grid(row=0, column=0, sticky="w") - - star1 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) - star1.grid(row=0, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Orb Star with: ", font=("Arial", 16)) - label.grid(row=1, column=0, sticky="w") - - star2 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) - star2.grid(row=1, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Happening Star with: ", font=("Arial", 16)) - label.grid(row=2, column=0, sticky="w") - - star3 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) - star3.grid(row=2, column=1) - - #checkbox1 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) - #checkbox1.grid(row=0, column=2, padx=10, pady=10) - - #checkbox2 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) - #checkbox2.grid(row=1, column=2, padx=10, pady=10) - - #checkbox3 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) - #checkbox3.grid(row=2, column=2, padx=10, pady=10) - - parseButton = ctk.CTkButton(master=tabview.tab("Bonus Star Replacement"), command=lambda: customBonusStarEvent_mp6(star1, star2, star3, stars6), text="Generate Codes") - parseButton.place(x=10, y=800) - - return frame +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 5/12/2024 +# License: MIT +# ============================================ + +# Import necessary functions and modules +from functions import * +from events.marioParty6_bonusStarReplace import * +from events.marioParty6_coins import * +from events.marioParty6_initialItems import * +from events.marioParty6_mgreplace import * +from events.marioParty6_items import * +from events.marioParty6_handicap import * +from events.marioParty6_spaceReplace import * + +# Import custom tkinter module as ctk +import customtkinter as ctk +from CTkToolTip import * + +# Function to create the main interface for Mario Party 1 +def create_mario_party_6_interface(frame): + # Create a tabbed interface + tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) + tabview.grid(padx=10, pady=10) + tabview.add("Coins Mods") + tabview.add("Minigame Replacement") + tabview.add("Orb Mods") + tabview.add("Space Replacement") + tabview.add("Initial Orbs") + tabview.add("Star Handicaps") + tabview.add("Bonus Star Replacement") + tabview.set("Coins Mods") + + # Function to create an entry field and checkbox + def create_entry(tab, row, icon_path, label_text, color): + create_image_icon(tab, icon_path, row, 1) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=2, sticky="w", pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold")) + entry.grid(row=row, column=3) + label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) + label1.grid(row=row, column=4, sticky="w") + return entry + + # Create entry fields and checkboxes for Coins Mods tab + blue_entry = create_entry(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", " Coins on a Blue Space.") + red_entry = create_entry(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", " Coins on a Red Space.") + character_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/characterSpace.png", " Gain ", " Coins on your own Character Space.") + mgWin_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/miniGame.png", " Gain ", " Coins when winning a Minigame.") + + star_entry = create_entry(tabview.tab("Coins Mods"), 5, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star at a Star Space and when using Flutter.") + star_entryTooltip = CTkToolTip(star_entry, message="Works on Treetop, Garage, Castaway, and Clockwork.") + + pinkBooCoins_entry = create_entry(tabview.tab("Coins Mods"), 6, "assets/eventTags/pinkBooCoins.png", " Costs ", " Coins to steal Coins.") + pinkBooMin_entry = create_entry(tabview.tab("Coins Mods"), 7, "assets/eventTags/pinkBooCoins.png", " Steal ", " Mininum when stealing Coins.") + pinkBooStar_entry = create_entry(tabview.tab("Coins Mods"), 8, "assets/eventTags/pinkBooStars.png", " Costs ", " Coins to steal a Star.") + + # Create button to generate coins modification codes + parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp6(blue_entry, red_entry, character_entry, mgWin_entry, star_entry, pinkBooCoins_entry, pinkBooMin_entry, pinkBooStar_entry), text="Generate Codes") + parse_coins_button.place(x=10, y=800) + + # List of minigame names + minigames_list = ["Smashdance", "Odd Card Out", "Freeze Frame", "What Goes Up...", "Granite Getaway", "Circuit Maximus", "Catch You Letter", "Snow Whirled", "Daft Rafts", "Tricky Tires", "Treasure Trawlers", "Memory Lane", "Mowtown", "Cannonball Fun", "Note to Self", "Same is Lame", "Light Up My Night", "Lift Leapers", "Blooper Scooper", "Trap Ease Artist", "Pokey Punch-out", "Money Belt", "Cash Flow", "Cog Jog", "Sink or Swim", "Snow Brawl", "Ball Dozers", "Surge and Destroy", "Pop Star", "Stage Fright", "Conveyor Bolt", "Crate and Peril", "Ray of Fright", "Dust 'til Dawn", "Garden Grab", "Pixel Perfect", "Slot Trot", "Gondola Glide", "Light Breeze", "Body Builder", "Mole-it!", "Cashapult", "Jump the Gun", "Rocky Road", "Clean Team", "Hyper Sniper", "Insectiride", "Sunday Drivers", "Stamp By Me", "Throw Me a Bone", "Black Hole Boogie", "Full Tilt", "Sumo of Doom-o", "O-Zone", "Pitifall", "Mass Meteor", "Lunar-tics", "T Minus Five", "Asteroad Rage", "Boo'd Off the Stage", "Boonanza!", "Trick or Tree", "Something's Amist", "Wrasslin' Rapids", "Verbal Assault", "Shoot Yer Mouth Off", "Talkie Walkie", "Burnstile", "Word Herd", "Fruit Talktail", "Pit Boss", "Dizzy Rotisserie", "Dark 'n Crispy", "Tally Me Banana", "Banana Shake", "Pier Factor", "Seer Terror", "Block Star", "Lab Brats", "Strawberry Shortfuse", "Control Shtick", "Dunk Bros."] + # Create labels, comboboxes, and button for Minigame Replacement tab + replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) + replace_label.grid(row=0, column=0) + combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_1.grid(row=0, column=1) + with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) + with_label.grid(row=0, column=2) + combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_2.grid(row=0, column=3) + parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp6(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") + parse_minigame_button.place(x=10, y=800) + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/mushroomCapsule.png", 2, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=2) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" 5 ", font=("Arial", 24, "bold")) + label.grid(row=2, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=4) + mushroomCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + mushroomCapsuleWeight6.grid(row=2, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=2, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/goldenMushroomCapsule.png", 3, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=2) + goldenMushroomCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + goldenMushroomCapsulePrice6.grid(row=3, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=4) + goldenMushroomCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + goldenMushroomCapsuleWeight6.grid(row=3, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/slowMushroomCapsule.png", 4, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=2) + slowMushroomCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + slowMushroomCapsulePrice6.grid(row=4, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=4) + slowMushroomCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + slowMushroomCapsuleWeight6.grid(row=4, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/metalMushroomCapsule.png", 5, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=2) + metalMushroomCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + metalMushroomCapsulePrice6.grid(row=5, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=4) + metalMushroomCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + metalMushroomCapsuleWeight6.grid(row=5, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/warpCapsule.png", 6, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=2) + warpPipeCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + warpPipeCapsulePrice6.grid(row=6, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=4) + warpPipeCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + warpPipeCapsuleWeight6.grid(row=6, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/wigglerCapsule.png", 8, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=8, column=2) + flutterCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + flutterCapsulePrice6.grid(row=8, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=8, column=4) + flutterCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + flutterCapsuleWeight6.grid(row=8, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=8, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/cursedMushroomCapsule.png", 9, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=9, column=2) + cursedMushroomCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + cursedMushroomCapsulePrice6.grid(row=9, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=9, column=4) + cursedMushroomCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + cursedMushroomCapsuleWeight6.grid(row=9, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=9, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/spinyCapsule.png", 10, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=10, column=2) + spinyCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + spinyCapsulePrice6.grid(row=10, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=10, column=4) + spinyCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + spinyCapsuleWeight6.grid(row=10, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=10, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/goombaCapsule.png", 11, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=11, column=2) + goombaCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + goombaCapsulePrice6.grid(row=11, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=11, column=4) + goombaCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + goombaCapsuleWeight6.grid(row=11, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=11, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/plantCapsule.png", 12, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=12, column=2) + plantCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + plantCapsulePrice6.grid(row=12, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=12, column=4) + plantCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + plantCapsuleWeight6.grid(row=12, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=12, column=6) + + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text="", font=("Arial", 16)) + label.grid(row=2, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/kamekCapsule.png", 2, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=9) + kamekCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + kamekCapsulePrice6.grid(row=2, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=11) + kamekCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + kamekCapsuleWeight6.grid(row=2, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=2, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/toadyCapsule.png", 3, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=9) + toadyCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + toadyCapsulePrice6.grid(row=3, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=11) + toadyCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + toadyCapsuleWeight6.grid(row=3, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/blizzardCapsule.png", 4, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=9) + blizzardCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + blizzardCapsulePrice6.grid(row=4, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=11) + blizzardCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + blizzardCapsuleWeight6.grid(row=4, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/kleptoCapsule.png", 5, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=9) + kleptoCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + kleptoCapsulePrice6.grid(row=5, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=11) + kleptoCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + kleptoCapsuleWeight6.grid(row=5, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/pinkBooCapsule.png", 6, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=9) + pinkBooCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + pinkBooCapsulePrice6.grid(row=6, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=11) + pinkBooCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + pinkBooCapsuleWeight6.grid(row=6, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/podobooCapsule.png", 6, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=9) + podobooCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + podobooCapsulePrice6.grid(row=6, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=11) + podobooCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + podobooCapsuleWeight6.grid(row=6, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/zapCapsule.png", 8, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=8, column=9) + zapCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + zapCapsulePrice6.grid(row=8, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=8, column=11) + zapCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + zapCapsuleWeight6.grid(row=8, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=8, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/tweesterCapsule.png", 9, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=9, column=9) + tweesterCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + tweesterCapsulePrice6.grid(row=9, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=9, column=11) + tweesterCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + tweesterCapsuleWeight6.grid(row=9, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=9, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/thwompCapsule.png", 10, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=10, column=9) + thwompCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + thwompCapsulePrice6.grid(row=10, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=10, column=11) + thwompCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + thwompCapsuleWeight6.grid(row=10, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=10, column=13) + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/bulletBillCapsule.png", 11, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=11, column=9) + bulletBillCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + bulletBillCapsulePrice6.grid(row=11, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=11, column=11) + bulletBillCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + bulletBillCapsuleWeight6.grid(row=11, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=11, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/bombCapsule.png", 12, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=12, column=9) + bombCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + bombCapsulePrice6.grid(row=12, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=12, column=11) + bombCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + bombCapsuleWeight6.grid(row=12, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=12, column=13) + + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text="", font=("Arial", 16)) + label.grid(row=2, column=14) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/paraTroopaCapsule.png", 2, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=16) + paraTroopaCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + paraTroopaCapsulePrice6.grid(row=2, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=18) + paraTroopaCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + paraTroopaCapsuleWeight6.grid(row=2, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=2, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/snackCapsule.png", 3, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=16) + snackCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + snackCapsulePrice6.grid(row=3, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=18) + snackCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + snackCapsuleWeight6.grid(row=3, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/gaddlightCapsule.png", 4, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=16) + gaddLightCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + gaddLightCapsulePrice6.grid(row=4, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=18) + gaddLightCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + gaddLightCapsuleWeight6.grid(row=4, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/pinkBooCapsule.png", 5, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=16) + pinkBooCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + pinkBooCapsulePrice6.grid(row=5, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=18) + pinkBooCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + pinkBooCapsuleWeight6.grid(row=5, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/chanceCapsule.png", 6, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=16) + chanceTimeCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + chanceTimeCapsulePrice6.grid(row=6, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=18) + chanceTimeCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + chanceTimeCapsuleWeight6.grid(row=6, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/dkCapsule.png", 8, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=8, column=16) + dkCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + dkCapsulePrice6.grid(row=8, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=8, column=18) + dkCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + dkCapsuleWeight6.grid(row=8, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=8, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/bowserCapsule.png", 9, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=9, column=16) + bowserCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + bowserCapsulePrice6.grid(row=9, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=9, column=18) + bowserCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + bowserCapsuleWeight6.grid(row=9, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=9, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/duelCapsule.png", 10, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=10, column=16) + duelCapsulePrice6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + duelCapsulePrice6.grid(row=10, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=10, column=18) + duelCapsuleWeight6 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + duelCapsuleWeight6.grid(row=10, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=10, column=20) + + + parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: itemsEvent_mp6(warpPipeCapsuleWeight6, warpPipeCapsulePrice6, mushroomCapsuleWeight6, goldenMushroomCapsulePrice6, goldenMushroomCapsuleWeight6, slowMushroomCapsulePrice6, slowMushroomCapsuleWeight6, metalMushroomCapsulePrice6, metalMushroomCapsuleWeight6, bulletBillCapsulePrice6, bulletBillCapsuleWeight6, flutterCapsulePrice6, flutterCapsuleWeight6, cursedMushroomCapsulePrice6, cursedMushroomCapsuleWeight6, spinyCapsulePrice6, spinyCapsuleWeight6, goombaCapsulePrice6, goombaCapsuleWeight6, plantCapsulePrice6, plantCapsuleWeight6, kleptoCapsulePrice6, kleptoCapsuleWeight6, toadyCapsulePrice6, toadyCapsuleWeight6, kamekCapsulePrice6, kamekCapsuleWeight6, blizzardCapsulePrice6, blizzardCapsuleWeight6, podobooCapsulePrice6, podobooCapsuleWeight6, zapCapsulePrice6, zapCapsuleWeight6, tweesterCapsulePrice6, tweesterCapsuleWeight6, thwompCapsulePrice6, thwompCapsuleWeight6, bombCapsulePrice6, bombCapsuleWeight6, paraTroopaCapsulePrice6, paraTroopaCapsuleWeight6, snackCapsulePrice6, snackCapsuleWeight6, gaddLightCapsulePrice6, gaddLightCapsuleWeight6, pinkBooCapsulePrice6, pinkBooCapsuleWeight6, chanceTimeCapsulePrice6, chanceTimeCapsuleWeight6, bowserCapsulePrice6, bowserCapsuleWeight6, dkCapsulePrice6, dkCapsuleWeight6, duelCapsulePrice6, duelCapsuleWeight6), text="Generate Codes") + parseButton.place(x=10, y=800) + + parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: savePresetItems6(warpPipeCapsuleWeight6, warpPipeCapsulePrice6, mushroomCapsuleWeight6, goldenMushroomCapsulePrice6, goldenMushroomCapsuleWeight6, slowMushroomCapsulePrice6, slowMushroomCapsuleWeight6, metalMushroomCapsulePrice6, metalMushroomCapsuleWeight6, bulletBillCapsulePrice6, bulletBillCapsuleWeight6, flutterCapsulePrice6, flutterCapsuleWeight6, cursedMushroomCapsulePrice6, cursedMushroomCapsuleWeight6, spinyCapsulePrice6, spinyCapsuleWeight6, goombaCapsulePrice6, goombaCapsuleWeight6, plantCapsulePrice6, plantCapsuleWeight6, kleptoCapsulePrice6, kleptoCapsuleWeight6, toadyCapsulePrice6, toadyCapsuleWeight6, kamekCapsulePrice6, kamekCapsuleWeight6, blizzardCapsulePrice6, blizzardCapsuleWeight6, podobooCapsulePrice6, podobooCapsuleWeight6, zapCapsulePrice6, zapCapsuleWeight6, tweesterCapsulePrice6, tweesterCapsuleWeight6, thwompCapsulePrice6, thwompCapsuleWeight6, bombCapsulePrice6, bombCapsuleWeight6, paraTroopaCapsulePrice6, paraTroopaCapsuleWeight6, snackCapsulePrice6, snackCapsuleWeight6, gaddLightCapsulePrice6, gaddLightCapsuleWeight6, pinkBooCapsulePrice6, pinkBooCapsuleWeight6, chanceTimeCapsulePrice6, chanceTimeCapsuleWeight6, bowserCapsulePrice6, bowserCapsuleWeight6, dkCapsulePrice6, dkCapsuleWeight6, duelCapsulePrice6, duelCapsuleWeight6), text="Save Preset") + parseButton.place(x=160, y=800) + + parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: loadPresetItems6(warpPipeCapsuleWeight6, warpPipeCapsulePrice6, mushroomCapsuleWeight6, goldenMushroomCapsulePrice6, goldenMushroomCapsuleWeight6, slowMushroomCapsulePrice6, slowMushroomCapsuleWeight6, metalMushroomCapsulePrice6, metalMushroomCapsuleWeight6, bulletBillCapsulePrice6, bulletBillCapsuleWeight6, flutterCapsulePrice6, flutterCapsuleWeight6, cursedMushroomCapsulePrice6, cursedMushroomCapsuleWeight6, spinyCapsulePrice6, spinyCapsuleWeight6, goombaCapsulePrice6, goombaCapsuleWeight6, plantCapsulePrice6, plantCapsuleWeight6, kleptoCapsulePrice6, kleptoCapsuleWeight6, toadyCapsulePrice6, toadyCapsuleWeight6, kamekCapsulePrice6, kamekCapsuleWeight6, blizzardCapsulePrice6, blizzardCapsuleWeight6, podobooCapsulePrice6, podobooCapsuleWeight6, zapCapsulePrice6, zapCapsuleWeight6, tweesterCapsulePrice6, tweesterCapsuleWeight6, thwompCapsulePrice6, thwompCapsuleWeight6, bombCapsulePrice6, bombCapsuleWeight6, paraTroopaCapsulePrice6, paraTroopaCapsuleWeight6, snackCapsulePrice6, snackCapsuleWeight6, gaddLightCapsulePrice6, gaddLightCapsuleWeight6, pinkBooCapsulePrice6, pinkBooCapsuleWeight6, chanceTimeCapsulePrice6, chanceTimeCapsuleWeight6, bowserCapsulePrice6, bowserCapsuleWeight6, dkCapsulePrice6, dkCapsuleWeight6, duelCapsulePrice6, duelCapsuleWeight6), text="Load Preset") + parseButton.place(x=310, y=800) + + spaces6 = ["None", "Invisible Space", "Blue Space", "Red Space", "Happening Space", "Chance Time Space", "Duel Space", "Bowser/DK Space", "Orb Space"] + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) + label.grid(row=0, column=0) + + spaceRep411 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces6) + spaceRep411.grid(row=0, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) + label.grid(row=0, column=2) + + spaceRep421 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces6) + spaceRep421.grid(row=0, column=3) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot A) ", font=("Arial", 16)) + label.grid(row=0, column=4) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) + label.grid(row=1, column=0) + + spaceRep412 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces6) + spaceRep412.grid(row=1, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) + label.grid(row=1, column=2) + + spaceRep422 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces6) + spaceRep422.grid(row=1, column=3) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot B) ", font=("Arial", 16)) + label.grid(row=1, column=4) + + parseButton = ctk.CTkButton(master=tabview.tab("Space Replacement"), command=lambda: spaceReplaceEvent_mp6(spaceRep411, spaceRep421, spaceRep412, spaceRep422, spaces6), text="Generate Codes") + parseButton.place(x=10, y=800) + + items6 = ["None", "Mushroom", "Golden Mushroom", "Sluggish 'Shroom", "Metal Mushroom", "Bullet Bill", "Warp Pipe", "Flutter", "Cursed Mushroom", "Spiny", "Goomba", "Piranha Plant", "Klepto", "Toady", "Kamek", "Mr. Blizzard", "Podoboo", "Zap", "Tweester", "Thwomp", "Bob-omb", "Paratroopa", "Snack", "Boo-away", "Duel", "Miracle", "Bowser", "Donkey Kong", "Pink Boo"] + + label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 1: ", font=("Arial", 16)) + label.grid(row=0, column=0) + + initalItem41 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items6) + initalItem41.grid(row=0, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 2: ", font=("Arial", 16)) + label.grid(row=1, column=0) + + initalItem42 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items6) + initalItem42.grid(row=1, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 3: ", font=("Arial", 16)) + label.grid(row=2, column=0) + + initalItem43 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items6) + initalItem43.grid(row=2, column=1) + + parseButton = ctk.CTkButton(master=tabview.tab("Initial Orbs"), command=lambda: initialItemsEvent_mp6(initalItem41, initalItem42, initalItem43, items6), text="Generate Codes") + parseButton.place(x=10, y=800) + + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 0, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P1 Starts with ", font=("Arial", 16)) + label.grid(row=0, column=1) + p1Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p1Stars.grid(row=0, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=0, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 1, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P2 Starts with ", font=("Arial", 16)) + label.grid(row=1, column=1) + p2Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p2Stars.grid(row=1, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=1, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 2, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P3 Starts with ", font=("Arial", 16)) + label.grid(row=2, column=1) + p3Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p3Stars.grid(row=2, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=2, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 3, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P4 Starts with ", font=("Arial", 16)) + label.grid(row=3, column=1) + p4Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p4Stars.grid(row=3, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=3, column=3) + + parse_stars_button = ctk.CTkButton(master=tabview.tab("Star Handicaps"), command=lambda: handicapEvent_mp6(p1Stars, p2Stars, p3Stars, p4Stars), text="Generate Codes") + parse_stars_button.place(x=10, y=800) + + stars6 = ["None", "Blue Star", "Red Star", "Character Space Star", "Happening Star", "Duel Star", "Chance Time Star", "Bowser Star", "DK Star", "Minigame Star", "Current Coins Star", "Coin Star", "Star Star", "Orb Star"] + + label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Minigame Star with: ", font=("Arial", 16)) + label.grid(row=0, column=0, sticky="w") + + star1 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) + star1.grid(row=0, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Orb Star with: ", font=("Arial", 16)) + label.grid(row=1, column=0, sticky="w") + + star2 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) + star2.grid(row=1, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Bonus Star Replacement"), text=" Replace Happening Star with: ", font=("Arial", 16)) + label.grid(row=2, column=0, sticky="w") + + star3 = ctk.CTkComboBox(master=tabview.tab("Bonus Star Replacement"), values=stars6) + star3.grid(row=2, column=1) + + #checkbox1 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) + #checkbox1.grid(row=0, column=2, padx=10, pady=10) + + #checkbox2 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) + #checkbox2.grid(row=1, column=2, padx=10, pady=10) + + #checkbox3 = ctk.CTkCheckBox(master=tabview.tab("Bonus Star Replacement"), text="Bonus Ztar", width=16, checkbox_width=16, checkbox_height=16) + #checkbox3.grid(row=2, column=2, padx=10, pady=10) + + parseButton = ctk.CTkButton(master=tabview.tab("Bonus Star Replacement"), command=lambda: customBonusStarEvent_mp6(star1, star2, star3, stars6), text="Generate Codes") + parseButton.place(x=10, y=800) + + return frame \ No newline at end of file diff --git a/frames/marioParty7_frame.py b/frames/marioParty7_frame.py index 0806b76..abc8a76 100644 --- a/frames/marioParty7_frame.py +++ b/frames/marioParty7_frame.py @@ -1,609 +1,609 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 5/12/2024 -# License: MIT -# ============================================ - -# Import necessary functions and modules -from functions import * -from events.marioParty7_coins import * -from events.marioParty7_initialItems import * -from events.marioParty7_mgreplace import * -from events.marioParty7_handicap import * -from events.marioParty7_items import * -from events.marioParty7_spaceReplace import * - -# Import custom tkinter module as ctk -import customtkinter as ctk -from CTkToolTip import * - -# Function to create the main interface for Mario Party 1 -def create_mario_party_7_interface(frame): - # Create a tabbed interface - tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) - tabview.grid(padx=10, pady=10) - tabview.add("Coins Mods") - tabview.add("Minigame Replacement") - tabview.add("Orb Mods") - tabview.add("Space Replacement") - tabview.add("Initial Orbs") - tabview.add("Star Handicaps") - tabview.set("Coins Mods") - - # Function to create an entry field and checkbox - def create_entry(tab, row, icon_path, label_text, color): - create_image_icon(tab, icon_path, row, 1) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=2, sticky="w", pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold")) - entry.grid(row=row, column=3) - label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) - label1.grid(row=row, column=4, sticky="w") - return entry - - # Function to create an entry field and checkbox - def create_entry2(tab, row, icon_path, label_text, color): - create_image_icon(tab, icon_path, row, 5) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=6, sticky="w", pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold")) - entry.grid(row=row, column=7) - label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) - label1.grid(row=row, column=8, sticky="w") - return entry - - # Create entry fields and checkboxes for Coins Mods tab - blue_entry = create_entry(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", " Coins on a Blue Space.") - red_entry = create_entry(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", " Coins on a Red Space.") - character_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/characterSpace7.png", " Gain ", " Coins on your own Character Space.") - mgWin_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/miniGame.png", " Gain ", " Coins when winning a Minigame.") - - star_entry = create_entry(tabview.tab("Coins Mods"), 5, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star at a Star Space and when using Flutter. ") - windmill_entryTooltip = CTkToolTip(star_entry, message="Works on Canal, Neon, and Bowser.") - - star_last4_entry = create_entry(tabview.tab("Coins Mods"), 6, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star during Last 4 Turns.") - hammerBro_entry = create_entry2(tabview.tab("Coins Mods"), 1, "assets/items/hammerBroCapsule.png", " Steal ", " Coins from Hammer Bro.") - zap_entry = create_entry2(tabview.tab("Coins Mods"), 2, "assets/items/zapCapsule.png", " Lose ", " Coins from Zaps.") - fireball_entry = create_entry2(tabview.tab("Coins Mods"), 3, "assets/items/fireballCapsule.png", " Steal ", " Coins from Fireballs.") - vacuum_entry = create_entry2(tabview.tab("Coins Mods"), 4, "assets/items/vacuumCapsule.png", " Steal ", " Coins despite Vacuum Roulette.") - flower_entry = create_entry2(tabview.tab("Coins Mods"), 5, "assets/items/flowerCapsule.png", " Gain ", " Per Space with Flower.") - windmill_entry = create_entry2(tabview.tab("Coins Mods"), 6, "assets/eventTags/willmillville.png", " Max ", " coins.") - windmill_entryTooltip = CTkToolTip(windmill_entry, message="Max Coin Value is 255") - - # Create button to generate coins modification codes - parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp7(blue_entry, red_entry, character_entry, mgWin_entry, star_entry, star_last4_entry, hammerBro_entry, zap_entry, fireball_entry, vacuum_entry, flower_entry, windmill_entry), text="Generate Codes") - parse_coins_button.place(x=10, y=800) - - # List of minigame names - minigames_list = ["Catchy Tunes", "Bubble Brawl", "Track & Yield", "Fun Run", "Cointagious", "Snow Ride", "Picture This", "Ghost in the Hall", "Big Dripper", "Target Tag", "Pokey Pummel", "Take Me Ohm", "Kart Wheeled", "Balloon Busters", "Clock Watchers", "Dart Attack", "Oil Crisis", "La Bomba", "Spray Anything", "Balloonatic", "Spinner Cell", "Think Tank", "Flashfright", "Coin-op Bop", "Easy Pickings", "Wheel of Woe", "Boxing Day", "Be My Chum!", "StratosFEAR!", "Pogo-a-go-go", "Buzzstormer", "Tile and Error", "Battery Ram", "Cardinal Rule", "Ice Moves", "Bumper Crop", "Hop-O-Matic 4000", "Wingin' It", "Sphere Factor", "Herbicidal Maniac", "Pyramid Scheme", "World Piece", "Warp Pipe Dreams", "Weight for It", "Helipopper", "Monty's Revenge", "Deck Hands", "Mad Props", "Gimme a Sign", "Bridge Work", "Spin Doctor", "Hip Hop Drop", "Air Farce", "The Final Countdown", "Royal Rumpus", "Light Speed", "Apes of Wrath", "Fish & Cheeps", "Camp Ukiki", "Funstacle Course!", "Funderwall!", "Magmagical Journey!", "Tunnel of Lava!", "Treasure Dome!", "Slot-O-Whirl!", "Peel Out", "Bananas Faster", "Stump Change", "Jump, Man", "Vine Country", "A Bridge Too Short", "Spider Stomp", "Stick and Spin", "Bowser's Lovely Lift!"] # Create labels, comboboxes, and button for Minigame Replacement tab - replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) - replace_label.grid(row=0, column=0) - combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_1.grid(row=0, column=1) - with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) - with_label.grid(row=0, column=2) - combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_2.grid(row=0, column=3) - parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp7(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") - parse_minigame_button.place(x=10, y=800) - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/mushroomCapsule.png", 2, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=2) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" 5 ", font=("Arial", 24, "bold")) - label.grid(row=2, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=4) - mushroomCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - mushroomCapsuleWeight7.grid(row=2, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=2, column=6) - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/goldenMushroomCapsule.png", 3, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=2) - goldenMushroomCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - goldenMushroomCapsulePrice7.grid(row=3, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=4) - goldenMushroomCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - goldenMushroomCapsuleWeight7.grid(row=3, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/slowMushroomCapsule.png", 4, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=2) - slowMushroomCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - slowMushroomCapsulePrice7.grid(row=4, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=4) - slowMushroomCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - slowMushroomCapsuleWeight7.grid(row=4, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/metalMushroomCapsule.png", 5, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=2) - metalMushroomCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - metalMushroomCapsulePrice7.grid(row=5, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=4) - metalMushroomCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - metalMushroomCapsuleWeight7.grid(row=5, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/wigglerCapsule.png", 6, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=2) - flutterCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - flutterCapsulePrice7.grid(row=6, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=4) - flutterCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - flutterCapsuleWeight7.grid(row=6, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/cannonCapsule.png", 7, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=7, column=2) - cannonCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - cannonCapsulePrice7.grid(row=7, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=7, column=4) - cannonCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - cannonCapsuleWeight7.grid(row=7, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=7, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/snackCapsule.png", 8, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=8, column=2) - snackCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - snackCapsulePrice7.grid(row=8, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=8, column=4) - snackCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - snackCapsuleWeight7.grid(row=8, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=8, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/lakituCapsule.png", 9, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=9, column=2) - lakituCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - lakituCapsulePrice7.grid(row=9, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=9, column=4) - lakituCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - lakituCapsuleWeight7.grid(row=9, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=9, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/hammerBroCapsule.png", 10, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=10, column=2) - hammerBroCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - hammerBroCapsulePrice7.grid(row=10, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=10, column=4) - hammerBroCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - hammerBroCapsuleWeight7.grid(row=10, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=10, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/spearCapsule.png", 11, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=11, column=2) - spearCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - spearCapsulePrice7.grid(row=11, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=11, column=4) - spearCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - spearCapsuleWeight7.grid(row=11, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=11, column=6) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/plantCapsule.png", 12, 1) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=12, column=2) - plantCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - plantCapsulePrice7.grid(row=12, column=3) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=12, column=4) - plantCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - plantCapsuleWeight7.grid(row=12, column=5) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=12, column=6) - - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text="", font=("Arial", 16)) - label.grid(row=2, column=7) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/kamekCapsule.png", 2, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=9) - kamekCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - kamekCapsulePrice7.grid(row=2, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=11) - kamekCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - kamekCapsuleWeight7.grid(row=2, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=2, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/toadyCapsule.png", 3, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=9) - toadyCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - toadyCapsulePrice7.grid(row=3, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=11) - toadyCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - toadyCapsuleWeight7.grid(row=3, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/blizzardCapsule.png", 4, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=9) - blizzardCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - blizzardCapsulePrice7.grid(row=4, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=11) - blizzardCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - blizzardCapsuleWeight7.grid(row=4, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/banditCapsule.png", 5, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=9) - banditCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - banditCapsulePrice7.grid(row=5, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=11) - banditCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - banditCapsuleWeight7.grid(row=5, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/pinkBooCapsule.png", 6, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=9) - pinkBooCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - pinkBooCapsulePrice7.grid(row=6, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=11) - pinkBooCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - pinkBooCapsuleWeight7.grid(row=6, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/spinyCapsule.png", 7, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=7, column=9) - spinyCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - spinyCapsulePrice7.grid(row=7, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=7, column=11) - spinyCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - spinyCapsuleWeight7.grid(row=7, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=7, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/zapCapsule.png", 8, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=8, column=9) - zapCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - zapCapsulePrice7.grid(row=8, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=8, column=11) - zapCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - zapCapsuleWeight7.grid(row=8, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=8, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/tweesterCapsule.png", 9, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=9, column=9) - tweesterCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - tweesterCapsulePrice7.grid(row=9, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=9, column=11) - tweesterCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - tweesterCapsuleWeight7.grid(row=9, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=9, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/thwompCapsule.png", 10, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=10, column=9) - thwompCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - thwompCapsulePrice7.grid(row=10, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=10, column=11) - thwompCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - thwompCapsuleWeight7.grid(row=10, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=10, column=13) - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/warpCapsule.png", 11, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=11, column=9) - warpCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - warpCapsulePrice7.grid(row=11, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=11, column=11) - warpCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - warpCapsuleWeight7.grid(row=11, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=11, column=13) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/bombCapsule.png", 12, 8) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=12, column=9) - bombCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - bombCapsulePrice7.grid(row=12, column=10) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=12, column=11) - bombCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - bombCapsuleWeight7.grid(row=12, column=12) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=12, column=13) - - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text="", font=("Arial", 16)) - label.grid(row=2, column=14) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/fireballCapsule.png", 2, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=16) - fireballCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - fireballCapsulePrice7.grid(row=2, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=18) - fireballCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - fireballCapsuleWeight7.grid(row=2, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=2, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/flowerCapsule.png", 3, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=16) - flowerCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - flowerCapsulePrice7.grid(row=3, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=18) - flowerCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - flowerCapsuleWeight7.grid(row=3, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/eggCapsule.png", 4, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=16) - eggCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - eggCapsulePrice7.grid(row=4, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=18) - eggCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - eggCapsuleWeight7.grid(row=4, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/vacuumCapsule.png", 5, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=16) - vacuumCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - vacuumCapsulePrice7.grid(row=5, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=18) - vacuumCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - vacuumCapsuleWeight7.grid(row=5, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/magicCapsule.png", 6, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=16) - magicCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - magicCapsulePrice7.grid(row=6, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=18) - magicCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - magicCapsuleWeight7.grid(row=6, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=20) - - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/tripleCapsule.png", 7, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=7, column=16) - tripleCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - tripleCapsulePrice7.grid(row=7, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=7, column=18) - tripleCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - tripleCapsuleWeight7.grid(row=7, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=7, column=20) - - icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/koopaCapsule.png", 8, 15) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=8, column=16) - koopaCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - koopaCapsulePrice7.grid(row=8, column=17) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=8, column=18) - koopaCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) - koopaCapsuleWeight7.grid(row=8, column=19) - label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=8, column=20) - - parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: itemsEvent_mp7(mushroomCapsuleWeight7, goldenMushroomCapsulePrice7, goldenMushroomCapsuleWeight7, slowMushroomCapsulePrice7, slowMushroomCapsuleWeight7, metalMushroomCapsulePrice7, metalMushroomCapsuleWeight7, flutterCapsulePrice7, flutterCapsuleWeight7, cannonCapsulePrice7, cannonCapsuleWeight7, snackCapsulePrice7, snackCapsuleWeight7, lakituCapsulePrice7, lakituCapsuleWeight7, hammerBroCapsulePrice7, hammerBroCapsuleWeight7, plantCapsulePrice7, plantCapsuleWeight7, spearCapsulePrice7, spearCapsuleWeight7, kamekCapsulePrice7, kamekCapsuleWeight7, toadyCapsulePrice7, toadyCapsuleWeight7, blizzardCapsulePrice7, blizzardCapsuleWeight7, banditCapsulePrice7, banditCapsuleWeight7, pinkBooCapsulePrice7, pinkBooCapsuleWeight7, spinyCapsulePrice7, spinyCapsuleWeight7, zapCapsulePrice7, zapCapsuleWeight7, tweesterCapsulePrice7, tweesterCapsuleWeight7, thwompCapsulePrice7, thwompCapsuleWeight7, warpCapsulePrice7, warpCapsuleWeight7, bombCapsulePrice7, bombCapsuleWeight7, fireballCapsulePrice7, fireballCapsuleWeight7, flowerCapsulePrice7, flowerCapsuleWeight7, eggCapsulePrice7, eggCapsuleWeight7, vacuumCapsulePrice7, vacuumCapsuleWeight7, magicCapsulePrice7, magicCapsuleWeight7, tripleCapsulePrice7, tripleCapsuleWeight7, koopaCapsulePrice7, koopaCapsuleWeight7), text="Generate Codes") - parseButton.place(x=10, y=800) - - parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: savePresetItems7(mushroomCapsuleWeight7, goldenMushroomCapsulePrice7, goldenMushroomCapsuleWeight7, slowMushroomCapsulePrice7, slowMushroomCapsuleWeight7, metalMushroomCapsulePrice7, metalMushroomCapsuleWeight7, flutterCapsulePrice7, flutterCapsuleWeight7, cannonCapsulePrice7, cannonCapsuleWeight7, snackCapsulePrice7, snackCapsuleWeight7, lakituCapsulePrice7, lakituCapsuleWeight7, hammerBroCapsulePrice7, hammerBroCapsuleWeight7, plantCapsulePrice7, plantCapsuleWeight7, spearCapsulePrice7, spearCapsuleWeight7, kamekCapsulePrice7, kamekCapsuleWeight7, toadyCapsulePrice7, toadyCapsuleWeight7, blizzardCapsulePrice7, blizzardCapsuleWeight7, banditCapsulePrice7, banditCapsuleWeight7, pinkBooCapsulePrice7, pinkBooCapsuleWeight7, spinyCapsulePrice7, spinyCapsuleWeight7, zapCapsulePrice7, zapCapsuleWeight7, tweesterCapsulePrice7, tweesterCapsuleWeight7, thwompCapsulePrice7, thwompCapsuleWeight7, warpCapsulePrice7, warpCapsuleWeight7, bombCapsulePrice7, bombCapsuleWeight7, fireballCapsulePrice7, fireballCapsuleWeight7, flowerCapsulePrice7, flowerCapsuleWeight7, eggCapsulePrice7, eggCapsuleWeight7, vacuumCapsulePrice7, vacuumCapsuleWeight7, magicCapsulePrice7, magicCapsuleWeight7, tripleCapsulePrice7, tripleCapsuleWeight7, koopaCapsulePrice7, koopaCapsuleWeight7), text="Save Preset") - parseButton.place(x=160, y=800) - - parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: loadPresetItems7(mushroomCapsuleWeight7, goldenMushroomCapsulePrice7, goldenMushroomCapsuleWeight7, slowMushroomCapsulePrice7, slowMushroomCapsuleWeight7, metalMushroomCapsulePrice7, metalMushroomCapsuleWeight7, flutterCapsulePrice7, flutterCapsuleWeight7, cannonCapsulePrice7, cannonCapsuleWeight7, snackCapsulePrice7, snackCapsuleWeight7, lakituCapsulePrice7, lakituCapsuleWeight7, hammerBroCapsulePrice7, hammerBroCapsuleWeight7, plantCapsulePrice7, plantCapsuleWeight7, spearCapsulePrice7, spearCapsuleWeight7, kamekCapsulePrice7, kamekCapsuleWeight7, toadyCapsulePrice7, toadyCapsuleWeight7, blizzardCapsulePrice7, blizzardCapsuleWeight7, banditCapsulePrice7, banditCapsuleWeight7, pinkBooCapsulePrice7, pinkBooCapsuleWeight7, spinyCapsulePrice7, spinyCapsuleWeight7, zapCapsulePrice7, zapCapsuleWeight7, tweesterCapsulePrice7, tweesterCapsuleWeight7, thwompCapsulePrice7, thwompCapsuleWeight7, warpCapsulePrice7, warpCapsuleWeight7, bombCapsulePrice7, bombCapsuleWeight7, fireballCapsulePrice7, fireballCapsuleWeight7, flowerCapsulePrice7, flowerCapsuleWeight7, eggCapsulePrice7, eggCapsuleWeight7, vacuumCapsulePrice7, vacuumCapsuleWeight7, magicCapsulePrice7, magicCapsuleWeight7, tripleCapsulePrice7, tripleCapsuleWeight7, koopaCapsulePrice7, koopaCapsuleWeight7), text="Load Preset") - parseButton.place(x=310, y=800) - - parseButtonSevenFillViaCode = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: fillViaCode7Actions(), text="Fill Via Code") - parseButtonSevenFillViaCode.place(x=460, y=800) - - def fillViaCode7Actions(): - top = ctk.CTkToplevel(height=500, width=500) - top.attributes('-topmost', True) - top.title("Enter Code") - - enterCodeLabel = ctk.CTkLabel(master=top, text="Enter Code") - enterCodeLabel.place(x=10, y=10) - - codeText = ctk.CTkTextbox(master=top, width=200, height=400) - codeText.place(x=10, y=65) - - submitButton = ctk.CTkButton(master=top, command=lambda: fillViaCode7(top, codeText, mushroomCapsuleWeight7, goldenMushroomCapsulePrice7, goldenMushroomCapsuleWeight7, slowMushroomCapsulePrice7, slowMushroomCapsuleWeight7, metalMushroomCapsulePrice7, metalMushroomCapsuleWeight7, flutterCapsulePrice7, flutterCapsuleWeight7, cannonCapsulePrice7, cannonCapsuleWeight7, snackCapsulePrice7, snackCapsuleWeight7, lakituCapsulePrice7, lakituCapsuleWeight7, hammerBroCapsulePrice7, hammerBroCapsuleWeight7, plantCapsulePrice7, plantCapsuleWeight7, spearCapsulePrice7, spearCapsuleWeight7, kamekCapsulePrice7, kamekCapsuleWeight7, toadyCapsulePrice7, toadyCapsuleWeight7, blizzardCapsulePrice7, blizzardCapsuleWeight7, banditCapsulePrice7, banditCapsuleWeight7, pinkBooCapsulePrice7, pinkBooCapsuleWeight7, spinyCapsulePrice7, spinyCapsuleWeight7, zapCapsulePrice7, zapCapsuleWeight7, tweesterCapsulePrice7, tweesterCapsuleWeight7, thwompCapsulePrice7, thwompCapsuleWeight7, warpCapsulePrice7, warpCapsuleWeight7, bombCapsulePrice7, bombCapsuleWeight7, fireballCapsulePrice7, fireballCapsuleWeight7, flowerCapsulePrice7, flowerCapsuleWeight7, eggCapsulePrice7, eggCapsuleWeight7, vacuumCapsulePrice7, vacuumCapsuleWeight7, magicCapsulePrice7, magicCapsuleWeight7, tripleCapsulePrice7, tripleCapsuleWeight7, koopaCapsulePrice7, koopaCapsuleWeight7), text="Submit") - submitButton.place(x=250, y=425) - - spaces7 = ["None", "Invisible Space", "Blue Space", "Red Space", "Happening Space", "Bowser Space", "Duel Space", "DK Space", "Orb Space A", "Orb Space B", "Mic Space"] - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) - label.grid(row=0, column=0) - - spaceRep411 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces7) - spaceRep411.grid(row=0, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) - label.grid(row=0, column=2) - - spaceRep421 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces7) - spaceRep421.grid(row=0, column=3) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot A) ", font=("Arial", 16)) - label.grid(row=0, column=4) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) - label.grid(row=1, column=0) - - spaceRep412 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces7) - spaceRep412.grid(row=1, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) - label.grid(row=1, column=2) - - spaceRep422 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces7) - spaceRep422.grid(row=1, column=3) - - label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot B) ", font=("Arial", 16)) - label.grid(row=1, column=4) - - parseButton = ctk.CTkButton(master=tabview.tab("Space Replacement"), command=lambda: spaceReplaceEvent_mp7(spaceRep411, spaceRep421, spaceRep412, spaceRep422, spaces7), text="Generate Codes") - parseButton.place(x=10, y=800) - - items7 = ["None", "Mushroom", "Super Mushroom", "Slow 'Shroom", "Metal Mushroom", "Flutter", "Cannon", "Snack", "Lakitu", "Hammer Bro", "Piranha Plant", "Spear Guy", "Kamek", "Toady", "Mr. Blizzard", "Bandit", "Pink Boo", "Spiny", "Zap", "Tweester", "Thwomp", "Warp Pipe", "Bob-omb", "Fireball", "Flower", "Egg", "Vacuum", "Surprise", "Triple 'Shroom", "Koopa Kid"] - - label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 1: ", font=("Arial", 16)) - label.grid(row=0, column=0) - - initalItem71 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items7) - initalItem71.grid(row=0, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 2: ", font=("Arial", 16)) - label.grid(row=1, column=0) - - initalItem72 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items7) - initalItem72.grid(row=1, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 3: ", font=("Arial", 16)) - label.grid(row=2, column=0) - - initalItem73 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items7) - initalItem73.grid(row=2, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 4: ", font=("Arial", 16)) - label.grid(row=3, column=0) - - initalItem74 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items7) - initalItem74.grid(row=3, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" (Only if Can Hold 5 Capsules in On) ", font=("Arial", 16)) - label.grid(row=3, column=2, sticky="w") - - label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 5: ", font=("Arial", 16)) - label.grid(row=4, column=0) - - initalItem75 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items7) - initalItem75.grid(row=4, column=1) - - label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" (Only if Can Hold 5 Capsules in On) ", font=("Arial", 16)) - label.grid(row=4, column=2, sticky="w") - - parseButton = ctk.CTkButton(master=tabview.tab("Initial Orbs"), command=lambda: initialItemsEvent_mp7(initalItem71, initalItem72, initalItem73, initalItem74, initalItem75, items7), text="Generate Codes") - parseButton.place(x=10, y=800) - - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 0, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P1 Starts with ", font=("Arial", 16)) - label.grid(row=0, column=1) - p1Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p1Stars.grid(row=0, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=0, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 1, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P2 Starts with ", font=("Arial", 16)) - label.grid(row=1, column=1) - p2Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p2Stars.grid(row=1, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=1, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 2, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P3 Starts with ", font=("Arial", 16)) - label.grid(row=2, column=1) - p3Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p3Stars.grid(row=2, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=2, column=3) - - icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 3, 0) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P4 Starts with ", font=("Arial", 16)) - label.grid(row=3, column=1) - p4Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) - p4Stars.grid(row=3, column=2) - label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) - label.grid(row=3, column=3) - - parse_stars_button = ctk.CTkButton(master=tabview.tab("Star Handicaps"), command=lambda: handicapEvent_mp7(p1Stars, p2Stars, p3Stars, p4Stars), text="Generate Codes") - parse_stars_button.place(x=10, y=800) - - return frame +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 5/12/2024 +# License: MIT +# ============================================ + +# Import necessary functions and modules +from functions import * +from events.marioParty7_coins import * +from events.marioParty7_initialItems import * +from events.marioParty7_mgreplace import * +from events.marioParty7_handicap import * +from events.marioParty7_items import * +from events.marioParty7_spaceReplace import * + +# Import custom tkinter module as ctk +import customtkinter as ctk +from CTkToolTip import * + +# Function to create the main interface for Mario Party 1 +def create_mario_party_7_interface(frame): + # Create a tabbed interface + tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) + tabview.grid(padx=10, pady=10) + tabview.add("Coins Mods") + tabview.add("Minigame Replacement") + tabview.add("Orb Mods") + tabview.add("Space Replacement") + tabview.add("Initial Orbs") + tabview.add("Star Handicaps") + tabview.set("Coins Mods") + + # Function to create an entry field and checkbox + def create_entry(tab, row, icon_path, label_text, color): + create_image_icon(tab, icon_path, row, 1) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=2, sticky="w", pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold")) + entry.grid(row=row, column=3) + label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) + label1.grid(row=row, column=4, sticky="w") + return entry + + # Function to create an entry field and checkbox + def create_entry2(tab, row, icon_path, label_text, color): + create_image_icon(tab, icon_path, row, 5) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=6, sticky="w", pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold")) + entry.grid(row=row, column=7) + label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) + label1.grid(row=row, column=8, sticky="w") + return entry + + # Create entry fields and checkboxes for Coins Mods tab + blue_entry = create_entry(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", " Coins on a Blue Space.") + red_entry = create_entry(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", " Coins on a Red Space.") + character_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/characterSpace7.png", " Gain ", " Coins on your own Character Space.") + mgWin_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/miniGame.png", " Gain ", " Coins when winning a Minigame.") + + star_entry = create_entry(tabview.tab("Coins Mods"), 5, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star at a Star Space and when using Flutter. ") + windmill_entryTooltip = CTkToolTip(star_entry, message="Works on Canal, Neon, and Bowser.") + + star_last4_entry = create_entry(tabview.tab("Coins Mods"), 6, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star during Last 4 Turns.") + hammerBro_entry = create_entry2(tabview.tab("Coins Mods"), 1, "assets/items/hammerBroCapsule.png", " Steal ", " Coins from Hammer Bro.") + zap_entry = create_entry2(tabview.tab("Coins Mods"), 2, "assets/items/zapCapsule.png", " Lose ", " Coins from Zaps.") + fireball_entry = create_entry2(tabview.tab("Coins Mods"), 3, "assets/items/fireballCapsule.png", " Steal ", " Coins from Fireballs.") + vacuum_entry = create_entry2(tabview.tab("Coins Mods"), 4, "assets/items/vacuumCapsule.png", " Steal ", " Coins despite Vacuum Roulette.") + flower_entry = create_entry2(tabview.tab("Coins Mods"), 5, "assets/items/flowerCapsule.png", " Gain ", " Per Space with Flower.") + windmill_entry = create_entry2(tabview.tab("Coins Mods"), 6, "assets/eventTags/willmillville.png", " Max ", " coins.") + windmill_entryTooltip = CTkToolTip(windmill_entry, message="Max Coin Value is 255") + + # Create button to generate coins modification codes + parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp7(blue_entry, red_entry, character_entry, mgWin_entry, star_entry, star_last4_entry, hammerBro_entry, zap_entry, fireball_entry, vacuum_entry, flower_entry, windmill_entry), text="Generate Codes") + parse_coins_button.place(x=10, y=800) + + # List of minigame names + minigames_list = ["Catchy Tunes", "Bubble Brawl", "Track & Yield", "Fun Run", "Cointagious", "Snow Ride", "Picture This", "Ghost in the Hall", "Big Dripper", "Target Tag", "Pokey Pummel", "Take Me Ohm", "Kart Wheeled", "Balloon Busters", "Clock Watchers", "Dart Attack", "Oil Crisis", "La Bomba", "Spray Anything", "Balloonatic", "Spinner Cell", "Think Tank", "Flashfright", "Coin-op Bop", "Easy Pickings", "Wheel of Woe", "Boxing Day", "Be My Chum!", "StratosFEAR!", "Pogo-a-go-go", "Buzzstormer", "Tile and Error", "Battery Ram", "Cardinal Rule", "Ice Moves", "Bumper Crop", "Hop-O-Matic 4000", "Wingin' It", "Sphere Factor", "Herbicidal Maniac", "Pyramid Scheme", "World Piece", "Warp Pipe Dreams", "Weight for It", "Helipopper", "Monty's Revenge", "Deck Hands", "Mad Props", "Gimme a Sign", "Bridge Work", "Spin Doctor", "Hip Hop Drop", "Air Farce", "The Final Countdown", "Royal Rumpus", "Light Speed", "Apes of Wrath", "Fish & Cheeps", "Camp Ukiki", "Funstacle Course!", "Funderwall!", "Magmagical Journey!", "Tunnel of Lava!", "Treasure Dome!", "Slot-O-Whirl!", "Peel Out", "Bananas Faster", "Stump Change", "Jump, Man", "Vine Country", "A Bridge Too Short", "Spider Stomp", "Stick and Spin", "Bowser's Lovely Lift!"] # Create labels, comboboxes, and button for Minigame Replacement tab + replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) + replace_label.grid(row=0, column=0) + combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_1.grid(row=0, column=1) + with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) + with_label.grid(row=0, column=2) + combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_2.grid(row=0, column=3) + parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp7(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") + parse_minigame_button.place(x=10, y=800) + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/mushroomCapsule.png", 2, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=2) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" 5 ", font=("Arial", 24, "bold")) + label.grid(row=2, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=4) + mushroomCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + mushroomCapsuleWeight7.grid(row=2, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=2, column=6) + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/goldenMushroomCapsule.png", 3, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=2) + goldenMushroomCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + goldenMushroomCapsulePrice7.grid(row=3, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=4) + goldenMushroomCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + goldenMushroomCapsuleWeight7.grid(row=3, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/slowMushroomCapsule.png", 4, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=2) + slowMushroomCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + slowMushroomCapsulePrice7.grid(row=4, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=4) + slowMushroomCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + slowMushroomCapsuleWeight7.grid(row=4, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/metalMushroomCapsule.png", 5, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=2) + metalMushroomCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + metalMushroomCapsulePrice7.grid(row=5, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=4) + metalMushroomCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + metalMushroomCapsuleWeight7.grid(row=5, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/wigglerCapsule.png", 6, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=2) + flutterCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + flutterCapsulePrice7.grid(row=6, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=4) + flutterCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + flutterCapsuleWeight7.grid(row=6, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/cannonCapsule.png", 7, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=7, column=2) + cannonCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + cannonCapsulePrice7.grid(row=7, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=7, column=4) + cannonCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + cannonCapsuleWeight7.grid(row=7, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=7, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/snackCapsule.png", 8, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=8, column=2) + snackCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + snackCapsulePrice7.grid(row=8, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=8, column=4) + snackCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + snackCapsuleWeight7.grid(row=8, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=8, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/lakituCapsule.png", 9, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=9, column=2) + lakituCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + lakituCapsulePrice7.grid(row=9, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=9, column=4) + lakituCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + lakituCapsuleWeight7.grid(row=9, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=9, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/hammerBroCapsule.png", 10, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=10, column=2) + hammerBroCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + hammerBroCapsulePrice7.grid(row=10, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=10, column=4) + hammerBroCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + hammerBroCapsuleWeight7.grid(row=10, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=10, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/spearCapsule.png", 11, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=11, column=2) + spearCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + spearCapsulePrice7.grid(row=11, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=11, column=4) + spearCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + spearCapsuleWeight7.grid(row=11, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=11, column=6) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/plantCapsule.png", 12, 1) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=12, column=2) + plantCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + plantCapsulePrice7.grid(row=12, column=3) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=12, column=4) + plantCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + plantCapsuleWeight7.grid(row=12, column=5) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=12, column=6) + + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text="", font=("Arial", 16)) + label.grid(row=2, column=7) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/kamekCapsule.png", 2, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=9) + kamekCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + kamekCapsulePrice7.grid(row=2, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=11) + kamekCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + kamekCapsuleWeight7.grid(row=2, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=2, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/toadyCapsule.png", 3, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=9) + toadyCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + toadyCapsulePrice7.grid(row=3, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=11) + toadyCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + toadyCapsuleWeight7.grid(row=3, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/blizzardCapsule.png", 4, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=9) + blizzardCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + blizzardCapsulePrice7.grid(row=4, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=11) + blizzardCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + blizzardCapsuleWeight7.grid(row=4, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/banditCapsule.png", 5, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=9) + banditCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + banditCapsulePrice7.grid(row=5, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=11) + banditCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + banditCapsuleWeight7.grid(row=5, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/pinkBooCapsule.png", 6, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=9) + pinkBooCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + pinkBooCapsulePrice7.grid(row=6, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=11) + pinkBooCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + pinkBooCapsuleWeight7.grid(row=6, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/spinyCapsule.png", 7, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=7, column=9) + spinyCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + spinyCapsulePrice7.grid(row=7, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=7, column=11) + spinyCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + spinyCapsuleWeight7.grid(row=7, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=7, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/zapCapsule.png", 8, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=8, column=9) + zapCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + zapCapsulePrice7.grid(row=8, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=8, column=11) + zapCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + zapCapsuleWeight7.grid(row=8, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=8, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/tweesterCapsule.png", 9, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=9, column=9) + tweesterCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + tweesterCapsulePrice7.grid(row=9, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=9, column=11) + tweesterCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + tweesterCapsuleWeight7.grid(row=9, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=9, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/thwompCapsule.png", 10, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=10, column=9) + thwompCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + thwompCapsulePrice7.grid(row=10, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=10, column=11) + thwompCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + thwompCapsuleWeight7.grid(row=10, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=10, column=13) + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/warpCapsule.png", 11, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=11, column=9) + warpCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + warpCapsulePrice7.grid(row=11, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=11, column=11) + warpCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + warpCapsuleWeight7.grid(row=11, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=11, column=13) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/bombCapsule.png", 12, 8) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=12, column=9) + bombCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + bombCapsulePrice7.grid(row=12, column=10) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=12, column=11) + bombCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + bombCapsuleWeight7.grid(row=12, column=12) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common. ", font=("Arial", 16)) + label.grid(row=12, column=13) + + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text="", font=("Arial", 16)) + label.grid(row=2, column=14) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/fireballCapsule.png", 2, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=16) + fireballCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + fireballCapsulePrice7.grid(row=2, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=18) + fireballCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + fireballCapsuleWeight7.grid(row=2, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=2, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/flowerCapsule.png", 3, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=16) + flowerCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + flowerCapsulePrice7.grid(row=3, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=18) + flowerCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + flowerCapsuleWeight7.grid(row=3, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/eggCapsule.png", 4, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=16) + eggCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + eggCapsulePrice7.grid(row=4, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=18) + eggCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + eggCapsuleWeight7.grid(row=4, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/vacuumCapsule.png", 5, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=16) + vacuumCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + vacuumCapsulePrice7.grid(row=5, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=18) + vacuumCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + vacuumCapsuleWeight7.grid(row=5, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/magicCapsule.png", 6, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=16) + magicCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + magicCapsulePrice7.grid(row=6, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=18) + magicCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + magicCapsuleWeight7.grid(row=6, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=20) + + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/tripleCapsule.png", 7, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=7, column=16) + tripleCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + tripleCapsulePrice7.grid(row=7, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=7, column=18) + tripleCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + tripleCapsuleWeight7.grid(row=7, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=7, column=20) + + icon = create_image_icon(tabview.tab("Orb Mods"), "assets/items/koopaCapsule.png", 8, 15) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" Costs ", font=("Arial", 16)) + label.grid(row=8, column=16) + koopaCapsulePrice7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + koopaCapsulePrice7.grid(row=8, column=17) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" and is ", font=("Arial", 16)) + label.grid(row=8, column=18) + koopaCapsuleWeight7 = ctk.CTkEntry(master=tabview.tab("Orb Mods"), width=48, font=("Arial", 16, "bold")) + koopaCapsuleWeight7.grid(row=8, column=19) + label = ctk.CTkLabel(master=tabview.tab("Orb Mods"), text=" % common.", font=("Arial", 16)) + label.grid(row=8, column=20) + + parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: itemsEvent_mp7(mushroomCapsuleWeight7, goldenMushroomCapsulePrice7, goldenMushroomCapsuleWeight7, slowMushroomCapsulePrice7, slowMushroomCapsuleWeight7, metalMushroomCapsulePrice7, metalMushroomCapsuleWeight7, flutterCapsulePrice7, flutterCapsuleWeight7, cannonCapsulePrice7, cannonCapsuleWeight7, snackCapsulePrice7, snackCapsuleWeight7, lakituCapsulePrice7, lakituCapsuleWeight7, hammerBroCapsulePrice7, hammerBroCapsuleWeight7, plantCapsulePrice7, plantCapsuleWeight7, spearCapsulePrice7, spearCapsuleWeight7, kamekCapsulePrice7, kamekCapsuleWeight7, toadyCapsulePrice7, toadyCapsuleWeight7, blizzardCapsulePrice7, blizzardCapsuleWeight7, banditCapsulePrice7, banditCapsuleWeight7, pinkBooCapsulePrice7, pinkBooCapsuleWeight7, spinyCapsulePrice7, spinyCapsuleWeight7, zapCapsulePrice7, zapCapsuleWeight7, tweesterCapsulePrice7, tweesterCapsuleWeight7, thwompCapsulePrice7, thwompCapsuleWeight7, warpCapsulePrice7, warpCapsuleWeight7, bombCapsulePrice7, bombCapsuleWeight7, fireballCapsulePrice7, fireballCapsuleWeight7, flowerCapsulePrice7, flowerCapsuleWeight7, eggCapsulePrice7, eggCapsuleWeight7, vacuumCapsulePrice7, vacuumCapsuleWeight7, magicCapsulePrice7, magicCapsuleWeight7, tripleCapsulePrice7, tripleCapsuleWeight7, koopaCapsulePrice7, koopaCapsuleWeight7), text="Generate Codes") + parseButton.place(x=10, y=800) + + parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: savePresetItems7(mushroomCapsuleWeight7, goldenMushroomCapsulePrice7, goldenMushroomCapsuleWeight7, slowMushroomCapsulePrice7, slowMushroomCapsuleWeight7, metalMushroomCapsulePrice7, metalMushroomCapsuleWeight7, flutterCapsulePrice7, flutterCapsuleWeight7, cannonCapsulePrice7, cannonCapsuleWeight7, snackCapsulePrice7, snackCapsuleWeight7, lakituCapsulePrice7, lakituCapsuleWeight7, hammerBroCapsulePrice7, hammerBroCapsuleWeight7, plantCapsulePrice7, plantCapsuleWeight7, spearCapsulePrice7, spearCapsuleWeight7, kamekCapsulePrice7, kamekCapsuleWeight7, toadyCapsulePrice7, toadyCapsuleWeight7, blizzardCapsulePrice7, blizzardCapsuleWeight7, banditCapsulePrice7, banditCapsuleWeight7, pinkBooCapsulePrice7, pinkBooCapsuleWeight7, spinyCapsulePrice7, spinyCapsuleWeight7, zapCapsulePrice7, zapCapsuleWeight7, tweesterCapsulePrice7, tweesterCapsuleWeight7, thwompCapsulePrice7, thwompCapsuleWeight7, warpCapsulePrice7, warpCapsuleWeight7, bombCapsulePrice7, bombCapsuleWeight7, fireballCapsulePrice7, fireballCapsuleWeight7, flowerCapsulePrice7, flowerCapsuleWeight7, eggCapsulePrice7, eggCapsuleWeight7, vacuumCapsulePrice7, vacuumCapsuleWeight7, magicCapsulePrice7, magicCapsuleWeight7, tripleCapsulePrice7, tripleCapsuleWeight7, koopaCapsulePrice7, koopaCapsuleWeight7), text="Save Preset") + parseButton.place(x=160, y=800) + + parseButton = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: loadPresetItems7(mushroomCapsuleWeight7, goldenMushroomCapsulePrice7, goldenMushroomCapsuleWeight7, slowMushroomCapsulePrice7, slowMushroomCapsuleWeight7, metalMushroomCapsulePrice7, metalMushroomCapsuleWeight7, flutterCapsulePrice7, flutterCapsuleWeight7, cannonCapsulePrice7, cannonCapsuleWeight7, snackCapsulePrice7, snackCapsuleWeight7, lakituCapsulePrice7, lakituCapsuleWeight7, hammerBroCapsulePrice7, hammerBroCapsuleWeight7, plantCapsulePrice7, plantCapsuleWeight7, spearCapsulePrice7, spearCapsuleWeight7, kamekCapsulePrice7, kamekCapsuleWeight7, toadyCapsulePrice7, toadyCapsuleWeight7, blizzardCapsulePrice7, blizzardCapsuleWeight7, banditCapsulePrice7, banditCapsuleWeight7, pinkBooCapsulePrice7, pinkBooCapsuleWeight7, spinyCapsulePrice7, spinyCapsuleWeight7, zapCapsulePrice7, zapCapsuleWeight7, tweesterCapsulePrice7, tweesterCapsuleWeight7, thwompCapsulePrice7, thwompCapsuleWeight7, warpCapsulePrice7, warpCapsuleWeight7, bombCapsulePrice7, bombCapsuleWeight7, fireballCapsulePrice7, fireballCapsuleWeight7, flowerCapsulePrice7, flowerCapsuleWeight7, eggCapsulePrice7, eggCapsuleWeight7, vacuumCapsulePrice7, vacuumCapsuleWeight7, magicCapsulePrice7, magicCapsuleWeight7, tripleCapsulePrice7, tripleCapsuleWeight7, koopaCapsulePrice7, koopaCapsuleWeight7), text="Load Preset") + parseButton.place(x=310, y=800) + + parseButtonSevenFillViaCode = ctk.CTkButton(master=tabview.tab("Orb Mods"), command=lambda: fillViaCode7Actions(), text="Fill Via Code") + parseButtonSevenFillViaCode.place(x=460, y=800) + + def fillViaCode7Actions(): + top = ctk.CTkToplevel(height=500, width=500) + top.attributes('-topmost', True) + top.title("Enter Code") + + enterCodeLabel = ctk.CTkLabel(master=top, text="Enter Code") + enterCodeLabel.place(x=10, y=10) + + codeText = ctk.CTkTextbox(master=top, width=200, height=400) + codeText.place(x=10, y=65) + + submitButton = ctk.CTkButton(master=top, command=lambda: fillViaCode7(top, codeText, mushroomCapsuleWeight7, goldenMushroomCapsulePrice7, goldenMushroomCapsuleWeight7, slowMushroomCapsulePrice7, slowMushroomCapsuleWeight7, metalMushroomCapsulePrice7, metalMushroomCapsuleWeight7, flutterCapsulePrice7, flutterCapsuleWeight7, cannonCapsulePrice7, cannonCapsuleWeight7, snackCapsulePrice7, snackCapsuleWeight7, lakituCapsulePrice7, lakituCapsuleWeight7, hammerBroCapsulePrice7, hammerBroCapsuleWeight7, plantCapsulePrice7, plantCapsuleWeight7, spearCapsulePrice7, spearCapsuleWeight7, kamekCapsulePrice7, kamekCapsuleWeight7, toadyCapsulePrice7, toadyCapsuleWeight7, blizzardCapsulePrice7, blizzardCapsuleWeight7, banditCapsulePrice7, banditCapsuleWeight7, pinkBooCapsulePrice7, pinkBooCapsuleWeight7, spinyCapsulePrice7, spinyCapsuleWeight7, zapCapsulePrice7, zapCapsuleWeight7, tweesterCapsulePrice7, tweesterCapsuleWeight7, thwompCapsulePrice7, thwompCapsuleWeight7, warpCapsulePrice7, warpCapsuleWeight7, bombCapsulePrice7, bombCapsuleWeight7, fireballCapsulePrice7, fireballCapsuleWeight7, flowerCapsulePrice7, flowerCapsuleWeight7, eggCapsulePrice7, eggCapsuleWeight7, vacuumCapsulePrice7, vacuumCapsuleWeight7, magicCapsulePrice7, magicCapsuleWeight7, tripleCapsulePrice7, tripleCapsuleWeight7, koopaCapsulePrice7, koopaCapsuleWeight7), text="Submit") + submitButton.place(x=250, y=425) + + spaces7 = ["None", "Invisible Space", "Blue Space", "Red Space", "Happening Space", "Bowser Space", "Duel Space", "DK Space", "Orb Space A", "Orb Space B", "Mic Space"] + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) + label.grid(row=0, column=0) + + spaceRep411 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces7) + spaceRep411.grid(row=0, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) + label.grid(row=0, column=2) + + spaceRep421 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces7) + spaceRep421.grid(row=0, column=3) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot A) ", font=("Arial", 16)) + label.grid(row=0, column=4) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" Replace ", font=("Arial", 16)) + label.grid(row=1, column=0) + + spaceRep412 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces7) + spaceRep412.grid(row=1, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" with ", font=("Arial", 16)) + label.grid(row=1, column=2) + + spaceRep422 = ctk.CTkComboBox(master=tabview.tab("Space Replacement"), values=spaces7) + spaceRep422.grid(row=1, column=3) + + label = ctk.CTkLabel(master=tabview.tab("Space Replacement"), text=" (Slot B) ", font=("Arial", 16)) + label.grid(row=1, column=4) + + parseButton = ctk.CTkButton(master=tabview.tab("Space Replacement"), command=lambda: spaceReplaceEvent_mp7(spaceRep411, spaceRep421, spaceRep412, spaceRep422, spaces7), text="Generate Codes") + parseButton.place(x=10, y=800) + + items7 = ["None", "Mushroom", "Super Mushroom", "Slow 'Shroom", "Metal Mushroom", "Flutter", "Cannon", "Snack", "Lakitu", "Hammer Bro", "Piranha Plant", "Spear Guy", "Kamek", "Toady", "Mr. Blizzard", "Bandit", "Pink Boo", "Spiny", "Zap", "Tweester", "Thwomp", "Warp Pipe", "Bob-omb", "Fireball", "Flower", "Egg", "Vacuum", "Surprise", "Triple 'Shroom", "Koopa Kid"] + + label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 1: ", font=("Arial", 16)) + label.grid(row=0, column=0) + + initalItem71 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items7) + initalItem71.grid(row=0, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 2: ", font=("Arial", 16)) + label.grid(row=1, column=0) + + initalItem72 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items7) + initalItem72.grid(row=1, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 3: ", font=("Arial", 16)) + label.grid(row=2, column=0) + + initalItem73 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items7) + initalItem73.grid(row=2, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 4: ", font=("Arial", 16)) + label.grid(row=3, column=0) + + initalItem74 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items7) + initalItem74.grid(row=3, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" (Only if Can Hold 5 Capsules in On) ", font=("Arial", 16)) + label.grid(row=3, column=2, sticky="w") + + label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" Item 5: ", font=("Arial", 16)) + label.grid(row=4, column=0) + + initalItem75 = ctk.CTkComboBox(master=tabview.tab("Initial Orbs"), values=items7) + initalItem75.grid(row=4, column=1) + + label = ctk.CTkLabel(master=tabview.tab("Initial Orbs"), text=" (Only if Can Hold 5 Capsules in On) ", font=("Arial", 16)) + label.grid(row=4, column=2, sticky="w") + + parseButton = ctk.CTkButton(master=tabview.tab("Initial Orbs"), command=lambda: initialItemsEvent_mp7(initalItem71, initalItem72, initalItem73, initalItem74, initalItem75, items7), text="Generate Codes") + parseButton.place(x=10, y=800) + + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 0, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P1 Starts with ", font=("Arial", 16)) + label.grid(row=0, column=1) + p1Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p1Stars.grid(row=0, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=0, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 1, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P2 Starts with ", font=("Arial", 16)) + label.grid(row=1, column=1) + p2Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p2Stars.grid(row=1, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=1, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 2, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P3 Starts with ", font=("Arial", 16)) + label.grid(row=2, column=1) + p3Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p3Stars.grid(row=2, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=2, column=3) + + icon = create_image_icon(tabview.tab("Star Handicaps"), "assets/eventTags/starSpace.png", 3, 0) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" P4 Starts with ", font=("Arial", 16)) + label.grid(row=3, column=1) + p4Stars = ctk.CTkEntry(master=tabview.tab("Star Handicaps"), width=48, font=("Arial", 16, "bold")) + p4Stars.grid(row=3, column=2) + label = ctk.CTkLabel(master=tabview.tab("Star Handicaps"), text=" Stars ", font=("Arial", 16)) + label.grid(row=3, column=3) + + parse_stars_button = ctk.CTkButton(master=tabview.tab("Star Handicaps"), command=lambda: handicapEvent_mp7(p1Stars, p2Stars, p3Stars, p4Stars), text="Generate Codes") + parse_stars_button.place(x=10, y=800) + + return frame \ No newline at end of file diff --git a/frames/marioParty8_frame.py b/frames/marioParty8_frame.py index 7e9308c..a033c12 100644 --- a/frames/marioParty8_frame.py +++ b/frames/marioParty8_frame.py @@ -1,271 +1,271 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 5/12/2024 -# License: MIT -# ============================================ - -# Import necessary functions and modules -from functions import * -from events.marioParty8_coins import * -from events.marioParty8_items import * -from events.marioParty8_mgreplace import * - -from CTkToolTip import * - -# Import custom tkinter module as ctk -import customtkinter as ctk -from CTkToolTip import * - -# Function to create the main interface for Mario Party 1 -def create_mario_party_8_interface(frame): - # Create a tabbed interface - tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) - tabview.grid(padx=10, pady=10) - tabview.add("Coins Mods") - tabview.add("Minigame Replacement") - tabview.add("Candy Mods") - tabview.set("Coins Mods") - - # Function to create an entry field and checkbox - def create_entry(tab, row, icon_path, label_text, color): - create_image_icon(tab, icon_path, row, 1) - label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) - label.grid(row=row, column=2, sticky="w", pady=15) - entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold")) - entry.grid(row=row, column=3) - label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) - label1.grid(row=row, column=4, sticky="w") - return entry - - # Create entry fields and checkboxes for Coins Mods tab - blue_entry = create_entry(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", " Coins on a Blue Space.") - red_entry = create_entry(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", " Coins on a Red Space.") - - mgWin_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/miniGame.png", " Gain ", " Coins when winning a Minigame.") - mgWin_entryTT = CTkToolTip(mgWin_entry, message="Some minigames may be broken. Please report if so.") - - star_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star.") - star_entryTT = CTkToolTip(mgWin_entry, message="Works on DK's, Goomba's, King Boo's and Shy Guy's.") - - bitsize_entry = create_entry(tabview.tab("Coins Mods"), 5, "assets/eventTags/bitsizeCandy.png", " Gain ", " Coins when Bitsized.") - bowlo_entry = create_entry(tabview.tab("Coins Mods"), 6, "assets/eventTags/bowloCandy.png", " Lose ", " Coins when Bowloed.") - vampire_entry = create_entry(tabview.tab("Coins Mods"), 7, "assets/eventTags/vampireCandy.png", " Steal ", " Coins via Vampire despite Roulette.") - - hotel_entry = create_entry(tabview.tab("Coins Mods"), 8, "assets/eventTags/hotel.png", " Max ", " coins.") - hotel_entryTooltip = CTkToolTip(hotel_entry, message="Max Coin Value is 255") - - # Create button to generate coins modification codes - parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp8(blue_entry, red_entry, mgWin_entry, star_entry, bitsize_entry, hotel_entry, bowlo_entry, vampire_entry), text="Generate Codes") - parse_coins_button.place(x=10, y=800) - - # Create entry fields and dropdowns for Candy Mods Tab - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/twice.png", 2, 1) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=2) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" 5 ", font=("Arial", 24, "bold")) - label.grid(row=2, column=3) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=4) - twiceWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - twiceWeight4.grid(row=2, column=5) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=2, column=6) - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/thrice.png", 3, 1) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=2) - thricePrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - thricePrice4.grid(row=3, column=3) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=4) - thriceWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - thriceWeight4.grid(row=3, column=5) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=6) - - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/slowgo.png", 4, 1) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=2) - slowgoPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - slowgoPrice4.grid(row=4, column=3) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=4) - slowgoWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - slowgoWeight4.grid(row=4, column=5) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=6) - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/springo.png", 5, 1) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=2) - springoPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - springoPrice4.grid(row=5, column=3) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=4) - springoWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - springoWeight4.grid(row=5, column=5) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=6) - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/cashzap.png", 6, 1) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=2) - cashzapPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - cashzapPrice4.grid(row=6, column=3) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=4) - cashzapWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - cashzapWeight4.grid(row=6, column=5) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=6) - - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text="", font=("Arial", 16)) - label.grid(row=2, column=7) - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/vampire.png", 2, 8) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=9) - vampirePrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - vampirePrice4.grid(row=2, column=10) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=11) - vampireWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - vampireWeight4.grid(row=2, column=12) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common. ", font=("Arial", 16)) - label.grid(row=2, column=13) - - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/bitsize.png", 3, 8) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=9) - bitsizePrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - bitsizePrice4.grid(row=3, column=10) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=11) - bitsizeWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - bitsizeWeight4.grid(row=3, column=12) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=13) - - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/bloway.png", 4, 8) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=9) - blowayPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - blowayPrice4.grid(row=4, column=10) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=11) - blowayWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - blowayWeight4.grid(row=4, column=12) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=13) - - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/bowlo.png", 5, 8) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=9) - bowloPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - bowloPrice4.grid(row=5, column=10) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=11) - bowloWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - bowloWeight4.grid(row=5, column=12) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=13) - - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/weeglee.png", 6, 8) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=6, column=9) - weegleePrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - weegleePrice4.grid(row=6, column=10) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=6, column=11) - weegleeWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - weegleeWeight4.grid(row=6, column=12) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=6, column=13) - - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/thwompCandy.png", 2, 15) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=2, column=16) - thwompPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - thwompPrice4.grid(row=2, column=17) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=2, column=18) - thwompWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - thwompWeight4.grid(row=2, column=19) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=2, column=20) - - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/bulletCandy.png", 3, 15) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=3, column=16) - bulletPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - bulletPrice4.grid(row=3, column=17) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=3, column=18) - bulletWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - bulletWeight4.grid(row=3, column=19) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=3, column=20) - - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/bowserCandy.png", 4, 15) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=4, column=16) - bowserPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - bowserPrice4.grid(row=4, column=17) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=4, column=18) - bowserWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - bowserWeight4.grid(row=4, column=19) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=4, column=20) - - - icon = create_image_icon(tabview.tab("Candy Mods"), "assets/items/duelo.png", 5, 15) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" Costs ", font=("Arial", 16)) - label.grid(row=5, column=16) - dueloPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - dueloPrice4.grid(row=5, column=17) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" and is ", font=("Arial", 16)) - label.grid(row=5, column=18) - dueloWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods"), width=48, font=("Arial", 16, "bold")) - dueloWeight4.grid(row=5, column=19) - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text=" % common.", font=("Arial", 16)) - label.grid(row=5, column=20) - - label = ctk.CTkLabel(master=tabview.tab("Candy Mods"), text="Board: ", font=("Arial", 16, "bold")) - label.place(x=10, y=260) - boardComboBox = ctk.CTkComboBox(master=tabview.tab("Candy Mods"), values=["DK's Treetop Temple", "Shy Guy's Perplex Express"], width=250) # "Goomba's Booty Boardwalk", "King Boo's Haunted Hideaway", "Shy Guy's Perplex Express", "Koopa's Tycoon Town", "Bowser's Warped Orbit" - boardComboBox.place(x=70, y=260) - - parseButton = ctk.CTkButton(master=tabview.tab("Candy Mods"), command=lambda: itemsEvent_mp8(boardComboBox, twiceWeight4, thricePrice4, thriceWeight4, slowgoPrice4, slowgoWeight4, springoPrice4, springoWeight4, cashzapPrice4, cashzapWeight4, vampirePrice4, vampireWeight4, bitsizePrice4, bitsizeWeight4, blowayPrice4, blowayWeight4, bowloPrice4, bowloWeight4, weegleePrice4, weegleeWeight4, thwompPrice4, thwompWeight4, bulletPrice4, bulletWeight4, bowserPrice4, bowserWeight4, dueloPrice4, dueloWeight4), text="Generate Codes") - parseButton.place(x=10, y=800) - - parseButton = ctk.CTkButton(master=tabview.tab("Candy Mods"), command=lambda: savePresetItems8(twiceWeight4, thricePrice4, thriceWeight4, slowgoPrice4, slowgoWeight4, springoPrice4, springoWeight4, cashzapPrice4, cashzapWeight4, vampirePrice4, vampireWeight4, bitsizePrice4, bitsizeWeight4, blowayPrice4, blowayWeight4, bowloPrice4, bowloWeight4, weegleePrice4, weegleeWeight4, thwompPrice4, thwompWeight4, bulletPrice4, bulletWeight4, bowserPrice4, bowserWeight4, dueloPrice4, dueloWeight4), text="Save Preset") - parseButton.place(x=160, y=800) - - parseButton = ctk.CTkButton(master=tabview.tab("Candy Mods"), command=lambda: loadPresetItems8(twiceWeight4, thricePrice4, thriceWeight4, slowgoPrice4, slowgoWeight4, springoPrice4, springoWeight4, cashzapPrice4, cashzapWeight4, vampirePrice4, vampireWeight4, bitsizePrice4, bitsizeWeight4, blowayPrice4, blowayWeight4, bowloPrice4, bowloWeight4, weegleePrice4, weegleeWeight4, thwompPrice4, thwompWeight4, bulletPrice4, bulletWeight4, bowserPrice4, bowserWeight4, dueloPrice4, dueloWeight4), text="Load Preset") - parseButton.place(x=310, y=800) - - # List of minigame names - minigames_list = ["Speedy Graffiti", "Swing Kings", "Water Ski Spree", "Punch-a-Bunch", "Crank to Rank", "At the Chomp Wash", "Mosh-Pit Playroom", "Mario Matrix", "Hammer de Pokari", "Grabby Giridion", "Lava or Leave 'Em", "Kartastrophe", "Ribbon Game", "Aim of the Game", "Rudder Madness", "Gun the Runner", "Grabbin' Gold", "Power Trip", "Bob-ombs Away", "Swervin' Skies", "Picture Perfect", "Snow Way Out", "Thrash 'n' Crash", "Chump Rope", "Sick and Twisted", "Bumper Balloons", "Rowed to Victory", "Winner or Dinner", "Paint Misbehavin'", "Sugar Rush", "King of the Thrill", "Shake It Up", "Lean, Mean Ravine", "Boo-ting Gallery", "Crops 'n' Robbers", "In the Nick of Time", "Cut from the Team", "Snipe for the Picking", "Saucer Swarm", "Glacial Meltdown", "Attention Grabber", "Blazing Lassos", "Wing and a Scare", "Lob to Rob", "Pumper Cars", "Cosmic Slalom", "Lava Lobbers", "Loco Motives", "Specter Inspector", "Frozen Assets", "Breakneck Building", "Surf's Way Up", "Bull Riding", "Balancing Act", "Ion the Prize", "You're the Bob-omb", "Scooter Pursuit", "Cardiators", "Rotation Station", "Eyebrawl", "Table Menace", "Flagging Rights", "Trial by Tile", "Star Carnival Bowling", "Puzzle Pillars", "Canyon Cruisers", "Settle It in Court", "Moped Mayhem", "Flip the Chimp", "Pour to Score", "Fruit Picker", "Stampede", "Superstar Showdown", "Alpine Assault", "Treacherous Tightrope"] # Create labels, comboboxes, and button for Minigame Replacement tab - replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) - replace_label.grid(row=0, column=0) - combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_1.grid(row=0, column=1) - with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) - with_label.grid(row=0, column=2) - combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_2.grid(row=0, column=3) - parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp8(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") - parse_minigame_button.place(x=10, y=800) - - return frame +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 5/12/2024 +# License: MIT +# ============================================ + +# Import necessary functions and modules +from functions import * +from events.marioParty8_coins import * +from events.marioParty8_items import * +from events.marioParty8_mgreplace import * + +from CTkToolTip import * + +# Import custom tkinter module as ctk +import customtkinter as ctk +from CTkToolTip import * + +# Function to create the main interface for Mario Party 1 +def create_mario_party_8_interface(frame): + # Create a tabbed interface + tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) + tabview.grid(padx=10, pady=10) + tabview.add("Coins Mods") + tabview.add("Minigame Replacement") + tabview.add("Candy Mods [BETA]") + tabview.set("Coins Mods") + + # Function to create an entry field and checkbox + def create_entry(tab, row, icon_path, label_text, color): + create_image_icon(tab, icon_path, row, 1) + label = ctk.CTkLabel(master=tab, text=label_text, font=("Arial", 16)) + label.grid(row=row, column=2, sticky="w", pady=15) + entry = ctk.CTkEntry(master=tab, width=48, font=("Arial", 16, "bold")) + entry.grid(row=row, column=3) + label1 = ctk.CTkLabel(master=tab, text=color, font=("Arial", 16)) + label1.grid(row=row, column=4, sticky="w") + return entry + + # Create entry fields and checkboxes for Coins Mods tab + blue_entry = create_entry(tabview.tab("Coins Mods"), 1, "assets/eventTags/blueSpace.png", " Gain ", " Coins on a Blue Space.") + red_entry = create_entry(tabview.tab("Coins Mods"), 2, "assets/eventTags/redSpace.png", " Lose ", " Coins on a Red Space.") + + mgWin_entry = create_entry(tabview.tab("Coins Mods"), 3, "assets/eventTags/miniGame.png", " Gain ", " Coins when winning a Minigame.") + mgWin_entryTT = CTkToolTip(mgWin_entry, message="Some minigames may be broken. Please report if so.") + + star_entry = create_entry(tabview.tab("Coins Mods"), 4, "assets/eventTags/starSpace.png", " Costs ", " Coins to buy a Star.") + star_entryTT = CTkToolTip(mgWin_entry, message="Works on DK's, Goomba's, King Boo's and Shy Guy's.") + + bitsize_entry = create_entry(tabview.tab("Coins Mods"), 5, "assets/eventTags/bitsizeCandy.png", " Gain ", " Coins when Bitsized.") + bowlo_entry = create_entry(tabview.tab("Coins Mods"), 6, "assets/eventTags/bowloCandy.png", " Lose ", " Coins when Bowloed.") + vampire_entry = create_entry(tabview.tab("Coins Mods"), 7, "assets/eventTags/vampireCandy.png", " Steal ", " Coins via Vampire despite Roulette.") + + hotel_entry = create_entry(tabview.tab("Coins Mods"), 8, "assets/eventTags/hotel.png", " Max ", " coins.") + hotel_entryTooltip = CTkToolTip(hotel_entry, message="Max Coin Value is 255") + + # Create button to generate coins modification codes + parse_coins_button = ctk.CTkButton(master=tabview.tab("Coins Mods"), command=lambda: coinsEvent_mp8(blue_entry, red_entry, mgWin_entry, star_entry, bitsize_entry, hotel_entry, bowlo_entry, vampire_entry), text="Generate Codes") + parse_coins_button.place(x=10, y=800) + + # Create entry fields and dropdowns for Candy Mods Tab + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/twice.png", 2, 1) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=2) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" 5 ", font=("Arial", 24, "bold")) + label.grid(row=2, column=3) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=4) + twiceWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + twiceWeight4.grid(row=2, column=5) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=2, column=6) + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/thrice.png", 3, 1) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=2) + thricePrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + thricePrice4.grid(row=3, column=3) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=4) + thriceWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + thriceWeight4.grid(row=3, column=5) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=6) + + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/slowgo.png", 4, 1) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=2) + slowgoPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + slowgoPrice4.grid(row=4, column=3) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=4) + slowgoWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + slowgoWeight4.grid(row=4, column=5) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=6) + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/springo.png", 5, 1) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=2) + springoPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + springoPrice4.grid(row=5, column=3) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=4) + springoWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + springoWeight4.grid(row=5, column=5) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=6) + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/cashzap.png", 6, 1) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=2) + cashzapPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + cashzapPrice4.grid(row=6, column=3) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=4) + cashzapWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + cashzapWeight4.grid(row=6, column=5) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=6) + + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text="", font=("Arial", 16)) + label.grid(row=2, column=7) + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/vampire.png", 2, 8) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=9) + vampirePrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + vampirePrice4.grid(row=2, column=10) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=11) + vampireWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + vampireWeight4.grid(row=2, column=12) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common. ", font=("Arial", 16)) + label.grid(row=2, column=13) + + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/bitsize.png", 3, 8) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=9) + bitsizePrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + bitsizePrice4.grid(row=3, column=10) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=11) + bitsizeWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + bitsizeWeight4.grid(row=3, column=12) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=13) + + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/bloway.png", 4, 8) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=9) + blowayPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + blowayPrice4.grid(row=4, column=10) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=11) + blowayWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + blowayWeight4.grid(row=4, column=12) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=13) + + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/bowlo.png", 5, 8) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=9) + bowloPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + bowloPrice4.grid(row=5, column=10) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=11) + bowloWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + bowloWeight4.grid(row=5, column=12) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=13) + + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/weeglee.png", 6, 8) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=6, column=9) + weegleePrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + weegleePrice4.grid(row=6, column=10) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=6, column=11) + weegleeWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + weegleeWeight4.grid(row=6, column=12) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=6, column=13) + + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/thwompCandy.png", 2, 15) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=2, column=16) + thwompPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + thwompPrice4.grid(row=2, column=17) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=2, column=18) + thwompWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + thwompWeight4.grid(row=2, column=19) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=2, column=20) + + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/bulletCandy.png", 3, 15) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=3, column=16) + bulletPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + bulletPrice4.grid(row=3, column=17) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=3, column=18) + bulletWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + bulletWeight4.grid(row=3, column=19) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=3, column=20) + + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/bowserCandy.png", 4, 15) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=4, column=16) + bowserPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + bowserPrice4.grid(row=4, column=17) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=4, column=18) + bowserWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + bowserWeight4.grid(row=4, column=19) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=4, column=20) + + + icon = create_image_icon(tabview.tab("Candy Mods [BETA]"), "assets/items/duelo.png", 5, 15) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" Costs ", font=("Arial", 16)) + label.grid(row=5, column=16) + dueloPrice4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + dueloPrice4.grid(row=5, column=17) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" and is ", font=("Arial", 16)) + label.grid(row=5, column=18) + dueloWeight4 = ctk.CTkEntry(master=tabview.tab("Candy Mods [BETA]"), width=48, font=("Arial", 16, "bold")) + dueloWeight4.grid(row=5, column=19) + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text=" % common.", font=("Arial", 16)) + label.grid(row=5, column=20) + + label = ctk.CTkLabel(master=tabview.tab("Candy Mods [BETA]"), text="Board: ", font=("Arial", 16, "bold")) + label.place(x=10, y=260) + boardComboBox = ctk.CTkComboBox(master=tabview.tab("Candy Mods [BETA]"), values=["DK's Treetop Temple", "Shy Guy's Perplex Express"], width=250) # "Goomba's Booty Boardwalk", "King Boo's Haunted Hideaway", "Shy Guy's Perplex Express", "Koopa's Tycoon Town", "Bowser's Warped Orbit" + boardComboBox.place(x=70, y=260) + + parseButton = ctk.CTkButton(master=tabview.tab("Candy Mods [BETA]"), command=lambda: itemsEvent_mp8(boardComboBox, twiceWeight4, thricePrice4, thriceWeight4, slowgoPrice4, slowgoWeight4, springoPrice4, springoWeight4, cashzapPrice4, cashzapWeight4, vampirePrice4, vampireWeight4, bitsizePrice4, bitsizeWeight4, blowayPrice4, blowayWeight4, bowloPrice4, bowloWeight4, weegleePrice4, weegleeWeight4, thwompPrice4, thwompWeight4, bulletPrice4, bulletWeight4, bowserPrice4, bowserWeight4, dueloPrice4, dueloWeight4), text="Generate Codes") + parseButton.place(x=10, y=800) + + parseButton = ctk.CTkButton(master=tabview.tab("Candy Mods [BETA]"), command=lambda: savePresetItems8(twiceWeight4, thricePrice4, thriceWeight4, slowgoPrice4, slowgoWeight4, springoPrice4, springoWeight4, cashzapPrice4, cashzapWeight4, vampirePrice4, vampireWeight4, bitsizePrice4, bitsizeWeight4, blowayPrice4, blowayWeight4, bowloPrice4, bowloWeight4, weegleePrice4, weegleeWeight4, thwompPrice4, thwompWeight4, bulletPrice4, bulletWeight4, bowserPrice4, bowserWeight4, dueloPrice4, dueloWeight4), text="Save Preset") + parseButton.place(x=160, y=800) + + parseButton = ctk.CTkButton(master=tabview.tab("Candy Mods [BETA]"), command=lambda: loadPresetItems8(twiceWeight4, thricePrice4, thriceWeight4, slowgoPrice4, slowgoWeight4, springoPrice4, springoWeight4, cashzapPrice4, cashzapWeight4, vampirePrice4, vampireWeight4, bitsizePrice4, bitsizeWeight4, blowayPrice4, blowayWeight4, bowloPrice4, bowloWeight4, weegleePrice4, weegleeWeight4, thwompPrice4, thwompWeight4, bulletPrice4, bulletWeight4, bowserPrice4, bowserWeight4, dueloPrice4, dueloWeight4), text="Load Preset") + parseButton.place(x=310, y=800) + + # List of minigame names + minigames_list = ["Speedy Graffiti", "Swing Kings", "Water Ski Spree", "Punch-a-Bunch", "Crank to Rank", "At the Chomp Wash", "Mosh-Pit Playroom", "Mario Matrix", "Hammer de Pokari", "Grabby Giridion", "Lava or Leave 'Em", "Kartastrophe", "Ribbon Game", "Aim of the Game", "Rudder Madness", "Gun the Runner", "Grabbin' Gold", "Power Trip", "Bob-ombs Away", "Swervin' Skies", "Picture Perfect", "Snow Way Out", "Thrash 'n' Crash", "Chump Rope", "Sick and Twisted", "Bumper Balloons", "Rowed to Victory", "Winner or Dinner", "Paint Misbehavin'", "Sugar Rush", "King of the Thrill", "Shake It Up", "Lean, Mean Ravine", "Boo-ting Gallery", "Crops 'n' Robbers", "In the Nick of Time", "Cut from the Team", "Snipe for the Picking", "Saucer Swarm", "Glacial Meltdown", "Attention Grabber", "Blazing Lassos", "Wing and a Scare", "Lob to Rob", "Pumper Cars", "Cosmic Slalom", "Lava Lobbers", "Loco Motives", "Specter Inspector", "Frozen Assets", "Breakneck Building", "Surf's Way Up", "Bull Riding", "Balancing Act", "Ion the Prize", "You're the Bob-omb", "Scooter Pursuit", "Cardiators", "Rotation Station", "Eyebrawl", "Table Menace", "Flagging Rights", "Trial by Tile", "Star Carnival Bowling", "Puzzle Pillars", "Canyon Cruisers", "Settle It in Court", "Moped Mayhem", "Flip the Chimp", "Pour to Score", "Fruit Picker", "Stampede", "Superstar Showdown", "Alpine Assault", "Treacherous Tightrope"] # Create labels, comboboxes, and button for Minigame Replacement tab + replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) + replace_label.grid(row=0, column=0) + combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_1.grid(row=0, column=1) + with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) + with_label.grid(row=0, column=2) + combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_2.grid(row=0, column=3) + parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp8(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") + parse_minigame_button.place(x=10, y=800) + + return frame \ No newline at end of file diff --git a/frames/marioParty9_frame.py b/frames/marioParty9_frame.py index 74d2c0e..a45345e 100644 --- a/frames/marioParty9_frame.py +++ b/frames/marioParty9_frame.py @@ -1,41 +1,41 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 5/12/2024 -# License: MIT -# ============================================ - -# Import necessary functions and modules -from functions import * -from events.marioParty9_mgreplace import * - -from CTkToolTip import * - -# Import custom tkinter module as ctk -import customtkinter as ctk -from CTkToolTip import * - -# Function to create the main interface for Mario Party 1 -def create_mario_party_9_interface(frame): - # Create a tabbed interface - tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) - tabview.grid(padx=10, pady=10) - tabview.add("Minigame Replacement") - tabview.set("Minigame Replacement") - - # List of minigame names - - minigames_list = ["Ruins Rumble", "Hazard Hold", "Line in the Sand", "Block and Roll", "Tackle Takedown", "Weird Wheels", "Spike-n-Span", "Hole Hogs", "Pix Fix", "Mob Sleds", "Mecha March", "Bowser Pop", "Double Pounder", "Zoom Room", "Cage Match", "Crossfire Caverns", "Bumper Sparks", "Sand Trap", "Pair of Aces", "Pedal to the Paddle", "Urn It", "Billistics", "Snow Go", "Skyjinks", "Player Conveyor", "Fungi Frenzy", "Jigsaw Jumble", "Twist Ending", "Peak Precision", "Speeding Bullets", "Launch Break", "Polar Extreme", "Logger Heads", "Smash Compactor", "Goomba Bowling", "Pianta Pool", "Bumper Bubbles", "Buddy Bounce", "Pizza Me, Mario", "Chain Event", "Pit or Platter", "Skipping Class", "Flinger Painting", "Goomba Spotting", "Thwomper Room", "Ballistic Beach", "Plunder Ground", "Tumble Temple", "Tuber Tug", "Piranha Patch", "Upward Mobility", "Manor of Escape", "Toad and Go Seek", "Goomba Village", "Growing Up", "Card Smarts", "Bomb Barge", "Ring Leader", "Magma Mayhem", "Don't Look", "Pinball Fall", "Pier Pressure", "10 to Win", "Mecha Choice", "Sock It to Lakitu", "Whomp Stomp", "Deck Dry Bones", "Cheep Cheep Shot", "Spike Strike", "Bowser Jr. Breakdown", "Diddy's Banana Blast", "Wiggler Bounce", "Bombard King Bob-omb", "King Boo's Puzzle Attack", "Blooper Barrage", "Chain Chomp Romp", "Bowser's Block Battle", "DK's Banana Bonus"] # Create labels, comboboxes, and button for Minigame Replacement tab - replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) - replace_label.grid(row=0, column=0) - combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_1.grid(row=0, column=1) - with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) - with_label.grid(row=0, column=2) - combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_2.grid(row=0, column=3) - parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp9(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") - parse_minigame_button.place(x=10, y=800) - - return frame +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 5/12/2024 +# License: MIT +# ============================================ + +# Import necessary functions and modules +from functions import * +from events.marioParty9_mgreplace import * + +from CTkToolTip import * + +# Import custom tkinter module as ctk +import customtkinter as ctk +from CTkToolTip import * + +# Function to create the main interface for Mario Party 1 +def create_mario_party_9_interface(frame): + # Create a tabbed interface + tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) + tabview.grid(padx=10, pady=10) + tabview.add("Minigame Replacement") + tabview.set("Minigame Replacement") + + # List of minigame names + + minigames_list = ["Ruins Rumble", "Hazard Hold", "Line in the Sand", "Block and Roll", "Tackle Takedown", "Weird Wheels", "Spike-n-Span", "Hole Hogs", "Pix Fix", "Mob Sleds", "Mecha March", "Bowser Pop", "Double Pounder", "Zoom Room", "Cage Match", "Crossfire Caverns", "Bumper Sparks", "Sand Trap", "Pair of Aces", "Pedal to the Paddle", "Urn It", "Billistics", "Snow Go", "Skyjinks", "Player Conveyor", "Fungi Frenzy", "Jigsaw Jumble", "Twist Ending", "Peak Precision", "Speeding Bullets", "Launch Break", "Polar Extreme", "Logger Heads", "Smash Compactor", "Goomba Bowling", "Pianta Pool", "Bumper Bubbles", "Buddy Bounce", "Pizza Me, Mario", "Chain Event", "Pit or Platter", "Skipping Class", "Flinger Painting", "Goomba Spotting", "Thwomper Room", "Ballistic Beach", "Plunder Ground", "Tumble Temple", "Tuber Tug", "Piranha Patch", "Upward Mobility", "Manor of Escape", "Toad and Go Seek", "Goomba Village", "Growing Up", "Card Smarts", "Bomb Barge", "Ring Leader", "Magma Mayhem", "Don't Look", "Pinball Fall", "Pier Pressure", "10 to Win", "Mecha Choice", "Sock It to Lakitu", "Whomp Stomp", "Deck Dry Bones", "Cheep Cheep Shot", "Spike Strike", "Bowser Jr. Breakdown", "Diddy's Banana Blast", "Wiggler Bounce", "Bombard King Bob-omb", "King Boo's Puzzle Attack", "Blooper Barrage", "Chain Chomp Romp", "Bowser's Block Battle", "DK's Banana Bonus"] # Create labels, comboboxes, and button for Minigame Replacement tab + replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) + replace_label.grid(row=0, column=0) + combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_1.grid(row=0, column=1) + with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) + with_label.grid(row=0, column=2) + combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_2.grid(row=0, column=3) + parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mp9(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") + parse_minigame_button.place(x=10, y=800) + + return frame \ No newline at end of file diff --git a/frames/marioPartyDS_frame.py b/frames/marioPartyDS_frame.py index edf465f..02959d0 100644 --- a/frames/marioPartyDS_frame.py +++ b/frames/marioPartyDS_frame.py @@ -1,41 +1,41 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 5/12/2024 -# License: MIT -# ============================================ - -# Import necessary functions and modules -from functions import * -from events.marioPartyDS_mgreplace import * - -from CTkToolTip import * - -# Import custom tkinter module as ctk -import customtkinter as ctk -from CTkToolTip import * - -# Function to create the main interface for Mario Party 1 -def create_mario_party_DS_interface(frame): - # Create a tabbed interface - tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) - tabview.grid(padx=10, pady=10) - tabview.add("Minigame Replacement") - tabview.set("Minigame Replacement") - - # List of minigame names - - minigames_list = ["Goomba Wrangler", "Rail Riders", "Dress for Success", "Camera Shy", "Hedge Honcho", "Study Fall", "Domino Effect", "Cherry-Go-Round", "Trace Cadets", "Soccer Survival", "Hot Shots", "Call of the Goomba", "Pedal Pushers", "Roller Coasters", "Get the Lead Out", "Shortcut Circuit", "Big Blowout", "Trash Landing", "Cheep Cheep Chance", "Whomp-a-thon", "Twist and Route", "Crater Crawl", "Boogie Beam", "Parachutin' Gallery", "Boo Tag", "Dust Buddies", "Cyber Scamper", "Soap Surfers", "Sweet Sleuth", "Tidal Fools", "Raft Riot", "All Geared Up", "Power Washer", "Peek-a-Boo", "Fast Food Frenzy", "Track Star", "Shuffleboard Showdown", "Flash and Dash", "Rubber Ducky Rodeo", "Plush Crush", "Rotisserie Rampage", "Nothing to Luge", "Penny Pinchers", "Gusty Blizzard", "Soil Toil", "Double Vision", "Memory Mash", "Cube Crushers", "Mole Thrill", "Sprinkler Scalers", "Cucumberjacks", "Hanger Management", "Book It!", "Airbrushers", "Toppling Terror", "Crazy Crosshairs", "Shorty Scorers", "Cheep Chump", "Star Catchers", "Short Fuse", "Globe Gunners", "Chips and Dips", "Feed and Seed", "Hammer Chime", "Hexoskeleton", "Book Bash", "Bowser's Block Party", "Mario's Puzzle Party", "Bob-omb Breakers", "Piece Out", "Block Star", "Stick & Spin", "Triangle Twister"] # Create labels, comboboxes, and button for Minigame Replacement tab - replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) - replace_label.grid(row=0, column=0) - combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_1.grid(row=0, column=1) - with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) - with_label.grid(row=0, column=2) - combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) - combobox_mingames_2.grid(row=0, column=3) - parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mpDS(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") - parse_minigame_button.place(x=10, y=800) - - return frame +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 5/12/2024 +# License: MIT +# ============================================ + +# Import necessary functions and modules +from functions import * +from events.marioPartyDS_mgreplace import * + +from CTkToolTip import * + +# Import custom tkinter module as ctk +import customtkinter as ctk +from CTkToolTip import * + +# Function to create the main interface for Mario Party 1 +def create_mario_party_DS_interface(frame): + # Create a tabbed interface + tabview = ctk.CTkTabview(frame, width=1110, height=885, fg_color=("#fcfcfc", "#323232")) + tabview.grid(padx=10, pady=10) + tabview.add("Minigame Replacement") + tabview.set("Minigame Replacement") + + # List of minigame names + + minigames_list = ["Goomba Wrangler", "Rail Riders", "Dress for Success", "Camera Shy", "Hedge Honcho", "Study Fall", "Domino Effect", "Cherry-Go-Round", "Trace Cadets", "Soccer Survival", "Hot Shots", "Call of the Goomba", "Pedal Pushers", "Roller Coasters", "Get the Lead Out", "Shortcut Circuit", "Big Blowout", "Trash Landing", "Cheep Cheep Chance", "Whomp-a-thon", "Twist and Route", "Crater Crawl", "Boogie Beam", "Parachutin' Gallery", "Boo Tag", "Dust Buddies", "Cyber Scamper", "Soap Surfers", "Sweet Sleuth", "Tidal Fools", "Raft Riot", "All Geared Up", "Power Washer", "Peek-a-Boo", "Fast Food Frenzy", "Track Star", "Shuffleboard Showdown", "Flash and Dash", "Rubber Ducky Rodeo", "Plush Crush", "Rotisserie Rampage", "Nothing to Luge", "Penny Pinchers", "Gusty Blizzard", "Soil Toil", "Double Vision", "Memory Mash", "Cube Crushers", "Mole Thrill", "Sprinkler Scalers", "Cucumberjacks", "Hanger Management", "Book It!", "Airbrushers", "Toppling Terror", "Crazy Crosshairs", "Shorty Scorers", "Cheep Chump", "Star Catchers", "Short Fuse", "Globe Gunners", "Chips and Dips", "Feed and Seed", "Hammer Chime", "Hexoskeleton", "Book Bash", "Bowser's Block Party", "Mario's Puzzle Party", "Bob-omb Breakers", "Piece Out", "Block Star", "Stick & Spin", "Triangle Twister"] # Create labels, comboboxes, and button for Minigame Replacement tab + replace_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" Replace ", font=("Arial", 16)) + replace_label.grid(row=0, column=0) + combobox_mingames_1 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_1.grid(row=0, column=1) + with_label = ctk.CTkLabel(master=tabview.tab("Minigame Replacement"), text=" with ", font=("Arial", 16)) + with_label.grid(row=0, column=2) + combobox_mingames_2 = ctk.CTkComboBox(master=tabview.tab("Minigame Replacement"), values=minigames_list) + combobox_mingames_2.grid(row=0, column=3) + parse_minigame_button = ctk.CTkButton(master=tabview.tab("Minigame Replacement"), command=lambda: mgReplaceEvent_mpDS(combobox_mingames_1, combobox_mingames_2, minigames_list), text="Generate Codes") + parse_minigame_button.place(x=10, y=800) + + return frame \ No newline at end of file diff --git a/version.py b/version.py index 2b6e54d..8f72dfe 100644 --- a/version.py +++ b/version.py @@ -1,8 +1,8 @@ -# ============================================ -# Mario Party Toolkit -# Author: Nayla Hanegan (naylahanegan@gmail.com) -# Date: 5/31/2024 -# License: MIT -# ============================================ - -versionString = "3.10.0" +# ============================================ +# Mario Party Toolkit +# Author: Nayla Hanegan (naylahanegan@gmail.com) +# Date: 5/31/2024 +# License: MIT +# ============================================ + +versionString = "3.10.0"