From 137be2ad2e96561567de613eac4487c2dce32683 Mon Sep 17 00:00:00 2001 From: Jaka Date: Sat, 17 Dec 2022 15:47:49 +0100 Subject: [PATCH] Removed Into The Abyss mod support. --- deploy.py | 5 +- main.py | 19 +- source/sunken_tapes_style_ita_template.xml | 1540 -------------------- 3 files changed, 3 insertions(+), 1561 deletions(-) delete mode 100644 source/sunken_tapes_style_ita_template.xml diff --git a/deploy.py b/deploy.py index 394072f..d2b5594 100644 --- a/deploy.py +++ b/deploy.py @@ -234,10 +234,7 @@ def build_xml_code(data, config): template0 = j2env.get_template("./source/filelist_template.xml") template1 = j2env.get_template("./source/sunken_tapes_template.xml") - if config["use_ita"]: - template2 = j2env.get_template("./source/sunken_tapes_style_ita_template.xml") - else: - template2 = j2env.get_template("./source/sunken_tapes_style_template.xml") + template2 = j2env.get_template("./source/sunken_tapes_style_template.xml") logging.info(f"rendering the xml files") with open("./build/filelist.xml", "w+", encoding="utf8") as output_file: diff --git a/main.py b/main.py index 3773387..37c2e86 100644 --- a/main.py +++ b/main.py @@ -141,15 +141,6 @@ def create_install_frame(container): def create_options_frame(container): frame = ttk.LabelFrame(container, text='Options') - # Use ITA checkbox - use_ita = tk.StringVar() - use_ita.set("0") - use_ita_check = ttk.Checkbutton( - frame, - variable=use_ita, - text='Use ITA mod', - command=lambda: print(use_ita.get())) - # Buffs checkbox buffs = tk.StringVar() buffs.set("1") @@ -159,10 +150,6 @@ def create_options_frame(container): text='Buffs', command=lambda: print(buffs.get())) - Hovertip(use_ita_check, - 'Check this box if you use Into The Abyss mod.' - '\nITA and Sunken Tapes override the same style file.') - Hovertip(buffs_check, 'Check this box to enable some songs causing strange effects' '\nThis is the intended default behaviour.') @@ -170,7 +157,7 @@ def create_options_frame(container): for widget in frame.winfo_children(): widget.pack(side="top", padx=3, pady=3, fill="x") - return frame, use_ita, buffs + return frame, buffs def create_resolution_frame(container): @@ -202,7 +189,6 @@ def create_resolution_frame(container): def create_deploy_frame(container, config): def deploy_action(): config_values = {"installdir": config["installdir"].get(), - "use_ita": config["use_ita"].get() == "1", "buffs": config["buffs"].get() == "1", "name": config["name"].get(), "slug": config["slug"].get(), @@ -313,11 +299,10 @@ def create_main_window(): name_frame, name, slug = create_name_frame(root) install_frame, install_dir = create_install_frame(root) - options_frame, use_ita, buffs = create_options_frame(middle_frame) + options_frame, buffs = create_options_frame(middle_frame) resolution_frame, width, height = create_resolution_frame(middle_frame) config = {"installdir": install_dir, - "use_ita": use_ita, "buffs": buffs, "name": name, "slug": slug, diff --git a/source/sunken_tapes_style_ita_template.xml b/source/sunken_tapes_style_ita_template.xml deleted file mode 100644 index 572219b..0000000 --- a/source/sunken_tapes_style_ita_template.xml +++ /dev/null @@ -1,1540 +0,0 @@ - -{% if config['slug'] != "sunken_tapes" %}{% else %}{% endif %} - - -