Added GUI version.

This commit is contained in:
Patrick Marsee 2023-01-22 18:46:23 -05:00
parent 61843399b0
commit a0fb05c319
3 changed files with 255 additions and 23 deletions

View file

@ -18,7 +18,8 @@ to enable and disable them, respectively.
Upon first use, you will be prompted for the locations of your mods folder and
7 Days to Die installation. After configuring these, they are stored in
`seven-mods.cfg`.
`seven-mods.cfg`. The default location for the mods folder is the current
working directory. The default location for the 7 Days to Die installation directory is autodetected if installed from steam, or blank otherwise.
seven-days also allows the user to create separate mod profiles. If, for
instance, you frequent a multiplayer server with a certain set of mods, but
@ -29,7 +30,7 @@ were enabled when the profile was last saved.
## CLI Version
The main source file for the CLI version is `seven-mods.py`. General usage is:
The main source file for the CLI version is `seven_mods.py`. General usage is:
`python seven-mods.py <command> <args...>`
@ -64,12 +65,27 @@ come in the future.
## GUI Version
A GUI version that uses tkinter is planned, but not yet ready. It'll be great
though!
The main source file for the GUI version is `seven_mods_gui.py`. It must be in
the same directory as `seven_mods.py` in order to work.
Trust me.
Upon first startup, it will prompt to configure the locations of your mods and
installation directories. Once finished, click "save" on the prompt and close
the window.
I'm a doctor.\*
Note: Sometimes the configuration prompt will appear behind the main window, so
if you don't see it at first, that's probably where it ended up.
\* I'm not an actual doctor.
The configuration prompt can be reopened at any time by clicking the "Configure"
button in the upper left corner of the main window. The combobox at the top is
for profiles. A profile can be loaded by selecting one from the combobox's
dropdown menu, then clicking the "Load" button. A profile can be saved by typing
its name into the combobox, then clicking "Save". A profile can be overwritten
the same way, or by selecting it from the dropdown menu and clicking "Save".
The main portion of the display is a scrollable listing of all available mods.
Similarly to the CLI version's `list` command, enabled mods are shown in green,
and disabled mods are shown in red. Clicking on a mod's list entry will toggle
it.
Note: If you click twice too fast, tkinter will think you're double-clicking,
and won't change its state twice.