yruen / Texture-Filterer

A collection of Python scripts to organize texture dumps in various ways
MIT License
2 stars 0 forks source link

Yruen/issue8 #31

Closed yruen closed 2 years ago

yruen commented 2 years ago

Does issue #8 and integrates it into the main file

Also somewhat optimizes the main file by replacing hard coding for example, the options list with a for loop

for count, option in enumerate(command_options):
   sort_text += f"{blue}[{count+1}]{clear} {option}\n"

rather than

sort_text = f"""Choose sorting mode:
        {blue}[1]{clear} Alpha (default)
        {blue}[2]{clear} Resolution
        {blue}[3]{clear} image similarity (CPU intensive)
        {blue}[4]{clear} Save file preview"""