Removed Into The Abyss mod support.
parent
a103c45b3c
commit
137be2ad2e
|
@ -234,10 +234,7 @@ def build_xml_code(data, config):
|
||||||
template0 = j2env.get_template("./source/filelist_template.xml")
|
template0 = j2env.get_template("./source/filelist_template.xml")
|
||||||
template1 = j2env.get_template("./source/sunken_tapes_template.xml")
|
template1 = j2env.get_template("./source/sunken_tapes_template.xml")
|
||||||
|
|
||||||
if config["use_ita"]:
|
template2 = j2env.get_template("./source/sunken_tapes_style_template.xml")
|
||||||
template2 = j2env.get_template("./source/sunken_tapes_style_ita_template.xml")
|
|
||||||
else:
|
|
||||||
template2 = j2env.get_template("./source/sunken_tapes_style_template.xml")
|
|
||||||
|
|
||||||
logging.info(f"rendering the xml files")
|
logging.info(f"rendering the xml files")
|
||||||
with open("./build/filelist.xml", "w+", encoding="utf8") as output_file:
|
with open("./build/filelist.xml", "w+", encoding="utf8") as output_file:
|
||||||
|
|
19
main.py
19
main.py
|
@ -141,15 +141,6 @@ def create_install_frame(container):
|
||||||
def create_options_frame(container):
|
def create_options_frame(container):
|
||||||
frame = ttk.LabelFrame(container, text='Options')
|
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 checkbox
|
||||||
buffs = tk.StringVar()
|
buffs = tk.StringVar()
|
||||||
buffs.set("1")
|
buffs.set("1")
|
||||||
|
@ -159,10 +150,6 @@ def create_options_frame(container):
|
||||||
text='Buffs',
|
text='Buffs',
|
||||||
command=lambda: print(buffs.get()))
|
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,
|
Hovertip(buffs_check,
|
||||||
'Check this box to enable some songs causing strange effects'
|
'Check this box to enable some songs causing strange effects'
|
||||||
'\nThis is the intended default behaviour.')
|
'\nThis is the intended default behaviour.')
|
||||||
|
@ -170,7 +157,7 @@ def create_options_frame(container):
|
||||||
for widget in frame.winfo_children():
|
for widget in frame.winfo_children():
|
||||||
widget.pack(side="top", padx=3, pady=3, fill="x")
|
widget.pack(side="top", padx=3, pady=3, fill="x")
|
||||||
|
|
||||||
return frame, use_ita, buffs
|
return frame, buffs
|
||||||
|
|
||||||
|
|
||||||
def create_resolution_frame(container):
|
def create_resolution_frame(container):
|
||||||
|
@ -202,7 +189,6 @@ def create_resolution_frame(container):
|
||||||
def create_deploy_frame(container, config):
|
def create_deploy_frame(container, config):
|
||||||
def deploy_action():
|
def deploy_action():
|
||||||
config_values = {"installdir": config["installdir"].get(),
|
config_values = {"installdir": config["installdir"].get(),
|
||||||
"use_ita": config["use_ita"].get() == "1",
|
|
||||||
"buffs": config["buffs"].get() == "1",
|
"buffs": config["buffs"].get() == "1",
|
||||||
"name": config["name"].get(),
|
"name": config["name"].get(),
|
||||||
"slug": config["slug"].get(),
|
"slug": config["slug"].get(),
|
||||||
|
@ -313,11 +299,10 @@ def create_main_window():
|
||||||
|
|
||||||
name_frame, name, slug = create_name_frame(root)
|
name_frame, name, slug = create_name_frame(root)
|
||||||
install_frame, install_dir = create_install_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)
|
resolution_frame, width, height = create_resolution_frame(middle_frame)
|
||||||
|
|
||||||
config = {"installdir": install_dir,
|
config = {"installdir": install_dir,
|
||||||
"use_ita": use_ita,
|
|
||||||
"buffs": buffs,
|
"buffs": buffs,
|
||||||
"name": name,
|
"name": name,
|
||||||
"slug": slug,
|
"slug": slug,
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue